-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated rule_1_1 test * fixing flake8 reported errors * fixing flake8 errors for all vendors * fixed some more flake8 --------- Co-authored-by: mailsanjayhere <mailsanjayhere@gmail.com>
- Loading branch information
1 parent
0852661
commit 120d0f4
Showing
24 changed files
with
83 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...es/rule_1_4_3_set_password_lifetime,_warning_time_and_grace_time_for_local_credentials.py
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...les/rule_1_4_3_set_password_lifetime_warning_time_and_grace_time_for_local_credentials.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from comfy.compliance import medium | ||
|
||
|
||
@medium( | ||
name='rule_1_4_3_set_password_lifetime_warning_time_and_grace_time_for_local_credentials', | ||
platform=['cisco_nxos'], | ||
commands=dict(chk_cmd='') | ||
) | ||
def rule_1_4_3_set_password_lifetime_warning_time_and_grace_time_for_local_credentials(commands, ref): | ||
assert '' in commands.chk_cmd, ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...nt_plane/1_5_snmp_rules/rule_1_5_1_if_snmpv2_is_in_use,_use_a_complex_community_string.py
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...ent_plane/1_5_snmp_rules/rule_1_5_1_if_snmpv2_is_in_use_use_a_complex_community_string.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from comfy.compliance import medium | ||
|
||
|
||
@medium( | ||
name='rule_1_5_1_if_snmpv2_is_in_use_use_a_complex_community_string', | ||
platform=['cisco_nxos'], | ||
commands=dict(chk_cmd='') | ||
) | ||
def rule_1_5_1_if_snmpv2_is_in_use_use_a_complex_community_string(commands, ref): | ||
assert '' in commands.chk_cmd, ref |
4 changes: 2 additions & 2 deletions
4
...n_use,_use_a_complex_community_string.ref → ...in_use_use_a_complex_community_string.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.rule_1_5_1_if_snmpv2_is_in_use,_use_a_complex_community_string | ||
.rule_1_5_1_if_snmpv2_is_in_use_use_a_complex_community_string | ||
|
||
Reference: | ||
Remediation: switch(config)# snmp-server community <SomeComplexString> ro | ||
|
||
. | ||
. |
10 changes: 0 additions & 10 deletions
10
...gement_plane/1_5_snmp_rules/rule_1_5_2_if_snmpv2_is_in_use,_set_restrictions_on_access.py
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...agement_plane/1_5_snmp_rules/rule_1_5_2_if_snmpv2_is_in_use_set_restrictions_on_access.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from comfy.compliance import medium | ||
|
||
|
||
@medium( | ||
name='rule_1_5_2_if_snmpv2_is_in_use_set_restrictions_on_access', | ||
platform=['cisco_nxos'], | ||
commands=dict(chk_cmd='') | ||
) | ||
def rule_1_5_2_if_snmpv2_is_in_use_set_restrictions_on_access(commands, ref): | ||
assert '' in commands.chk_cmd, ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
.../1_7_time_services/rule_1_7_3_if_a_local_time_zone_is_used,_configure_daylight_savings.py
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...e/1_7_time_services/rule_1_7_3_if_a_local_time_zone_is_used_configure_daylight_savings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from comfy.compliance import medium | ||
|
||
|
||
@medium( | ||
name='rule_1_7_3_if_a_local_time_zone_is_used_configure_daylight_savings', | ||
platform=['cisco_nxos'], | ||
commands=dict(chk_cmd='') | ||
) | ||
def rule_1_7_3_if_a_local_time_zone_is_used_configure_daylight_savings(commands, ref): | ||
assert '' in commands.chk_cmd, ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...protocols/3_1_2_bgp/rule_3_1_2_2_if_possible,_limit_the_bgp_routes_accepted_from_peers.py
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
..._protocols/3_1_2_bgp/rule_3_1_2_2_if_possible_limit_the_bgp_routes_accepted_from_peers.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from comfy.compliance import low | ||
|
||
|
||
@low( | ||
name='rule_3_1_2_2_if_possible_limit_the_bgp_routes_accepted_from_peers', | ||
platform=['cisco_nxos'], | ||
commands=dict(chk_cmd='') | ||
) | ||
def rule_3_1_2_2_if_possible_limit_the_bgp_routes_accepted_from_peers(commands, ref): | ||
assert '' in commands.chk_cmd, ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...n_interfaces_have_ip_addreses,_configure_anti_spoofing___ingress_filtering_protections.py
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...g_protections/rule_3_1_4_1_if_vlan_interfaces_have_ip_addreses_configure_anti_spoofing.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from comfy.compliance import medium | ||
|
||
|
||
@medium( | ||
name='rule_3_1_4_1_if_vlan_interfaces_have_ip_addreses_configure_anti_spoofing', | ||
platform=['cisco_nxos'], | ||
commands=dict(chk_cmd='') | ||
) | ||
def rule_3_1_4_1_if_vlan_interfaces_have_ip_addreses_configure_anti_spoofing(commands, ref): | ||
assert '' in commands.chk_cmd, ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters