- for net in nodes_addr.values():
- for port in net['ports'].values():
- host = port.get('node')
- dev = port.get('if')
- if host == node['host'] and dev == interface:
- ip = port.get('addr')
- if ip is not None:
- return ip
- else:
- raise Exception(
- 'Node {n} port {p} IPv6 address is not set'.format(
- n=node['host'], p=interface))
-
- raise Exception('Node {n} port {p} IPv6 address not found.'.format(
- n=node['host'], p=interface))
+ for node in nodes.values():
+ if node[u"type"] == NodeType.TG:
+ continue
+ for port_k in node[u"interfaces"].keys():
+ ip6_addr_list = IPUtil.vpp_get_interface_ip_addresses(
+ node, port_k, u"ipv6"
+ )
+ if ip6_addr_list:
+ IPv6Util.vpp_interface_ra_suppress(node, port_k)