From 7a621a73723a40c1f7c454ac2c0fdd20815372a2 Mon Sep 17 00:00:00 2001 From: Ryosuke Kato Date: Mon, 6 Nov 2023 16:56:05 +0900 Subject: [PATCH] fix: counter function --- src/north/cli/goldstone/north/cli/interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/north/cli/goldstone/north/cli/interface.py b/src/north/cli/goldstone/north/cli/interface.py index af062ef0..23302ea7 100644 --- a/src/north/cli/goldstone/north/cli/interface.py +++ b/src/north/cli/goldstone/north/cli/interface.py @@ -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) @@ -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):