Skip to content

Commit

Permalink
fix: counter function (#82)
Browse files Browse the repository at this point in the history
* fix: counter function

* Update: interface.py

apply [black](https://github.com/psf/black) format

* fix: format&unintentional deletion
  • Loading branch information
r-suke authored Nov 7, 2023
1 parent a9b09af commit b6a14a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/north/cli/goldstone/north/cli/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ class InterfaceCounterCommand(Command):
def __init__(self, context, parent, name, **options):
super().__init__(context, parent, name, **options)

self.model = options.get("model", "goldstone-interfaces")
self.add_command("pcs", InterfacePCSCounterCommand)
self.add_command("detail", InterfaceDetailCounterCommand)

Expand Down Expand Up @@ -1085,8 +1086,9 @@ def exec(self, line):
table = line[0] == "table"

ifnames = self.context.ifnames
model = self.model

show_counters(self.conn, ifnames, table)
show_counters(self.conn, ifnames, table, model)


class InterfaceShowCommand(Command):
Expand Down

0 comments on commit b6a14a5

Please sign in to comment.