PapiExecutor.run_cli_cmd(node, 'show ip6 fib')
PapiExecutor.run_cli_cmd(node, 'show ip6 fib summary')
+ @staticmethod
+ def vpp_get_ip_tables_prefix(node, address):
+ """Get dump of all IP FIB tables on a VPP node.
+
+ :param node: VPP node.
+ :type node: dict
+ """
+ addr = ip_address(unicode(address))
+
+ PapiExecutor.run_cli_cmd(
+ node, 'show {ip_ver} fib {addr}/{addr_len}'.format(
+ ip_ver='ip6' if addr.version == 6 else 'ip',
+ addr=addr,
+ addr_len=addr.max_prefixlen))
+
@staticmethod
def get_interface_vrf_table(node, interface, ip_version='ipv4'):
"""Get vrf ID for the given interface.
if count > 100:
gateway = kwargs.get("gateway", '')
-
+ interface = kwargs.get("interface", '')
vrf = kwargs.get("vrf", None)
multipath = kwargs.get("multipath", False)
network=network,
prefix_length=prefix_len,
via='via {}'.format(gateway) if gateway else '',
+ sw_if_index='sw_if_index {}'.format(
+ InterfaceUtil.get_interface_index(node, interface))
+ if interface else '',
vrf='vrf {}'.format(vrf) if vrf else '',
count='count {}'.format(count) if count else '',
multipath='multipath' if multipath else '')