Skip to content

Commit

Permalink
Incorrect variable initialization when truncating OSPF interfaces (#34)
Browse files Browse the repository at this point in the history
* Fixed bug in variable initialization

* Removed commented code
  • Loading branch information
jasonking3 authored Oct 10, 2023
1 parent 8f4d936 commit 1458d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filter/intf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def intf_truncate(data, intf_dict=None):
for (prot_index, protocol) in enumerate(instance["openconfig-network-instance:protocols"]["openconfig-network-instance:protocol"]):
if "openconfig-network-instance:ospfv2" in protocol and ("openconfig-network-instance:areas" in
protocol["openconfig-network-instance:ospfv2"]):
temp_ospf_interface_list = []
for (area_index, area) in enumerate(protocol["openconfig-network-instance:ospfv2"]["openconfig-network-instance:areas"]
["openconfig-network-instance:area"]):
temp_ospf_interface_list = []
if "openconfig-network-instance:interfaces" in area:
for interface in area["openconfig-network-instance:interfaces"]["openconfig-network-instance:interface"]:
if found_full_match(interface["openconfig-network-instance:id"].split(".")[0], intf_dict):
Expand Down

0 comments on commit 1458d10

Please sign in to comment.