Skip to content

Commit 1faea92

Browse files
Create cisco_asa_show_running-config_object_service (#1970)
Co-authored-by: Michael Bear <[email protected]>
1 parent 380f1be commit 1faea92

File tree

4 files changed

+463
-0
lines changed

4 files changed

+463
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Value Required NAME (\S+)
2+
Value DESCRIPTION (.+?)
3+
Value PROTOCOL (\S+)
4+
Value SRC_OPERATOR (\S+)
5+
Value SRC_PORT_START (\S+)
6+
Value SRC_PORT_END (\S+)
7+
Value DST_OPERATOR (\S+)
8+
Value DST_PORT_START (\S+)
9+
Value DST_PORT_END (\S+)
10+
Value ICMP_TYPE (\S+)
11+
Value ICMP_CODE (\S+)
12+
13+
Start
14+
^object\s+service -> Continue.Record
15+
^object\s+service\s+${NAME}\s*$$
16+
^\s+description\s+${DESCRIPTION}\s*$$
17+
^\s+service\s+${PROTOCOL}(\s+${ICMP_TYPE}(\s+${ICMP_CODE})?)?\s*$$
18+
^\s+service\s+${PROTOCOL}(\s+source\s+${SRC_OPERATOR}\s+${SRC_PORT_START}(\s+${SRC_PORT_END})?)?(\s+destination\s+${DST_OPERATOR}\s+${DST_PORT_START}(\s+${DST_PORT_END})?)?\s*$$
19+
^. -> Error "Did not match any lines"

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ cisco_apic_fabric_show_vlan_extended.textfsm, .*, cisco_apic, fabric sh[[ow]] vl
203203
cisco_asa_show_module.textfsm:cisco_asa_show_module_details.textfsm:cisco_asa_show_module_status.textfsm, .*, cisco_asa, sh[[ow]] modu[[le]]
204204
cisco_asa_show_running-config_all_crypto_map.textfsm, .*, cisco_asa, sh[[ow]] ru[[nning-config]] all cr[[ypto]] m[[ap]]
205205
cisco_asa_show_running-config_object_network.textfsm, .*, cisco_asa, sh[[ow]] ru[[nning-config]] o[[bject]] n[[etwork]]
206+
cisco_asa_show_running-config_object_service.textfsm, .*, cisco_asa, sh[[ow]] ru[[nning-config]] o[[bject]] s[[ervice]]
206207
cisco_asa_show_asp_table_vpn-context_detail.textfsm, .*, cisco_asa, sh[[ow]] asp t[[able]] vpn-co[[ntext]] d[[etail]]
207208
cisco_asa_show_running-config_access-group.textfsm, .*, cisco_asa, sh[[ow]] ru[[nning-config]] access-gr[[oup]]
208209
cisco_asa_show_running-config_crypto_ikev1.textfsm, .*, cisco_asa, sh[[ow]] ru[[nning-config]] cr[[ypto]] ikev1
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
object service one
2+
description test one
3+
service tcp source eq 8000 destination eq 9000
4+
object service two
5+
description test two
6+
service udp source eq 8000 destination gt 9000
7+
object service three
8+
description test three
9+
service tcp source eq 8000 destination lt 9000
10+
object service four
11+
description test four
12+
service tcp source eq 8000 destination range 9000 9999
13+
object service five
14+
description test five
15+
service tcp source gt 8000 destination eq 9000
16+
object service six
17+
description test six
18+
service udp source gt 8000 destination gt 9000
19+
object service seven
20+
description test seven
21+
service tcp source gt 8000 destination lt 9000
22+
object service eight
23+
description test eight
24+
service tcp source gt 8000 destination range 9000 9999
25+
object service nine
26+
description test nine
27+
service tcp source lt 8000 destination eq 9000
28+
object service ten
29+
description test ten
30+
service udp source lt 8000 destination gt 9000
31+
object service eleven
32+
description test eleven
33+
service tcp source lt 8000 destination lt 9000
34+
object service twelve
35+
description test twelve
36+
service tcp source lt 8000 destination range 9000 9999
37+
object service thirteen
38+
description test thirteen
39+
service tcp source range 8000 8999 destination eq 9000
40+
object service fourteen
41+
description test fourteen
42+
service udp source range 8000 8999 destination gt 9000
43+
object service fifteen
44+
description test fifteen
45+
service tcp source range 8000 8999 destination lt 9000
46+
object service sixteen
47+
description test sixteen
48+
service tcp source range 8000 8999 destination range 9000 9999
49+
object service seventeen
50+
description test seventeen
51+
service tcp source eq 8000
52+
object service eighteen
53+
description test eighteen
54+
service tcp source gt 8000
55+
object service nineteen
56+
description test nineteen
57+
service udp source lt 8000
58+
object service twenty
59+
description test twenty
60+
service tcp source range 8000 8999
61+
object service twenty-one
62+
description test twenty-one
63+
service tcp destination eq 8000
64+
object service twenty-two
65+
description test twenty-two
66+
service tcp destination gt 8000
67+
object service twenty-three
68+
description test twenty-three
69+
service tcp destination lt 8000
70+
object service twenty-four
71+
service udp destination range 8000 8999
72+
object service twenty-five
73+
service tcp source range 1 1024 destination eq https
74+
object service twenty-six
75+
service tcp destination eq http
76+
object service twenty-seven
77+
service tcp source eq ssh
78+
object service twenty-eight
79+
service icmp echo
80+
object service twenty-nine
81+
service icmp
82+
object service thirty
83+
service icmp 9 16
84+
object service thirty-one
85+
description Except for IRC-based botnet C&C traffic
86+
service tcp destination neq 6667
87+
object service thirty-two
88+
description Numeric protocol
89+
service 137

0 commit comments

Comments
 (0)