Replace all the bridge_name variables in templates
The bridge_name might be used for multiple times, for example, in different vlan configurations. All of them should be replaced with the actual ${bridge_name} variable. Change-Id: I93ee204a526422f113a88b99531583e3cf769382 Closes-Bug: #1866393
This commit is contained in:
parent
ebe1a40fb9
commit
47ca83280c
@ -83,8 +83,8 @@ if [ -n '$network_config' ]; then
|
||||
network_config_hook
|
||||
fi
|
||||
|
||||
sed -i "s/: \"bridge_name/: \"${bridge_name:-''}/" /etc/os-net-config/config.json
|
||||
sed -i "s/interface_name/${interface_name:-''}/" /etc/os-net-config/config.json
|
||||
sed -i "s/: \"bridge_name/: \"${bridge_name:-''}/g" /etc/os-net-config/config.json
|
||||
sed -i "s/interface_name/${interface_name:-''}/g" /etc/os-net-config/config.json
|
||||
|
||||
set +e
|
||||
os-net-config -c /etc/os-net-config/config.json -v --detailed-exit-codes
|
||||
|
Loading…
Reference in New Issue
Block a user