Skip to content

Commit

Permalink
[show] Use proper variable to avoid exception in natshow script (soni…
Browse files Browse the repository at this point in the history
…c-net#1383)

* Substituting nat_entry variable, instead of s inside fetch_translations
  function to avoid exception throwing inside the function due to undefined
  variable.

The issue has introduced in be63918, while migrating to Python 3.
Variable s has replaced with nat_entry.

Signed-off-by: Maksym Belei <Maksym_Belei@jabil.com>
  • Loading branch information
maksymbelei95 committed Feb 6, 2021
1 parent 910d284 commit 7578f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/natshow
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class NatShow(object):
translated_dst = "---"
translated_src = "---"

ent = self.asic_db.get_all('ASIC_DB', s, blocking=True)
ent = self.asic_db.get_all('ASIC_DB', nat_entry, blocking=True)

nat_type = nat['nat_type']

Expand Down

0 comments on commit 7578f08

Please sign in to comment.