Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit 77a46cc

Browse files
committed
Add more nosec comments
1 parent db0dc94 commit 77a46cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/fixtures/configs/build_big_config.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
for slot in range(1, 14):
1313
for port in range(1, 49):
1414
print("interface GigabitEthernet {}/{}".format(slot, port))
15-
mode = choice(['trunk', 'access'])
15+
# nosec will silence warnings about python random cryptographic inadequacy
16+
mode = choice(['trunk', 'access']) # nosec
1617
if mode=='trunk':
1718
print(" switchport")
1819
print(" switchport trunk encapsulation dot1q")
@@ -33,7 +34,8 @@
3334
for vlan in range(1, 4095):
3435
print("interface Vlan {}".format(vlan))
3536
print(" no shutdown")
36-
mode = choice(['global', 'vrf'])
37+
# nosec will silence warnings about python random cryptographic inadequacy
38+
mode = choice(['global', 'vrf']) # nosec
3739
if mode=='vrf':
3840
print("ip vrf forwarding VRF_{}".format(vlan))
3941
print(" description Layer3 SVI: vlan {}".format(vlan))

0 commit comments

Comments
 (0)