Skip to content

Commit

Permalink
Make black happy !
Browse files Browse the repository at this point in the history
  • Loading branch information
ExaneServerTeam committed May 8, 2020
1 parent e6f1a02 commit 213a629
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions napalm/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -2131,8 +2131,12 @@ def get_interfaces_counters(self):
if match:
can_interface = canonical_interface_name(interface)
try:
counters[can_interface]["rx_discards"] = int(match.group("IQD"))
counters[can_interface]["tx_discards"] = int(match.group("OQD"))
counters[can_interface]["rx_discards"] = int(
match.group("IQD")
)
counters[can_interface]["tx_discards"] = int(
match.group("OQD")
)
except KeyError:
counters[interface]["rx_discards"] = int(match.group("IQD"))
counters[interface]["tx_discards"] = int(match.group("OQD"))
Expand Down

0 comments on commit 213a629

Please sign in to comment.