Skip to content

Commit

Permalink
Update: interface.py
Browse files Browse the repository at this point in the history
apply [black](https://github.com/psf/black) format
  • Loading branch information
r-suke authored Nov 6, 2023
1 parent 7a621a7 commit 8fc1597
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions src/north/cli/goldstone/north/cli/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,25 +1086,11 @@ def exec(self, line):
table = line[0] == "table"

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

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


class InterfaceShowCommand(Command):
COMMAND_DICT = {"counters": InterfaceCounterCommand}

def __init__(self, context, parent, name, **options):
self.model = options.get("model", "goldstone-interfaces")
super().__init__(context, parent, name, **options)

def exec(self, line):
if len(line) != 0:
return self.context.root().exec(f"show {' '.join(line)}")
else:
show(self.conn, self.context.ifnames, self.model)




class InterfaceContext(Context):
REGISTERED_COMMANDS = {}
OBJECT_NAME = "interface"
Expand Down

0 comments on commit 8fc1597

Please sign in to comment.