Repository URL to install this package:
Version:
3.4.40 ▾
|
ó ̍EYc @ s] d d l Z d d l m Z d d l Z e j Z e j e j d e f d Y Z d S( iÿÿÿÿN( t cfgt PluginBasec B sb e Z d Z d Z d Z e j d Z e j d Z e j d Z e d Z RS( s Base class for all VIF plugins.c C s | | _ d S( s Initialize the plugin object with the provided config :param config: `oslo_config.ConfigOpts.GroupAttr` instance: N( t config( t selfR ( ( sB /home/tvault/.virtenv/lib/python2.7/site-packages/os_vif/plugin.pyt __init__ s c C s d S( sÕ Return an object that describes the plugin's supported vif types and the earliest/latest known VIF object versions. :returns: A `os_vif.objects.host_info.HostPluginInfo` instance N( ( R ( ( sB /home/tvault/.virtenv/lib/python2.7/site-packages/os_vif/plugin.pyt describe% s c C s d S( s Given a model of a VIF, perform operations to plug the VIF properly. :param vif: `os_vif.objects.vif.VIFBase` object. :param instance_info: `os_vif.objects.instance_info.InstanceInfo` object. :raises `processutils.ProcessExecutionError`. Plugins implementing this method should let `processutils.ProcessExecutionError` bubble up. N( ( R t vift instance_info( ( sB /home/tvault/.virtenv/lib/python2.7/site-packages/os_vif/plugin.pyt plug. s c C s d S( s¢ Given a model of a VIF, perform operations to unplug the VIF properly. :param vif: `os_vif.objects.vif.VIFBase` object. :param instance_info: `os_vif.objects.instance_info.InstanceInfo` object. :raises `processutils.ProcessExecutionError`. Plugins implementing this method should let `processutils.ProcessExecutionError` bubble up. N( ( R R R ( ( sB /home/tvault/.virtenv/lib/python2.7/site-packages/os_vif/plugin.pyt unplug; s c C s| d | } t | d } d } | rr t | d k rr t j | d | } t j | d | t t | } n | | S( s¼ Load a plugin, registering its configuration options :param plugin_name: the name of the plugin extension :returns: an initialized instance of the class t os_vif_t CONFIG_OPTSi s os-vif plugin %s optionst groupN( t getattrt Nonet lenR t OptGroupt CONFt register_opts( t clst plugin_namet cfg_group_namet cfg_optst cfg_valst cfg_group( ( sB /home/tvault/.virtenv/lib/python2.7/site-packages/os_vif/plugin.pyt loadH s ( ( t __name__t __module__t __doc__R R t abct abstractmethodR R R t classmethodR ( ( ( sB /home/tvault/.virtenv/lib/python2.7/site-packages/os_vif/plugin.pyR s ( R t oslo_configR t sixR t add_metaclasst ABCMetat objectR ( ( ( sB /home/tvault/.virtenv/lib/python2.7/site-packages/os_vif/plugin.pyt <module> s