aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/vat
diff options
context:
space:
mode:
authorZdeno Olsovsky <zolsovsk@cisco.com>2016-06-28 09:22:29 +0200
committerMatej Klotton <mklotton@cisco.com>2016-07-21 10:36:13 +0200
commit80532e03b9d223407c4b9d2245449dbdc4c03c1b (patch)
tree54e539a5a8ebe127cc9f69ab31014fab86625154 /resources/templates/vat
parent2e46c135ffe5e6a3acc1c48b7d32ac18b4665390 (diff)
CSIT-183: Vpn baseline routed forwarding (VRF)
- Setup 2 VRF tables on each DUT - Test traffic - each port accessible within one vrf - Test traffic - ports inaccessible to different vrf Change-Id: I34256a683039734608509a38857dbdcbdd15bcf9 Signed-off-by: Zdeno Olsovsky <zolsovsk@cisco.com> Signed-off-by: Matej Klotton <mklotton@cisco.com>
Diffstat (limited to 'resources/templates/vat')
-rw-r--r--resources/templates/vat/add_ip_neighbor.vat2
-rw-r--r--resources/templates/vat/add_route.vat2
-rw-r--r--resources/templates/vat/set_fib_to_interface.vat1
3 files changed, 3 insertions, 2 deletions
diff --git a/resources/templates/vat/add_ip_neighbor.vat b/resources/templates/vat/add_ip_neighbor.vat
index cbea0e14a6..de868e1de7 100644
--- a/resources/templates/vat/add_ip_neighbor.vat
+++ b/resources/templates/vat/add_ip_neighbor.vat
@@ -1 +1 @@
-ip_neighbor_add_del sw_if_index {sw_if_index} dst {ip_address} mac {mac_address}
+ip_neighbor_add_del sw_if_index {sw_if_index} dst {ip_address} mac {mac_address} {vrf}
diff --git a/resources/templates/vat/add_route.vat b/resources/templates/vat/add_route.vat
index 9877a3ac46..6c7dfb09f0 100644
--- a/resources/templates/vat/add_route.vat
+++ b/resources/templates/vat/add_route.vat
@@ -1 +1 @@
-ip_add_del_route {network}/{prefix_length} {via} {interface} {resolve_attempts} {count}
+ip_add_del_route {network}/{prefix_length} {via} {vrf} {interface} {resolve_attempts} {count}
diff --git a/resources/templates/vat/set_fib_to_interface.vat b/resources/templates/vat/set_fib_to_interface.vat
new file mode 100644
index 0000000000..f0850c900b
--- /dev/null
+++ b/resources/templates/vat/set_fib_to_interface.vat
@@ -0,0 +1 @@
+sw_interface_set_table sw_if_index {sw_index} vrf {vrf} \ No newline at end of file