diff options
author | Dan Prince <dprince@redhat.com> | 2014-07-02 15:13:34 -0400 |
---|---|---|
committer | Dan Prince <dprince@redhat.com> | 2014-07-02 15:13:34 -0400 |
commit | 9c322bc69df99a59036cfae5e2cca8a12d2710c3 (patch) | |
tree | 627a0b0bffcef8737e456c1cabdf03aa5249d555 | |
parent | 7d164efbc1f9636b172eae574370aad33c35d889 (diff) |
ifcfg: don't call set Interface for vlans...
Drop the 'set Interface $DEVICE external-ids:iface-id=...' config
from ifcfg ovs vlans.
-rw-r--r-- | os_net_config/impl_ifcfg.py | 3 | ||||
-rw-r--r-- | os_net_config/tests/test_impl_ifcfg.py | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py index ff4a059..91a6fd2 100644 --- a/os_net_config/impl_ifcfg.py +++ b/os_net_config/impl_ifcfg.py @@ -55,9 +55,6 @@ class IfcfgNetConfig(os_net_config.NetConfig): data += "TYPE=OVSIntPort\n" data += "OVS_BRIDGE=%s\n" % base_opt.bridge_name data += "OVS_OPTIONS=\"tag=%s\"\n" % base_opt.vlan_id - data += "OVS_EXTRA=\"set Interface $DEVICE " - data += "external-ids:iface-id=$(hostname -s)" - data += "-$DEVICE-vif\"\n" else: data += "TYPE=OVSPort\n" data += "OVS_BRIDGE=%s\n" % base_opt.bridge_name diff --git a/os_net_config/tests/test_impl_ifcfg.py b/os_net_config/tests/test_impl_ifcfg.py index cf1f0c0..55e926a 100644 --- a/os_net_config/tests/test_impl_ifcfg.py +++ b/os_net_config/tests/test_impl_ifcfg.py @@ -81,8 +81,6 @@ _VLAN_OVS_BRIDGE = _BASE_VLAN + """DEVICETYPE=ovs TYPE=OVSIntPort OVS_BRIDGE=br-ctlplane OVS_OPTIONS="tag=5" -OVS_EXTRA=\"set Interface $DEVICE external-ids:iface-id=$(hostname -s\ -)-$DEVICE-vif\" BOOTPROTO=none """ |