Exemplo n.º 1
0
 def __init__(self):
     super(VppL3RouterPlugin, self).__init__()
     self.communicator = EtcdAgentCommunicator(
         notify_bound=lambda *args: None)
     self.l3_hosts = cfg.CONF.ml2_vpp.l3_hosts.replace(' ', '').split(',')
     self.gpe_physnet = cfg.CONF.ml2_vpp.gpe_locators
     LOG.info('vpp-router: router_service plugin has initialized')
     LOG.debug('vpp-router l3_hosts: %s', self.l3_hosts)
Exemplo n.º 2
0
 def __init__(self):
     super(VppTrunkPlugin, self).__init__()
     self.communicator = EtcdAgentCommunicator(
         notify_bound=lambda *args: None)
     # Supported segmentation type is VLAN
     self._segmentation_types = {
         trunk_const.VLAN: plugin_utils.is_valid_vlan_tag
     }
     # Subscribe to trunk parent-port binding events
     # We use this event to trigger the etcd trunk key update.
     registry.subscribe(self._trigger_etcd_trunk_update, resources.PORT,
                        events.AFTER_UPDATE)
     registry.notify(trunk_const.TRUNK_PLUGIN, events.AFTER_INIT, self)
     LOG.debug('vpp-trunk: vpp trunk service plugin has initialized')
Exemplo n.º 3
0
 def __init__(self):
     super(VppL3RouterPlugin, self).__init__()
     self.communicator = EtcdAgentCommunicator(
         notify_bound=lambda *args: None)
     self.l3_host = cfg.CONF.ml2_vpp.l3_host