def test_nexus_vxlan_global_config(self):

        # Set configuration variable to add/delete the VXLAN global nexus
        # switch values.
        cfg.CONF.set_override('vxlan_global_config', True, 'ml2_cisco')

        # Configure bound segments to indicate VXLAN+VLAN.
        self.mock_top_bound_segment.return_value = BOUND_SEGMENT_VXLAN
        self.mock_bottom_bound_segment.return_value = BOUND_SEGMENT1

        with self._create_resources():
            self.assertTrue(self._is_in_nexus_cfg(['feature', 'overlay']))
            self.assertTrue(self._is_in_nexus_cfg(['interface', 'nve']))
            self.assertTrue(self._is_in_nexus_cfg(['source-interface',
                                                   'loopback']))
            self.mock_ncclient.reset_mock()

        # Verify that VXLAN global entries have been removed.
        # NB: The deleting of the "feature" commands also removes the NVE
        # interface so no explict delete command is required.
        self.assertTrue(self._is_in_nexus_cfg(['no', 'feature', 'overlay']))
Test processing for adding/deleting VXLAN global switch values.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py/TestCiscoPortsV2.test_nexus_vxlan_global_config