From 2bccfb9b60754ec765aef74bfeea646314570f23 Mon Sep 17 00:00:00 2001 From: yzamir Date: Thu, 12 Sep 2024 16:26:52 +0300 Subject: [PATCH] Add comment above the function netplan_get_py Signed-off-by: yzamir --- .../pkg/customize/scripts/rhel/run/network_config_util.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virt-v2v/pkg/customize/scripts/rhel/run/network_config_util.sh b/virt-v2v/pkg/customize/scripts/rhel/run/network_config_util.sh index 6bcc34699..060562531 100644 --- a/virt-v2v/pkg/customize/scripts/rhel/run/network_config_util.sh +++ b/virt-v2v/pkg/customize/scripts/rhel/run/network_config_util.sh @@ -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