Skip to content

Commit

Permalink
Update serial_number and model
Browse files Browse the repository at this point in the history
Fixes my bugs
  • Loading branch information
marcushoff committed Oct 18, 2020
1 parent a4a0645 commit a205b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napalm_vyos/vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def get_facts(self):
ver_str = [line for line in output if "Version" in line][0]
version = self.parse_version(ver_str)

above_1_1 = True if version.startswith('1.0') or version.startswith(1.1) else False
above_1_1 = False if version.startswith('1.0') or version.startswith('1.1') else True
if above_1_1:
sn_str = [line for line in output if "Hardware S/N" in line][0]
hwmodel_str = [line for line in output if "Hardware model" in line][0]
Expand Down

0 comments on commit a205b99

Please sign in to comment.