tempest/scenario/test_cross_tenant_connectivity.py
def _verify_mac_addr(self, tenant):
        """
        verify that VM (tenant's access point) has the same ip,mac as listed in
        port list
        """
        access_point_ssh = self._connect_to_access_point(tenant)
        mac_addr = access_point_ssh.get_mac_address()
        mac_addr = mac_addr.strip().lower()
        port_list = self.network_client.list_ports()['ports']
        port_detail_list = [
            (port['fixed_ips'][0]['subnet_id'],
             port['fixed_ips'][0]['ip_address'],
             port['mac_address'].lower()) for port in port_list
        ]
        server_ip = self._get_server_ip(tenant.access_point)
        subnet_id = tenant.subnet.id
        self.assertIn((subnet_id, server_ip, mac_addr), port_detail_list)

        verify that VM (tenant's access point) has the same ip,mac as listed in
        port list
        
verify that VM (tenant's access point) has the same ip,mac as listed in
port list
verify that VM ( tenant ' s access point ) has the same ip mac as listed in port list
def _verify_mac_addr(self, tenant):
        access_point_ssh = self._connect_to_access_point(tenant)
        mac_addr = access_point_ssh.get_mac_address()
        mac_addr = mac_addr.strip().lower()
        port_list = self.network_client.list_ports()['ports']
        port_detail_list = [
            (port['fixed_ips'][0]['subnet_id'],
             port['fixed_ips'][0]['ip_address'],
             port['mac_address'].lower()) for port in port_list
        ]
        server_ip = self._get_server_ip(tenant.access_point)
        subnet_id = tenant.subnet.id
        self.assertIn((subnet_id, server_ip, mac_addr), port_detail_list)
def _verify_mac_addr ( self , tenant ) : access_point_ssh = self . _connect_to_access_point ( tenant ) mac_addr = access_point_ssh . get_mac_address ( ) mac_addr = mac_addr . strip ( ) . lower ( ) port_list = self . network_client . list_ports ( ) [ 'ports' ] port_detail_list = [ ( port [ 'fixed_ips' ] [ 0 ] [ 'subnet_id' ] , port [ 'fixed_ips' ] [ 0 ] [ 'ip_address' ] , port [ 'mac_address' ] . lower ( ) ) for port in port_list ] server_ip = self . _get_server_ip ( tenant . access_point ) subnet_id = tenant . subnet . id self . assertIn ( ( subnet_id , server_ip , mac_addr ) , port_detail_list )
verify that VM (tenant's access point) has the same ip,mac as listed in
port list
verify that VM ( tenant ' s access point ) has the same ip mac as listed in port list
"""
        verify that VM (tenant's access point) has the same ip,mac as listed in
        port list
        """
self
tenant