Guest User

Untitled

a guest
Mar 3rd, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. class BridgeContext(object):
  2.     def setUp(self):
  3.         """Create a bridge and returns it."""
  4.     self.addCleanup(self.destroy)
  5.  
  6.     @abc.abstractmethod
  7.     def destroy(self):
  8.         """Delete a bridge."""
  9.  
  10.     @abc.abstractmethod
  11.     def create_port_in_ns(self, ns_ip_wrapper):
  12.         """Returns a context for creating a port in a specific namespace.
  13.        The context creates a port in a specifc namespace on __enter__ and
  14.                     deletes it on __exit__.
  15.        """
Advertisement
Add Comment
Please, Sign In to add comment