def test_csuld_single_device_minterface_mvlan_type2(self):
     # NSX-v does not support multiple interfaces
     dev_profile = self.getattr_or_skip_test(
         "multiple_interfaces_multiple_vlans")
     _name = data_utils.rand_name('l2gw-m2v2')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     self.do_csuld_single_device_interface_vlan(_name, _devices)
 def test_csuld_single_device_minterface_mvlan_type2(self):
     # NSX-v does not support multiple interfaces
     dev_profile = self.getattr_or_skip_test(
         "multiple_interfaces_multiple_vlans")
     _name = data_utils.rand_name('l2gw-m2v2')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     self.do_csuld_single_device_interface_vlan(_name, _devices)
 def test_csuld_single_device_minterface_mvlan_type2(self):
     dev_profile = self.getattr_or_skip_test(
         "multiple_interfaces_multiple_vlans")
     _name = data_utils.rand_name('l2gwc-m2v2')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     _gw = self.create_l2gw_switch(_name, _devices)
     (_res_new, _seg_id) = self.create_l2gw_connection(_gw)
     self.do_suld_l2gw_connection(_res_new)
 def test_csuld_single_device_minterface_mvlan_type2(self):
     dev_profile = self.getattr_or_skip_test(
             "multiple_interfaces_multiple_vlans")
     _name = data_utils.rand_name('l2gwc-m2v2')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     _gw = self._create_l2gw_switch(_name, _devices)
     (_res_new, _seg_id) = self._create_l2gw_connection(_gw)
     self._suld_l2gw_connection(_res_new)
 def test_csuld_single_device_minterface_mvlan_type1(self):
     # NSX-v does not support multiple interfaces
     dev_profile = self.getattr_or_skip_test(
         "multiple_interfaces_multiple_vlans")
     _name = data_utils.rand_name('l2gwc-m2v1')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     _gw = self.create_l2gw_switch(_name, _devices)
     (_res_new, _seg_id) = self.create_l2gw_connection(_gw)
     self.do_suld_l2gw_connection(_res_new)
     self.addCleanup(self.l2gw_cleanup)
    def test_csuld_single_device_interface_vlan(self):
        """Single device/interface/vlan

           Create l2gw without specifying LAN. In this case,
           l2-gateway-connnection need to specify VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gw-1v2')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        self.do_csuld_single_device_interface_vlan(_name, _devices)
Exemple #7
0
    def test_csuld_single_device_interface_vlan(self):
        """Single device/interface/vlan

           specify that the l2gw don't specify VLAN, so the
           l2-gateway-connection need to specify the VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gw-1v2')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        self._csuld_single_device_interface_vlan(_name, _devices)
 def test_csuld_single_device_interface_mvlan_type2(self):
     dev_profile = self.getattr_or_skip_test("device_multiple_vlans")
     _name = data_utils.rand_name('l2gwc-2v1')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     _vlan_id_list = self._get_segmentation_id(_devices)
     (_gw, _seg_list) = self._create_l2gw_switch(_name, _devices)
     (_res_new, _seg_id_list) = self._create_l2gw_connection(_gw)
     _seg_new = _res_new.get('segmentation_id')
     self.assertEqaul(0, cmp(_vlan_id_list, _seg_id_list),
                      MSG_DIFF % ('vlan', _vlan_id_list, _seg_id_list))
     self._suld_l2gw_connection(_res_new)
    def test_csuld_single_device_interface_without_vlan(self):
        """Single device/interface/vlan

           specify that the l2gw accept one and only one VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gw-1v1')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        self._pop_segmentation_id(_devices, 0, 0)
        self._csuld_single_device_interface_vlan(_name, _devices)
 def test_csuld_single_device_interface_mvlan_type2(self):
     dev_profile = self.getattr_or_skip_test("device_multiple_vlans")
     _name = data_utils.rand_name('l2gwc-2v1')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     _vlan_id_list = self.get_segmentation_id(_devices)
     (_gw, _seg_list) = self.create_l2gw_switch(_name, _devices)
     (_res_new, _seg_id_list) = self.create_l2gw_connection(_gw)
     _seg_id_list = _res_new.get('segmentation_id')
     self.assertEqaul(0, cmp(_vlan_id_list, _seg_id_list),
                      MSG_DIFF % ('vlan', _vlan_id_list, _seg_id_list))
     self.do_suld_l2gw_connection(_res_new)
Exemple #11
0
    def test_csuld_single_device_interface_without_vlan(self):
        """Single device/interface/vlan

           specify that the l2gw accept one and only one VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gw-1v1')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        self._pop_segmentation_id(_devices, 0, 0)
        self._csuld_single_device_interface_vlan(_name, _devices)
    def test_csuld_single_device_interface_vlan(self):
        """Single device/interface/vlan

           specify that the l2gw don't specify VLAN, so the
           l2-gateway-connection need to specify the VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gw-1v2')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        self._csuld_single_device_interface_vlan(_name, _devices)
    def test_csuld_single_device_interface_vlan(self):
        """Single device/interface/vlan

           Create l2gw without specifying LAN. In this case,
           l2-gateway-connnection need to specify VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gw-1v2')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        self.do_csuld_single_device_interface_vlan(_name, _devices)
Exemple #14
0
    def test_csuld_single_device_interface_without_vlan(self):
        """Single device/interface/vlan

           Create l2gw with one and only one VLAN. In this case,
           l2-gateway-connnection does not need to specify VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gw-1v1')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        self.pop_segmentation_id(_devices, 0, 0)
        self.do_csuld_single_device_interface_vlan(_name, _devices)
    def test_csuld_single_device_interface_without_vlan(self):
        """Single device/interface/vlan

           Create l2gw with one and only one VLAN. In this case,
           l2-gateway-connnection does not need to specify VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gw-1v1')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        self.pop_segmentation_id(_devices, 0, 0)
        self.do_csuld_single_device_interface_vlan(_name, _devices)
    def test_csuld_single_device_interface_vlan(self):
        """Single device/interface/vlan

           specify that the l2gw don't specify VLAN, so the
           l2-gateway-connection need to specify the VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gwc-1v2')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        (_gw, _seg_list) = self._create_l2gw_switch(_name, _devices)
        (_res_new, _seg_id) = self._create_l2gw_connection(_gw)
        _seg_new = _res_new.get('segmentation_id', None)
        # vlan specified @l2-gateway, so it is empty @l2-gateway-connection
        self.assertEmpty(_seg_new)
        self._suld_l2gw_connection(_res_new)
    def test_csuld_single_device_interface_vlan(self):
        """Single device/interface/vlan

           Create l2gw without specifying LAN. In this case,
           l2-gateway-connnection need to specify VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gwc-1v2')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        (_gw, _seg_list) = self.create_l2gw_switch(_name, _devices)
        (_res_new, _seg_id) = self.create_l2gw_connection(_gw)
        _seg_new = _res_new.get('segmentation_id', None)
        # vlan specified @l2-gateway, so it is empty @l2-gateway-connection
        self.assertEmpty(_seg_new)
        self.do_suld_l2gw_connection(_res_new)
    def test_csuld_single_device_interface_without_vlan(self):
        """Single device/interface/vlan

           specify that the l2gw accept one and only one VLAN.
           so l2-gateway-connnection does not need to specify VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gwc-1v1')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        _vlan_id_list = self._pop_segmentation_id(_devices)
        (_gw, _seg_list) = self._create_l2gw_switch(_name, _devices)
        (_res_new, _seg_id) = self._create_l2gw_connection(
            _gw, segmentation_id=_vlan_id_list[0])
        _seg_new = str(_res_new.get('segmentation_id'))
        self.assertEqual(_seg_new, str(_seg_id))
        self._suld_l2gw_connection(_res_new)
    def test_csuld_single_device_interface_without_vlan(self):
        """Single device/interface/vlan

           Create l2gw with one and only one VLAN. In this case,
           l2-gateway-connnection does not need to specify VLAN.
        """

        dev_profile = self.getattr_or_skip_test("device_one_vlan")
        _name = data_utils.rand_name('l2gwc-1v1')
        _devices = base_l2gw.get_l2gw_body(dev_profile)
        _vlan_id_list = self.pop_segmentation_id(_devices)
        (_gw, _seg_list) = self.create_l2gw_switch(_name, _devices)
        (_res_new, _seg_id) = self.create_l2gw_connection(
            _gw, segmentation_id=_vlan_id_list[0])
        _seg_new = str(_res_new.get('segmentation_id'))
        self.assertEqual(_seg_new, str(_seg_id))
        self.do_suld_l2gw_connection(_res_new)
Exemple #20
0
 def test_csuld_single_device_interface_mvlan(self):
     dev_profile = self.getattr_or_skip_test("device_multiple_vlans")
     _name = data_utils.rand_name('l2gw-2v1')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     self.do_csuld_single_device_interface_vlan(_name, _devices)
 def test_csuld_single_device_interface_mvlan(self):
     dev_profile = self.getattr_or_skip_test("device_multiple_vlans")
     _name = data_utils.rand_name('l2gw-2v1')
     _devices = base_l2gw.get_l2gw_body(dev_profile)
     self.do_csuld_single_device_interface_vlan(_name, _devices)