+ via=via,
+ vrf=vrf,
+ interface=int_cmd,
+ resolve_attempts=rap,
+ count=cnt,
+ lookup_vrf=lookup_vrf,
+ multipath=multipath,
+ weight=weight)
+
+ @staticmethod
+ def add_fib_table(node, network, prefix_len, fib_id, place):
+ """Create new FIB table according to ID.
+
+ :param node: Node to add FIB on.
+ :param network: IP address to add to the FIB table.
+ :param prefix_len: IP address prefix length.
+ :param fib_id: FIB table ID.
+ :param place: Possible variants are local, drop.
+ :type node: dict
+ :type network: str
+ :type prefix_len: int
+ :type fib_id: int
+ :type place: str
+ """
+ with VatTerminal(node) as vat:
+ vat.vat_terminal_exec_cmd_from_template('add_fib_table.vat',
+ network=network,
+ prefix_length=prefix_len,
+ fib_number=fib_id,
+ where=place)
+
+ @staticmethod
+ def add_route(node, ip_addr, prefix, gateway, namespace=None):
+ """Add route in namespace.
+
+ :param node: Node where to execute command.
+ :param ip_addr: Route destination IP address.
+ :param prefix: IP prefix.
+ :param namespace: Execute command in namespace. Optional.
+ :param gateway: Gateway address.
+ :type node: dict
+ :type ip_addr: str
+ :type prefix: int
+ :type gateway: str
+ :type namespace: str
+ """
+ if namespace is not None:
+ cmd = 'ip netns exec {} ip route add {}/{} via {}'.format(
+ namespace, ip_addr, prefix, gateway)
+ else:
+ cmd = 'ip route add {}/{} via {}'.format(ip_addr, prefix, gateway)
+ exec_cmd_no_error(node, cmd, sudo=True)