'Test router-interface-add for ipv6 subnets on different networks.
Verify that adding multiple ipv6 subnets from different networks
to a router places them on different router interfaces.'

def test_router_add_interface_multiple_ipv6_subnets_different_net(self):

    with self.router() as r:
        with self.network() as n1:
            with self.network() as n2:
                with self.subnet(network=n1, cidr='fd00::1/64', ip_version=6) as s1:
                    with self.subnet(network=n2, cidr='fd01::1/64', ip_version=6) as s2:
                        body = self._router_interface_action('add', r['router']['id'], s1['subnet']['id'], None)
                        pid1 = body['port_id']
                        body = self._router_interface_action('add', r['router']['id'], s2['subnet']['id'], None)
                        pid2 = body['port_id']
                        self.assertNotEqual(pid1, pid2)
                        self._router_interface_action('remove', r['router']['id'], s1['subnet']['id'], None)
                        self._router_interface_action('remove', r['router']['id'], s2['subnet']['id'], None)
