Skip to content

Commit

Permalink
Fix exercise5 due to ntc-templates changing
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Aug 29, 2023
1 parent 0e31f5b commit 011e521
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion class3/exercises/exercise5/exercise5.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def main():
intf_name = intf_dict["port"]
inner_dict = {}
inner_dict["status"] = intf_dict["status"]
inner_dict["vlan"] = intf_dict["vlan"]
# ntc-templates recently changed tfsm output to "vlan_id" from "vlan" 2023-08-02
inner_dict["vlan"] = intf_dict["vlan_id"]
combined_data[device_name][intf_name] = inner_dict
pprint(combined_data)
print("-" * 20)
Expand Down

0 comments on commit 011e521

Please sign in to comment.