Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Value Filldown MAP_NAME (\S+)
Value Required ACTION (permit|deny)
Value Required SEQUENCE (\d+)
Value TYPE (\S+)
Value VALUE (.+)

Start
^Show\s+of\s+\S+\s+ip\s+routemap$$
^LIST\s+OF\s+(EXT-)?COMMUNITY-SETS$$
^COMMUNITY-SET\s+NAME$$
^\S+\s+\d+:\d+$$
^Empty\s+list$$
^LIST\s+OF\s+CLASSIFIERS$$
# classifier names
^\S{1,16}$$
Comment thread
mjbear marked this conversation as resolved.
^\s+\S+\s+\d+\s+\S+\s+\S+$$
^LIST\s+OF\s+MAPS$$ -> Maps
^. -> Error

Maps
^${MAP_NAME}\s*$$
^\s+${ACTION}\s+${SEQUENCE}\s+${TYPE}\s+${VALUE}\s*$$ -> Record
^\s*$$
^. -> Error
2 changes: 2 additions & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#
Template, Hostname, Platform, Command

aethra_atosnt_show_ip_routemap_work.textfsm, .*, aethra_atosnt, show ip routemap work

alcatel_aos_show_interfaces_ethernet.textfsm, .*, alcatel_aos, sh[[ow]] (in[[terfaces]] e[[thernet]]|in[[terfaces]])$
alcatel_aos_show_lldp_remote-system.textfsm, .*, alcatel_aos, sh[[ow]] lldp r[[emote-system]]
alcatel_aos_show_interfaces_status.textfsm, .*, alcatel_aos, sh[[ow]] in[[terfaces]] st[[atus]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Show of SOMEDEVICE-73493 ip routemap
LIST OF COMMUNITY-SETS
COMMUNITY-SET NAME
LOCALPREF_135 1111:135

LIST OF EXT-COMMUNITY-SETS
Empty list

LIST OF CLASSIFIERS
adver_subs
Comment thread
mjbear marked this conversation as resolved.
permit 10 match-ip 1.1.1.1/29
Comment thread
mjbear marked this conversation as resolved.
cust_class01
permit 10 match-ip 10.10.10.8/29

LIST OF MAPS
ACT_OUT
permit 10 CLASSIFIER adver_subs
permit 20 CLASSIFIER cust_class01
LTE_SBY_OUT
permit 10 CLASSIFIER adver_subs
permit 10 ACTION set-community additive 1111:135
TEST_BLOCK
deny 10 CLASSIFIER adver_subs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
parsed_sample:
- action: "permit"
map_name: "ACT_OUT"
sequence: "10"
type: "CLASSIFIER"
value: "adver_subs"
- action: "permit"
map_name: "ACT_OUT"
sequence: "20"
type: "CLASSIFIER"
value: "cust_class01"
- action: "permit"
map_name: "LTE_SBY_OUT"
sequence: "10"
type: "CLASSIFIER"
value: "adver_subs"
- action: "permit"
map_name: "LTE_SBY_OUT"
sequence: "10"
type: "ACTION"
value: "set-community additive 1111:135"
- action: "deny"
map_name: "TEST_BLOCK"
sequence: "10"
type: "CLASSIFIER"
value: "adver_subs"
1 change: 1 addition & 0 deletions tests/test_index_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

OS_CHOICES = [
"a10",
"aethra_atosnt",
"alcatel_aos",
"alcatel_sros",
"allied_telesis_awplus",
Expand Down
Loading