'Test hotplug network interface
1. Create a network and a VM.
2. Check connectivity to the VM via a public network.
3. Create a new network, with no gateway.
4. Bring up a new interface
5. check the VM reach the new network'

@decorators.idempotent_id('c5adff73-e961-41f1-b4a9-343614f18cfa')
@testtools.skipUnless(CONF.compute_feature_enabled.interface_attach, 'NIC    hotplug    not    available')
@testtools.skipIf((CONF.network.port_vnic_type in ['direct', 'macvtap']), 'NIC    hotplug    not    supported    for    vnic_type    direct    or    macvtap')
@test.services('compute', 'network')
def test_hotplug_nic(self):

    self._setup_network_and_servers()
    self.check_public_network_connectivity(should_connect=True)
    self._create_new_network()
    self._hotplug_server()
    self._check_network_internal_connectivity(network=self.new_net)
