Ejemplo n.º 1
0
    def __init__(self, configfile=None):
        """
        Initialize Nexus1000V Neutron plugin.

        1. Initialize Nexus1000v and Credential DB
        2. Establish communication with Cisco Nexus1000V
        """
        n1kv_db_v2.initialize()
        c_cred.Store.initialize()
        self._initialize_network_vlan_ranges()
        # If no api_extensions_path is provided set the following
        if not q_conf.CONF.api_extensions_path:
            q_conf.CONF.set_override(
                'api_extensions_path',
                'extensions:neutron/plugins/cisco/extensions')
        self._setup_vsm()
        self._setup_rpc()
Ejemplo n.º 2
0
    def __init__(self, configfile=None):
        """
        Initialize Nexus1000V Neutron plugin.

        1. Initialize Nexus1000v and Credential DB
        2. Establish communication with Cisco Nexus1000V
        """
        n1kv_db_v2.initialize()
        c_cred.Store.initialize()
        self._initialize_network_vlan_ranges()
        # If no api_extensions_path is provided set the following
        if not q_conf.CONF.api_extensions_path:
            q_conf.CONF.set_override(
                'api_extensions_path',
                'extensions:neutron/plugins/cisco/extensions')
        self._setup_vsm()
        self._setup_rpc()
Ejemplo n.º 3
0
 def setUp(self):
     super(VlanAllocationsTest, self).setUp()
     n1kv_db_v2.initialize()
     self.session = db.get_session()
     n1kv_db_v2.sync_vlan_allocations(self.session, VLAN_RANGES)
Ejemplo n.º 4
0
 def setUp(self):
     super(ProfileBindingTests, self).setUp()
     n1kv_db_v2.initialize()
     self.session = db.get_session()
Ejemplo n.º 5
0
 def setUp(self):
     super(NetworkProfileTests, self).setUp()
     n1kv_db_v2.initialize()
     self.session = db.get_session()
Ejemplo n.º 6
0
 def setUp(self):
     super(NetworkBindingsTest, self).setUp()
     n1kv_db_v2.initialize()
     self.session = db.get_session()
Ejemplo n.º 7
0
 def setUp(self):
     super(ProfileBindingTests, self).setUp()
     n1kv_db_v2.initialize()
     self.session = db.get_session()
Ejemplo n.º 8
0
 def setUp(self):
     super(NetworkProfileTests, self).setUp()
     n1kv_db_v2.initialize()
     self.session = db.get_session()
Ejemplo n.º 9
0
 def setUp(self):
     super(NetworkBindingsTest, self).setUp()
     n1kv_db_v2.initialize()
     self.session = db.get_session()
Ejemplo n.º 10
0
 def setUp(self):
     super(VxlanAllocationsTest, self).setUp()
     n1kv_db_v2.initialize()
     self.session = db.get_session()
     n1kv_db_v2.sync_vxlan_allocations(self.session, VXLAN_RANGES)
Ejemplo n.º 11
0
 def test_db(self):
     n1kv_db_v2.initialize()
Ejemplo n.º 12
0
 def test_db(self):
     n1kv_db_v2.initialize()