aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/tests/test_impl_ifcfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_net_config/tests/test_impl_ifcfg.py')
-rw-r--r--os_net_config/tests/test_impl_ifcfg.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/os_net_config/tests/test_impl_ifcfg.py b/os_net_config/tests/test_impl_ifcfg.py
index 754fbcd..a273b05 100644
--- a/os_net_config/tests/test_impl_ifcfg.py
+++ b/os_net_config/tests/test_impl_ifcfg.py
@@ -103,14 +103,21 @@ VLAN=yes
PHYSDEV=em1
"""
+# vlans on an OVS bridge do not set VLAN=yes or PHYSDEV
+_BASE_VLAN_OVS = """# This file is autogenerated by os-net-config
+DEVICE=vlan5
+ONBOOT=yes
+HOTPLUG=no
+NM_CONTROLLED=no
+"""
_VLAN_NO_IP = _BASE_VLAN + "BOOTPROTO=none\n"
-_VLAN_OVS = _BASE_VLAN + "DEVICETYPE=ovs\nBOOTPROTO=none\n"
+_VLAN_OVS = _BASE_VLAN_OVS + "DEVICETYPE=ovs\nBOOTPROTO=none\n"
-_VLAN_OVS_BRIDGE = _BASE_VLAN + """DEVICETYPE=ovs
+_VLAN_OVS_BRIDGE = _BASE_VLAN_OVS + """DEVICETYPE=ovs
TYPE=OVSIntPort
OVS_BRIDGE=br-ctlplane
OVS_OPTIONS="tag=5"