- 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['type'] == NodeType.TG:
+ continue
+ for port_k in node['interfaces'].keys():
+ ip6_addr_list = IPUtil.vpp_get_interface_ip_addresses(
+ node, port_k, 'ipv6')
+ if ip6_addr_list:
+ IPv6Util.vpp_ra_suppress_link_layer(node, port_k)