Skip to content

Commit 04d2df4

Browse files
authored
Modify asa sh acl PROTOCOL to accept numeric vals (#2166)
1 parent 99ce440 commit 04d2df4

3 files changed

Lines changed: 88 additions & 1 deletion

File tree

ntc_templates/templates/cisco_asa_show_access-list.textfsm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Value TYPE (standard|extended)
55
Value LINE_NUM (\d+)
66
Value REMARK (.+?)
77
Value ACTION (permit|deny)
8-
Value PROTOCOL ([a-z]+)
8+
Value PROTOCOL ([a-z0-9]+)
99
Value SVC_OBJECT_GRP (\S+)
1010
Value SVC_OBJECT (\S+)
1111
Value SRC_INTFC (\S+)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
access-list acl-out line 31 extended permit 57 host 1.1.1.1 host 2.2.2.2 log informational interval 300 (hitcnt=123) 0x1122aabb
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
parsed_sample:
3+
- acl_name: "acl-out"
4+
acl_name_hash: ""
5+
acl_tot_elem: ""
6+
action: "permit"
7+
dst_any: ""
8+
dst_host: "2.2.2.2"
9+
dst_intfc: ""
10+
dst_mask: ""
11+
dst_network: ""
12+
dst_object: ""
13+
dst_object_grp: ""
14+
dst_port: ""
15+
dst_port_greater_than: ""
16+
dst_port_grp: ""
17+
dst_port_less_than: ""
18+
dst_port_object: ""
19+
dst_port_range_end: ""
20+
dst_port_range_start: ""
21+
dst_v6host: ""
22+
dst_v6mask: ""
23+
dst_v6network: ""
24+
entry_dst_any: ""
25+
entry_dst_fqdn: ""
26+
entry_dst_fqdn_state: ""
27+
entry_dst_host: ""
28+
entry_dst_host_fqdn: ""
29+
entry_dst_mask: ""
30+
entry_dst_network: ""
31+
entry_dst_range_end: ""
32+
entry_dst_range_start: ""
33+
entry_dst_v6host: ""
34+
entry_dst_v6mask: ""
35+
entry_dst_v6network: ""
36+
entry_hash: ""
37+
entry_hit_count: ""
38+
entry_icmp_code: ""
39+
entry_icmp_type: ""
40+
entry_port: ""
41+
entry_port_greater_than: ""
42+
entry_port_less_than: ""
43+
entry_port_range_end: ""
44+
entry_port_range_start: ""
45+
entry_protocol: ""
46+
entry_protocol_icmp: ""
47+
entry_src_any: ""
48+
entry_src_fqdn: ""
49+
entry_src_fqdn_state: ""
50+
entry_src_host: ""
51+
entry_src_host_fqdn: ""
52+
entry_src_mask: ""
53+
entry_src_network: ""
54+
entry_src_port: ""
55+
entry_src_port_greater_than: ""
56+
entry_src_port_less_than: ""
57+
entry_src_port_range_end: ""
58+
entry_src_port_range_start: ""
59+
entry_src_range_end: ""
60+
entry_src_range_start: ""
61+
entry_src_v6host: ""
62+
entry_src_v6mask: ""
63+
entry_src_v6network: ""
64+
entry_state: ""
65+
hit_count: "123"
66+
line_hash: "0x1122aabb"
67+
line_num: "31"
68+
log_interval: "300"
69+
log_level: "informational"
70+
protocol: "57"
71+
remark: ""
72+
src_any: ""
73+
src_host: "1.1.1.1"
74+
src_intfc: ""
75+
src_mask: ""
76+
src_network: ""
77+
src_object: ""
78+
src_object_grp: ""
79+
src_v6host: ""
80+
src_v6mask: ""
81+
src_v6network: ""
82+
state: ""
83+
svc_object: ""
84+
svc_object_grp: ""
85+
time_range: ""
86+
type: "extended"

0 commit comments

Comments
 (0)