Skip to content

Commit

Permalink
fix: format&unintentional deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
r-suke committed Nov 7, 2023
1 parent 8fc1597 commit 9a9d976
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/north/cli/goldstone/north/cli/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,22 @@ def exec(self, line):
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 9a9d976

Please sign in to comment.