Skip to content

Commit

Permalink
Add comment above the function netplan_get_py
Browse files Browse the repository at this point in the history
Signed-off-by: yzamir <[email protected]>
  • Loading branch information
yaacov committed Sep 12, 2024
1 parent 26485bb commit 2bccfb9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ extract_mac_ip() {
fi
}

# Get a netplan setting by specifying a nested key like "ethernets.eth0.addresses"
# For example:
# netplan_get_py ethernets
# Will return the yaml struct of all the thernet interfaces.
netplan_get_py() {
python -c "
import os
Expand Down

0 comments on commit 2bccfb9

Please sign in to comment.