Skip to content

Commit

Permalink
Merge pull request #5678 from FarooqAbdulla01/interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored May 9, 2023
2 parents 2f8775a + 3530128 commit 55b7089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avocado/utils/network/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def validate_ipv4_netmask_format(self, netmask):
return False
for octect in netmask_list:
num = int(octect)
if 0 <= num <= 255:
if not 0 <= num <= 255:
return False
octet_bin = [format(int(i), "08b") for i in netmask_list]
binary_netmask = ("").join(octet_bin)
Expand Down

0 comments on commit 55b7089

Please sign in to comment.