'Binding information is provided, subnets on segments'

def test_port_update_is_host_aware(self):

    with self.network() as network:
        segment = self._test_create_segment(network_id=network['network']['id'], physical_network='physnet', network_type=p_constants.TYPE_VLAN)
    self._setup_host_mappings([(segment['segment']['id'], 'fakehost')])
    response = self._create_port(self.fmt, net_id=network['network']['id'], tenant_id=network['network']['tenant_id'], arg_list=(portbindings.HOST_ID,), **{portbindings.HOST_ID: 'fakehost'})
    port = self.deserialize(self.fmt, response)
    with self.subnet(network=network, segment_id=segment['segment']['id']) as subnet:
        self._validate_l2_adjacency(network['network']['id'], is_adjacent=False)
        data = {'port': {'fixed_ips': [{'subnet_id': subnet['subnet']['id']}]}}
        port_id = port['port']['id']
        port_req = self.new_update_request('ports', data, port_id)
        response = port_req.get_response(self.api)
    self.assertEqual(webob.exc.HTTPOk.code, response.status_int)
    self._assert_one_ip_in_subnet(response, subnet['subnet']['cidr'])
