def test_nexus_vxlan_one_network(self):

        # Add 2nd switch to configuration for complete testing.
        self.nexus_patch.stop()
        self.nexus_patch.values.update(NEXUS_2ND_SWITCH)
        self.nexus_patch.start()

        # 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():
            for switch_ip in [NEXUS_IP_ADDR, NEXUS_IP_ADDR2]:
                binding = nexus_db_v2.get_nve_switch_bindings(switch_ip)
                self.assertEqual(1, len(binding))
                self.assertTrue(self._is_in_nexus_cfg(['nve', 'member', 'vni',
                                                       str(VNI)]))
                self.assertTrue(self._is_in_nexus_cfg(['vn-segment',
                                                       str(VNI)]))

        # Verify that VXLAN entries have been removed.
        for switch_ip in [NEXUS_IP_ADDR, NEXUS_IP_ADDR2]:
            binding = nexus_db_v2.get_nve_switch_bindings(switch_ip)
            self.assertEqual(0, len(binding))
            self.assertTrue(self._is_in_nexus_cfg(['no', 'nve', 'member',
                                                   'vni', str(VNI)]))
Initialize the MPD device.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py/TestCiscoPortsV2.test_nexus_vxlan_one_network--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/mpd.py/MpdDevice.__init__