summaryrefslogtreecommitdiff
path: root/nova/privsep
diff options
context:
space:
mode:
authorAditya Prakash Vaja <wolverine.av@gmail.com>2018-01-08 14:17:04 -0800
committerAditya Prakash Vaja <wolverine.av@gmail.com>2018-05-09 06:02:51 -0700
commit92323586b5d03b31c18657ad64646a8ce3b8a742 (patch)
tree8e2b3beec206e01f2e80dfd0d656fd6c1b572d27 /nova/privsep
parent0a642e2eee8d430ddcccf2947aedcca1a0a0b005 (diff)
downloadnova-92323586b5d03b31c18657ad64646a8ce3b8a742.tar.gz
remove IVS plug/unplug as they're moved to separate plugin
- as per the bug #1704129, the plug/unplug is moved to a separate os-vif plugin - IVS's methods have also been moved to a separate package called os-vif-bigswitch [1] - hence removing all dangling calls from here [1] https://github.com/bigswitch/os-vif-bigswitch Partial-Bug: #1704129 Change-Id: Icf948f6ee1c0da2327fb5eac61fec6e89ac30531
Diffstat (limited to 'nova/privsep')
-rw-r--r--nova/privsep/libvirt.py72
1 files changed, 0 insertions, 72 deletions
diff --git a/nova/privsep/libvirt.py b/nova/privsep/libvirt.py
index 8260e264bb..64d46b90d6 100644
--- a/nova/privsep/libvirt.py
+++ b/nova/privsep/libvirt.py
@@ -122,15 +122,6 @@ def enable_hairpin(interface):
@nova.privsep.sys_admin_pctxt.entrypoint
-def add_bridge(interface):
- """Create a bridge.
-
- :param interface: the name of the bridge
- """
- processutils.execute('brctl', 'addbr', interface)
-
-
-@nova.privsep.sys_admin_pctxt.entrypoint
def delete_bridge(interface):
"""Delete a bridge.
@@ -140,54 +131,6 @@ def delete_bridge(interface):
@nova.privsep.sys_admin_pctxt.entrypoint
-def zero_bridge_forward_delay(interface):
- """Set the forward delay on a bridge to zero.
-
- :param interface: the name of the bridge
- """
- processutils.execute('brctl', 'setfd', interface, 0)
-
-
-@nova.privsep.sys_admin_pctxt.entrypoint
-def disable_bridge_stp(interface):
- """Disable spanning tree protocol for the named bridge.
-
- :param interface: the name of the bridge
- """
- processutils.execute('brctl', 'stp', interface, 'off')
-
-
-@nova.privsep.sys_admin_pctxt.entrypoint
-def toggle_interface(interface, updown):
- """Bring named interfaces up or down.
-
- :param interface: the name of the bridge
- :param updown: 'up', or 'down'
- """
- processutils.execute('ip', 'link', 'set', interface, updown)
-
-
-@nova.privsep.sys_admin_pctxt.entrypoint
-def bridge_add_interface(bridge, newif):
- """Add an interface to a bridge
-
- :param bridge: the name of the bridge
- :param newif: the name of the interface to add
- """
- processutils.execute('brctl', 'addif', bridge, newif)
-
-
-@nova.privsep.sys_admin_pctxt.entrypoint
-def bridge_delete_interface(bridge, removeif):
- """Remove an interface from a bridge
-
- :param bridge: the name of the bridge
- :param removeif: the name of the interface to delete
- """
- processutils.execute('brctl', 'delif', bridge, removeif)
-
-
-@nova.privsep.sys_admin_pctxt.entrypoint
def plug_infiniband_vif(vnic_mac, device_id, fabric, net_model, pci_slot):
processutils.execute('ebrctl', 'add-port', vnic_mac, device_id,
fabric, net_model, pci_slot)
@@ -255,21 +198,6 @@ def unplug_contrail_vif(port_id):
@nova.privsep.sys_admin_pctxt.entrypoint
-def disable_multicast_snooping(interface):
- """Disable multicast snooping for a bridge."""
- with open('/sys/class/net/%s/bridge/multicast_snooping' % interface,
- 'w') as f:
- f.write('0')
-
-
-@nova.privsep.sys_admin_pctxt.entrypoint
-def disable_ipv6(interface):
- """Disable ipv6 for a bridge."""
- with open('/proc/sys/net/ipv6/conf/%s/disable_ipv' % interface, 'w') as f:
- f.write('1')
-
-
-@nova.privsep.sys_admin_pctxt.entrypoint
def readpty(path):
# TODO(mikal): I'm not a huge fan that we don't enforce a valid pty path
# here, but I haven't come up with a great way of doing that.