Commit 3c2d16ba authored by Andrey Yemelyanov's avatar Andrey Yemelyanov
Browse files

Update get_inventory.py

parent 9b12f48c
Pipeline #19036 passed with stages
in 24 minutes and 34 seconds
......@@ -47,7 +47,7 @@ class Script(BaseScript):
eth = {}
for n, f, r in self.cli_detail("/interface ethernet print detail without-paging"):
iface = r["default-name"]
eth[str(n)] = iface
eth[str(n)] = iface[3:]
for port in range(len(eth)):
inv = self.cli("/interface ethernet monitor " + str(port) + " once")
rt = self.rx_rate.search(inv)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment