diff options
Diffstat (limited to 'resources/templates/vat')
-rw-r--r-- | resources/templates/vat/add_ip_address.vat | 1 | ||||
-rw-r--r-- | resources/templates/vat/add_route.vat | 1 | ||||
-rw-r--r-- | resources/templates/vat/clear_interface.vat | 3 | ||||
-rw-r--r-- | resources/templates/vat/del_ip_address.vat | 1 | ||||
-rw-r--r-- | resources/templates/vat/del_route.vat | 1 | ||||
-rw-r--r-- | resources/templates/vat/dump_interfaces.vat | 3 | ||||
-rw-r--r-- | resources/templates/vat/flush_ip_addresses.vat | 1 | ||||
-rw-r--r-- | resources/templates/vat/l2_bridge_domain.vat | 5 | ||||
-rw-r--r-- | resources/templates/vat/l2_bridge_domain_gen.vat | 5 | ||||
-rw-r--r-- | resources/templates/vat/l2xconnect.vat | 6 | ||||
-rw-r--r-- | resources/templates/vat/set_if_state.vat | 1 |
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} |