Skip to content

Commit 25e086c

Browse files
authored
test: ✅ Add additional tests confirming the correct sections are pulled by the parser. (#646)
I've provided both the configure and indented formats of SROS configs just to have on the record that both work.
1 parent 6998d9e commit 25e086c

File tree

6 files changed

+47
-0
lines changed

6 files changed

+47
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feature = {"name": "System Configuration", "ordered": False, "section": ["System Configuration"]}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
System Configuration
2+
system
3+
name "sros-r1"
4+
netconf
5+
auto-config-save
6+
no shutdown
7+
exit
8+
time
9+
sntp
10+
shutdown
11+
exit
12+
zone UTC
13+
exit
14+
exit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
exit all
2+
configure
3+
#--------------------------------------------------
4+
echo "System Configuration"
5+
#--------------------------------------------------
6+
system
7+
name "sros-r1"
8+
netconf
9+
auto-config-save
10+
no shutdown
11+
exit
12+
time
13+
sntp
14+
shutdown
15+
exit
16+
zone UTC
17+
exit
18+
exit
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feature = {"name": "radius", "ordered": False, "section": ["configure system security radius "]}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
configure system security radius operator-policy name:RADIUS
2+
configure system security radius auth-server RADIUS1 router-instance base ip-address 1.2.3.4 secret encrypted:al:d6:2f:b8:0a:85:7e:f1:f8:5a:bd:8f:55:83:l3:ad
3+
configure system security radius acc-server RADIUS1 router-instance base ip-address 5.6.7.8 secret encrypted:su:f2:1e:c5:5a:65:1b:d1:e0:2f:db:0a:71:56:f6:bf
4+
configure system security radius policy RADIUS nas-id PKB7J0VH77 nas-ip-address 126.65.111.173
5+
configure system security radius policy RADIUS servers 1 auth-server name:RADIUS1 auth-router-inst base priority 1 acc-server name:RADIUS1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
configure system security login-banner "\r\n***** DO NOT LOGIN UNLESS AUTHORIZED!!! *****\r\n"
2+
configure system security snmp community TEST host-address 20.81.6.14/28
3+
configure system security radius operator-policy name:RADIUS
4+
configure system security radius auth-server RADIUS1 router-instance base ip-address 1.2.3.4 secret encrypted:al:d6:2f:b8:0a:85:7e:f1:f8:5a:bd:8f:55:83:l3:ad
5+
configure system security radius acc-server RADIUS1 router-instance base ip-address 5.6.7.8 secret encrypted:su:f2:1e:c5:5a:65:1b:d1:e0:2f:db:0a:71:56:f6:bf
6+
configure system security radius policy RADIUS nas-id PKB7J0VH77 nas-ip-address 126.65.111.173
7+
configure system security radius policy RADIUS servers 1 auth-server name:RADIUS1 auth-router-inst base priority 1 acc-server name:RADIUS1
8+
configure system security domain authenticator authenticator radius:RADIUS

0 commit comments

Comments
 (0)