aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os_net_config/tests/test_impl_ifcfg.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/os_net_config/tests/test_impl_ifcfg.py b/os_net_config/tests/test_impl_ifcfg.py
index 1c64abb..fa1efdb 100644
--- a/os_net_config/tests/test_impl_ifcfg.py
+++ b/os_net_config/tests/test_impl_ifcfg.py
@@ -76,13 +76,14 @@ _VLAN_NO_IP = _BASE_VLAN + "BOOTPROTO=none\n"
_VLAN_OVS = _BASE_VLAN + "DEVICETYPE=ovs\nBOOTPROTO=none\n"
-VLAN_EXTRA = "\"set Interface $DEVICE external-ids:iface-id=$(hostname -s" + \
- ")-$DEVICE-vif\"\n"
_VLAN_OVS_BRIDGE = _BASE_VLAN + """DEVICETYPE=ovs
TYPE=OVSIntPort
OVS_BRIDGE=br-ctlplane
OVS_OPTIONS="tag=5"
-OVS_EXTRA=""" + VLAN_EXTRA + "BOOTPROTO=none\n"
+OVS_EXTRA=\"set Interface $DEVICE external-ids:iface-id=$(hostname -s\
+)-$DEVICE-vif\"
+BOOTPROTO=none
+"""
class TestIfcfgNetConfig(base.TestCase):