aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates
diff options
context:
space:
mode:
authorStefan Kobza <skobza@cisco.com>2016-01-11 18:03:25 +0100
committerStefan Kobza <skobza@cisco.com>2016-02-08 22:38:32 +0100
commit33499c81c94c2d3baef9d3e9f061cd76ef86fa74 (patch)
tree2d000ba17b821339a05e0c039f71e48e09553de9 /resources/templates
parent5cbeca02602061d32212e14f289d65cf648920e4 (diff)
New version of RF tests.
Change-Id: I241a2b7a7706e65f71cfd4a62e2a40f053fc5d07 Signed-off-by: Stefan Kobza <skobza@cisco.com>
Diffstat (limited to 'resources/templates')
-rw-r--r--resources/templates/vat/add_ip_address.vat1
-rw-r--r--resources/templates/vat/add_route.vat1
-rw-r--r--resources/templates/vat/clear_interface.vat3
-rw-r--r--resources/templates/vat/del_ip_address.vat1
-rw-r--r--resources/templates/vat/del_route.vat1
-rw-r--r--resources/templates/vat/dump_interfaces.vat3
-rw-r--r--resources/templates/vat/flush_ip_addresses.vat1
-rw-r--r--resources/templates/vat/l2_bridge_domain.vat5
-rw-r--r--resources/templates/vat/l2_bridge_domain_gen.vat5
-rw-r--r--resources/templates/vat/l2xconnect.vat6
-rw-r--r--resources/templates/vat/set_if_state.vat1
11 files changed, 28 insertions, 0 deletions
diff --git a/resources/templates/vat/add_ip_address.vat b/resources/templates/vat/add_ip_address.vat
new file mode 100644
index 0000000000..d59480c33a
--- /dev/null
+++ b/resources/templates/vat/add_ip_address.vat
@@ -0,0 +1 @@
+sw_interface_add_del_address sw_if_index {sw_if_index} {address}/{prefix_length}
diff --git a/resources/templates/vat/add_route.vat b/resources/templates/vat/add_route.vat
new file mode 100644
index 0000000000..e580854254
--- /dev/null
+++ b/resources/templates/vat/add_route.vat
@@ -0,0 +1 @@
+ip_add_del_route {network}/{prefix_length} via {gateway} sw_if_index {sw_if_index} resolve-attempts 1
diff --git a/resources/templates/vat/clear_interface.vat b/resources/templates/vat/clear_interface.vat
new file mode 100644
index 0000000000..aa9a4e7db3
--- /dev/null
+++ b/resources/templates/vat/clear_interface.vat
@@ -0,0 +1,3 @@
+exec clear interface
+quit
+
diff --git a/resources/templates/vat/del_ip_address.vat b/resources/templates/vat/del_ip_address.vat
new file mode 100644
index 0000000000..667ced2757
--- /dev/null
+++ b/resources/templates/vat/del_ip_address.vat
@@ -0,0 +1 @@
+sw_interface_add_del_address sw_if_index {sw_if_index} {address}/{prefix_length} del
diff --git a/resources/templates/vat/del_route.vat b/resources/templates/vat/del_route.vat
new file mode 100644
index 0000000000..e7fe4bc1e1
--- /dev/null
+++ b/resources/templates/vat/del_route.vat
@@ -0,0 +1 @@
+ip_add_del_route {network}/{prefix_length} via {gateway} sw_if_index {sw_if_index} del \ No newline at end of file
diff --git a/resources/templates/vat/dump_interfaces.vat b/resources/templates/vat/dump_interfaces.vat
new file mode 100644
index 0000000000..dfc5e6939d
--- /dev/null
+++ b/resources/templates/vat/dump_interfaces.vat
@@ -0,0 +1,3 @@
+sw_interface_dump
+dump_interface_table
+quit
diff --git a/resources/templates/vat/flush_ip_addresses.vat b/resources/templates/vat/flush_ip_addresses.vat
new file mode 100644
index 0000000000..f38fcf12cb
--- /dev/null
+++ b/resources/templates/vat/flush_ip_addresses.vat
@@ -0,0 +1 @@
+sw_interface_add_del_address sw_if_index {sw_if_index} del-all \ No newline at end of file
diff --git a/resources/templates/vat/l2_bridge_domain.vat b/resources/templates/vat/l2_bridge_domain.vat
new file mode 100644
index 0000000000..84bf409944
--- /dev/null
+++ b/resources/templates/vat/l2_bridge_domain.vat
@@ -0,0 +1,5 @@
+bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
+sw_interface_set_l2_bridge {interface1} bd_id 1 shg 0 enable
+sw_interface_set_l2_bridge {interface2} bd_id 1 shg 0 enable
+sw_interface_set_flags {interface1} admin-up link-up
+sw_interface_set_flags {interface2} admin-up link-up \ No newline at end of file
diff --git a/resources/templates/vat/l2_bridge_domain_gen.vat b/resources/templates/vat/l2_bridge_domain_gen.vat
new file mode 100644
index 0000000000..4e635e29c4
--- /dev/null
+++ b/resources/templates/vat/l2_bridge_domain_gen.vat
@@ -0,0 +1,5 @@
+bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
+sw_interface_set_l2_bridge TenGigabitEthernet84/0/1 bd_id 1 shg 0 enable
+sw_interface_set_l2_bridge TenGigabitEthernet84/0/0 bd_id 1 shg 0 enable
+sw_interface_set_flags TenGigabitEthernet84/0/1 admin-up link-up
+sw_interface_set_flags TenGigabitEthernet84/0/0 admin-up link-up \ No newline at end of file
diff --git a/resources/templates/vat/l2xconnect.vat b/resources/templates/vat/l2xconnect.vat
new file mode 100644
index 0000000000..8059007f17
--- /dev/null
+++ b/resources/templates/vat/l2xconnect.vat
@@ -0,0 +1,6 @@
+exec set interface state TenGigabitEthernet84/0/0 up
+exec set interface state TenGigabitEthernet84/0/1 up
+exec set interface l2 xconnect TenGigabitEthernet84/0/0 TenGigabitEthernet84/0/1
+exec set interface l2 xconnect TenGigabitEthernet84/0/1 TenGigabitEthernet84/0/0
+quit
+
diff --git a/resources/templates/vat/set_if_state.vat b/resources/templates/vat/set_if_state.vat
new file mode 100644
index 0000000000..e2c2d4b29d
--- /dev/null
+++ b/resources/templates/vat/set_if_state.vat
@@ -0,0 +1 @@
+sw_interface_set_flags sw_if_index {sw_if_index} {state}