Skip to content

Commit

Permalink
Juniper (#80)
Browse files Browse the repository at this point in the history
* updated rule_1_1 test

* fixing flake8 reported errors

* fixing flake8 errors for all vendors

* fixed some more flake8

* added couple of tests

* updating platform name juniper to juniper_junos

* added 6_1_1 test

* adding 6_1_2

* 611, 612.. not updated so..

---------

Co-authored-by: mailsanjayhere <mailsanjayhere@gmail.com>
  • Loading branch information
netpicker and mailsanjayhere committed Jul 11, 2024
1 parent 3bc8b49 commit dc04685
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@medium(
name='rule_6_1_1_ensure_accounting_destination_is_configured',
platform=['juniper_junos'],
commands=dict(chk_cmd='')
commands=dict(chk_cmd1='show configuration system accounting destination | match "server" | count')
)
def rule_6_1_1_ensure_accounting_destination_is_configured(commands, ref):
assert '' in commands.chk_cmd, ref
assert int(commands.chk_cmd1.strip()) >= 1, ref
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@medium(
name='rule_6_1_2_ensure_accounting_of_logins',
platform=['juniper_junos'],
commands=dict(chk_cmd='')
commands=dict(chk_cmd1='show configuration system accounting')
)
def rule_6_1_2_ensure_accounting_of_logins(commands, ref):
assert '' in commands.chk_cmd, ref
assert 'events login;' in commands.chk_cmd1, ref

0 comments on commit dc04685

Please sign in to comment.