예제 #1
0
 def port_del(self, port):
     """Remove interface from the bridge."""
     brctl(['delif', self.name, port])
예제 #2
0
 def port_add(self, port):
     """Add another interface to the bridge."""
     brctl(['addif', self.name, port])