simple_if_init "$h" "$ipv4" "$ipv6"
defer simple_if_fini "$h" "$ipv4" "$ipv6"
- ip_route_add vrf "v$h" 192.0.2.16/28 nexthop via 192.0.2.3
- ip_route_add vrf "v$h" 2001:db8:2::/64 nexthop via 2001:db8:1::3
+ adf_ip_route_add vrf "v$h" 192.0.2.16/28 nexthop via 192.0.2.3
+ adf_ip_route_add vrf "v$h" 2001:db8:2::/64 nexthop via 2001:db8:1::3
}
h3_create()
simple_if_init "$h3" 192.0.2.18/28 2001:db8:2::2/64
defer simple_if_fini "$h3" 192.0.2.18/28 2001:db8:2::2/64
- ip_route_add vrf "v$h3" 192.0.2.0/28 nexthop via 192.0.2.17
- ip_route_add vrf "v$h3" 2001:db8:1::/64 nexthop via 2001:db8:2::1
+ adf_ip_route_add vrf "v$h3" 192.0.2.0/28 nexthop via 192.0.2.17
+ adf_ip_route_add vrf "v$h3" 2001:db8:1::/64 nexthop via 2001:db8:2::1
tc qdisc add dev "$h3" clsact
defer tc qdisc del dev "$h3" clsact
adf_ip_link_set_up $rp1
adf_ip_addr_add $rp1 192.0.2.17/28
- ip_route_add 192.0.2.32/28 nexthop via 192.0.2.18
+ adf_ip_route_add 192.0.2.32/28 nexthop via 192.0.2.18
adf_ip_link_set_master $swp1 br1
adf_ip_link_set_up $swp1