コード例 #1
0
ファイル: type_vlan.py プロジェクト: williamwang0/MusicGen
 def initialize(self):
     if not range_plugin.is_network_segment_range_enabled():
         # service plugins are initialized/loaded after the ML2 driver
         # initialization. Thus, we base on the information whether
         # ``network_segment_range`` service plugin is enabled/defined in
         # ``neutron.conf`` to decide whether to skip the first time sync
         # allocation during driver initialization, instead of using the
         # directory.get_plugin() method - the normal way used elsewhere to
         # check if a plugin is loaded.
         self._sync_vlan_allocations()
     LOG.info("VlanTypeDriver initialization complete")
コード例 #2
0
ファイル: type_tunnel.py プロジェクト: openstack/neutron
 def _initialize(self, raw_tunnel_ranges):
     self.tunnel_ranges = []
     self._parse_tunnel_ranges(raw_tunnel_ranges, self.tunnel_ranges)
     if not range_plugin.is_network_segment_range_enabled():
         # service plugins are initialized/loaded after the ML2 driver
         # initialization. Thus, we base on the information whether
         # ``network_segment_range`` service plugin is enabled/defined in
         # ``neutron.conf`` to decide whether to skip the first time sync
         # allocation during driver initialization, instead of using the
         # directory.get_plugin() method - the normal way used elsewhere to
         # check if a plugin is loaded.
         self.sync_allocations()
コード例 #3
0
 def _initialize(self, raw_tunnel_ranges):
     self.tunnel_ranges = []
     self._parse_tunnel_ranges(raw_tunnel_ranges, self.tunnel_ranges)
     if not range_plugin.is_network_segment_range_enabled():
         # service plugins are initialized/loaded after the ML2 driver
         # initialization. Thus, we base on the information whether
         # ``network_segment_range`` service plugin is enabled/defined in
         # ``neutron.conf`` to decide whether to skip the first time sync
         # allocation during driver initialization, instead of using the
         # directory.get_plugin() method - the normal way used elsewhere to
         # check if a plugin is loaded.
         self.sync_allocations()