Author SHA1 Message Date
4d86beea46 Update interface_counters from develop (#96)
* adding read_timeout_override netmiko option

* adding netmiko option session_log

* Bump black from 20.8b1 to 24.3.0

Bumps [black](https://github.com/psf/black) from 20.8b1 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits/24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* remove demjson - blocking tests

* FIX minor formating fixes raised by pylama

* FIX limit napalm and netmiko o version 3.*, soften version requirements

* FIX minor formating fixes raised by pylama

* Allow testing on all supported Py versions

* FIX add platform name to driver s350

* FIX force interface speed as a float

* Update information about required versions to Py3.8+ and napalm 3

* Add scheduled check on develop branch

* Update pkg version in setup.py

* Update PublishToPIP.yml for manual run

* Napalm 4 compatibility, newer dependencies

* Full tox testing on "develop" and "master" branch.

* Remove Py13 - too early

* Do not test on PyPy, local test with local Py version only

* CI ThoroughTest for branches develop and master

* CI FastTest for all other branches.

* CI rename legacy jobs

* CI renaname job

* Updata docs

* Shorten name of publish workflow

* Check syntax for Py3.12

* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

* Add format parameter to get_config()

* Add badges

* Tests for push are enought

* update CD actions

* add tests for device SG500-52

* Merge CI to develop (#95)

* Simplify CI

* CI update

* CI update

* Update CI from develop (#94)

* Add format parameter to get_config()

* Add badges

* Tests for push are enought

* update CD actions

* add tests for device SG500-52

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>
2024-04-23 12:45:29 +02:00
Petr Klima f500ec3150 Merge branch 'develop' into interface_counters 2021-03-09 09:55:34 +01:00
Petr Klima bfe83c9c0c Merge branch 'develop' into interface_counters 2021-03-08 15:33:16 +01:00
Petr Klima 12e0e8b7c0 unit tests source files for get_interfaces_counters 2021-02-15 20:02:35 +01:00
51 changed files with 1003 additions and 212 deletions

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Fast Test
on:
push:
branches-ignore:
- develop
- master
jobs:
tox_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Test with tox
run: |
tox
+4 -3
View File
@@ -1,11 +1,12 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Publish Python Package to PyPi.org
name: Publish To PyPi.org
on:
release:
types: [created]
workflow_dispatch:
jobs:
deploy:
@@ -13,9 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
-35
View File
@@ -1,35 +0,0 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Test before push
on:
push:
branches:
- develop
pull_request:
branches:
- develop
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Test with tox
run: |
tox
+38
View File
@@ -0,0 +1,38 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Thorough Test
on:
push:
branches:
- develop
- master
# check every 14 days
schedule:
- cron: '0 6 5,20 * *'
jobs:
tox_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Test with tox
run: |
tox
+5 -4
View File
@@ -3,15 +3,16 @@
NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx, CBS35x).
## Status
Master: ![Build](https://github.com/napalm-automation-community/napalm-s350/workflows/Test%20before%20push/badge.svg?branch=master&event=push)
Develop: ![Build](https://github.com/napalm-automation-community/napalm-s350/workflows/Test%20before%20push/badge.svg?branch=develop&event=push)
Master: [![Thorough Test](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml/badge.svg?branch=master)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml)
PyPi: [![Upload](https://github.com/napalm-automation-community/napalm-s350/workflows/Upload%20Python%20Package%20to%20PyPi.org/badge.svg)](https://github.com/napalm-automation-community/napalm-s350/actions?query=workflow%3A%22Upload+Python+Package+to+PyPi.org%22)
Develop: [![Thorough Test](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml/badge.svg?branch=develop)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/ThoroughTest.yml)
PyPi.org: [![Publish To PyPi.org](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/PublishToPIP.yml/badge.svg?branch=master)](https://github.com/napalm-automation-community/napalm-s350/actions/workflows/PublishToPIP.yml)
## Requirements
Python 3.6+, napalm 3+
Python 3.8+, napalm 4
## Installation
+28 -57
View File
@@ -33,17 +33,12 @@ from napalm.base.exceptions import (
ConnectionClosedException,
)
from napalm.base.helpers import canonical_interface_name
from napalm.base.netmiko_helpers import netmiko_args
import napalm.base.constants as C
import napalm.base.canonical_map
# make may own base_interfaces for s350
s350_base_interfaces = {
**napalm.base.canonical_map.base_interfaces,
"fa": "FastEthernet",
"gi": "GigabitEthernet",
"te": "TengigabitEthernet",
}
from typing import List
class S350Driver(NetworkDriver):
@@ -63,30 +58,9 @@ class S350Driver(NetworkDriver):
self._dest_file_system = optional_args.get("dest_file_system", None)
# Netmiko possible arguments
netmiko_argument_map = {
"port": None,
"secret": "",
"verbose": False,
"keepalive": 30,
"global_delay_factor": 1,
"use_keys": False,
"key_file": None,
"ssh_strict": False,
"system_host_keys": False,
"alt_host_keys": False,
"alt_key_file": "",
"ssh_config_file": None,
"allow_agent": False,
}
# Allow for passing additional Netmiko arguments
self.netmiko_optional_args = {}
for k, v in netmiko_argument_map.items():
try:
self.netmiko_optional_args[k] = optional_args[k]
except KeyError:
pass
self.netmiko_optional_args = netmiko_args(optional_args)
self.platform = "s350"
self.port = optional_args.get("port", 22)
self.device = None
self.force_no_enable = optional_args.get("force_no_enable", False)
@@ -118,16 +92,6 @@ class S350Driver(NetworkDriver):
"""Close the connection to the device."""
self.device.disconnect()
def cli(self, commands):
output = {}
try:
for cmd in commands:
output[cmd] = self.device.send_command(cmd)
return output
except (socket.error, EOFError) as e:
raise ConnectionClosedException(str(e))
def _send_command(self, command):
"""Wrapper for self.device.send.command().
@@ -180,7 +144,7 @@ class S350Driver(NetworkDriver):
else:
raise ValueError("Unexpected output: {}".format(line.split()))
interface = canonical_interface_name(interface, s350_base_interfaces)
interface = canonical_interface_name(interface)
entry = {
"interface": interface,
@@ -193,7 +157,13 @@ class S350Driver(NetworkDriver):
return arp_table
def get_config(self, retrieve="all", full=False, sanitized=False):
def get_config(
self,
retrieve="all",
full=False,
sanitized=False,
format: str = "text",
):
"""
get_config for S350. Since this firmware doesn't support a candidate
configuration we leave it empty.
@@ -288,7 +258,8 @@ class S350Driver(NetworkDriver):
fqdn = "{0}.{1}".format(hostname, domainname)
# interface_list
interfaces = []
interfaces: List[str] = []
show_int_st = show_int_st.strip()
# remove the header information
show_int_st = re.sub(
@@ -298,7 +269,7 @@ class S350Driver(NetworkDriver):
if not line:
continue
interface = line.split()[0]
interface = canonical_interface_name(interface, s350_base_interfaces)
interface = canonical_interface_name(interface)
interfaces.append(str(interface))
@@ -309,7 +280,7 @@ class S350Driver(NetworkDriver):
"model": str(model),
"os_version": str(os_version),
"serial_number": str(serial_number),
"uptime": uptime,
"uptime": float(uptime),
"vendor": "Cisco",
}
@@ -364,7 +335,7 @@ class S350Driver(NetworkDriver):
return uptime_str
def _get_facts_parse_inventory(self, show_inventory):
""" inventory can list more modules/devices """
"""inventory can list more modules/devices"""
# make 1 module 1 line
show_inventory = re.sub(r"\nPID", " PID", show_inventory, re.M)
# delete empty lines
@@ -471,14 +442,14 @@ class S350Driver(NetworkDriver):
entry = {
"is_up": is_up,
"is_enabled": is_enabled,
"speed": speed,
"speed": float(speed),
"mtu": mtu,
"last_flapped": -1.0,
"description": description,
"mac_address": napalm.base.helpers.mac(mac),
}
interface = canonical_interface_name(interface, s350_base_interfaces)
interface = canonical_interface_name(interface)
interfaces[interface] = entry
@@ -516,14 +487,14 @@ class S350Driver(NetworkDriver):
ip = netaddr.IPNetwork(cidr)
family = "ipv{0}".format(ip.version)
interface = canonical_interface_name(interface, s350_base_interfaces)
interface = canonical_interface_name(interface)
interfaces[interface] = {family: {str(ip.ip): {"prefix_length": ip.prefixlen}}}
return interfaces
def _get_ip_int_line_to_fields(self, line, fields_end):
""" dynamic fields lenghts """
"""dynamic fields lenghts"""
line_elems = {}
index = 0
f_start = 0
@@ -534,7 +505,7 @@ class S350Driver(NetworkDriver):
return line_elems
def _get_ip_int_fields_end(self, dashline):
""" fields length are diferent device to device, detect them on horizontal lin """
"""fields length are diferent device to device, detect them on horizontal line"""
fields_end = [m.start() for m in re.finditer(" ", dashline.strip())]
# fields_position.insert(0,0)
@@ -574,7 +545,7 @@ class S350Driver(NetworkDriver):
remote_port = line_elems[2]
remote_name = line_elems[3]
local_port = canonical_interface_name(local_port, s350_base_interfaces)
local_port = canonical_interface_name(local_port)
neighbor = {
"hostname": remote_name,
@@ -588,7 +559,7 @@ class S350Driver(NetworkDriver):
return neighbors
def _get_lldp_neighbors_line_to_fields(self, line, fields_end):
""" dynamic fields lenghts """
"""dynamic fields lenghts"""
line_elems = {}
index = 0
f_start = 0
@@ -599,7 +570,7 @@ class S350Driver(NetworkDriver):
return line_elems
def _get_lldp_neighbors_fields_end(self, dashline):
""" fields length are diferent device to device, detect them on horizontal lin """
"""fields length are diferent device to device, detect them on horizontal line"""
fields_end = [m.start() for m in re.finditer(" ", dashline)]
fields_end.append(len(dashline))
@@ -628,14 +599,14 @@ class S350Driver(NetworkDriver):
if interface:
if interface == local_port:
entry = self._get_lldp_neighbors_detail_parse(local_port)
local_port = canonical_interface_name(local_port, s350_base_interfaces)
local_port = canonical_interface_name(local_port)
details[local_port] = [
entry,
]
else:
entry = self._get_lldp_neighbors_detail_parse(local_port)
local_port = canonical_interface_name(local_port, s350_base_interfaces)
local_port = canonical_interface_name(local_port)
details[local_port] = [
entry,
]
@@ -670,7 +641,7 @@ class S350Driver(NetworkDriver):
elif line.startswith("Capabilities"):
caps = self._get_lldp_neighbors_detail_capabilities_parse(line)
remote_port_id = canonical_interface_name(remote_port_id, s350_base_interfaces)
remote_port_id = canonical_interface_name(remote_port_id)
entry = {
"parent_interface": "N/A",
+14 -12
View File
@@ -1,12 +1,14 @@
black==20.8b1
coveralls==2.1.2
ddt==1.4.1
flake8-import-order==0.18.1
pytest==5.4.3
pytest-cov==2.10.1
pytest-json==0.4.0
pytest-pythonpath==0.7.3
pylama==7.7.1
mock==4.0.2
tox==3.20.1
demjson
napalm>=4.0.0
netmiko>=4.0.0
black>=24.3.0 # CVE-2024-21503
coveralls
ddt
flake8-import-order
pytest
pytest-cov
pytest-json
pytest-pythonpath
pylama
pyflakes
mock
tox
+3 -3
View File
@@ -1,3 +1,3 @@
napalm>=3.0.0
netmiko>=3.1.0
netaddr
napalm>=4.0.0
netmiko>=4.0.0
netaddr>=1.2.1
+6 -3
View File
@@ -12,7 +12,7 @@ with open("README.md", "r") as fs:
setup(
name="napalm-s350",
version="0.3.1",
version="0.4.0",
packages=find_packages(exclude=("test*",)),
author="Jasper Lievisse Adriaanse, Petr Klíma, Daniel Bacher",
author_email="j@jasper.la, qaxi@seznam.cz, mail@phill93.de",
@@ -25,9 +25,12 @@ setup(
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
],
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
+1
View File
@@ -1,4 +1,5 @@
"""Test fixtures."""
from builtins import super
import pytest
@@ -1,3 +1,3 @@
[
{"interface": "vlan 1", "mac": "9C:EB:E8:AA:BB:CC", "ip": "192.168.1.1", "age": 0.0}
{"interface": "VLAN1", "mac": "9C:EB:E8:AA:BB:CC", "ip": "192.168.1.1", "age": 0.0}
]
@@ -1,12 +1,12 @@
[
{"interface": "TengigabitEthernet1/0/1", "mac": "00:00:0C:07:AC:01", "ip": "19.51.0.1", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "E4:C7:22:FE:E0:43", "ip": "19.51.0.2", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "BC:EA:FA:B4:15:AA", "ip": "19.51.0.5", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "BC:EA:FA:B4:14:6F", "ip": "19.51.0.3", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "5C:8A:38:2E:BD:C0", "ip": "19.51.0.1", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "5C:8A:38:2E:FD:E0", "ip": "19.51.0.8", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "00:50:56:93:19:B7", "ip": "19.51.1.4", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "00:50:56:92:2F:CB", "ip": "19.51.1.5", "age": 0.0},
{"interface": "vlan 852", "mac": "00:50:56:9E:51:F3", "ip": "19.51.1.2", "age": 0.0},
{"interface": "vlan 852", "mac": "A4:4C:C8:7D:37:03", "ip": "19.51.14.5", "age": 0.0}
{"interface": "TenGigabitEthernet1/0/1", "mac": "00:00:0C:07:AC:01", "ip": "19.51.0.1", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "E4:C7:22:FE:E0:43", "ip": "19.51.0.2", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "BC:EA:FA:B4:15:AA", "ip": "19.51.0.5", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "BC:EA:FA:B4:14:6F", "ip": "19.51.0.3", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "5C:8A:38:2E:BD:C0", "ip": "19.51.0.1", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "5C:8A:38:2E:FD:E0", "ip": "19.51.0.8", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "00:50:56:93:19:B7", "ip": "19.51.1.4", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "00:50:56:92:2F:CB", "ip": "19.51.1.5", "age": 0.0},
{"interface": "VLAN852", "mac": "00:50:56:9E:51:F3", "ip": "19.51.1.2", "age": 0.0},
{"interface": "VLAN852", "mac": "A4:4C:C8:7D:37:03", "ip": "19.51.14.5", "age": 0.0}
]
@@ -1,4 +1,4 @@
[
{"interface": "vlan 202", "mac": "00:15:17:27:9C:4D", "ip": "10.0.3.1", "age": 0.0},
{"interface": "vlan 202", "mac": "00:50:56:90:23:E8", "ip": "10.0.3.4", "age": 0.0}
{"interface": "VLAN202", "mac": "00:15:17:27:9C:4D", "ip": "10.0.3.1", "age": 0.0},
{"interface": "VLAN202", "mac": "00:50:56:90:23:E8", "ip": "10.0.3.4", "age": 0.0}
]
@@ -1,61 +1,61 @@
[
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.1",
"mac" : "AB:00:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.2",
"mac" : "AB:C7:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.65",
"mac" : "AB:EA:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.73",
"mac" : "AB:EA:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.40",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.44",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "vlan 1",
"interface" : "VLAN1",
"ip" : "192.168.0.4",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.49",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.2",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "vlan 1",
"interface" : "VLAN1",
"ip" : "192.168.0.142",
"mac" : "AB:50:EF:12:34:56"
}
@@ -1,3 +1,3 @@
[
{"interface": "vlan 1", "mac": "9C:EB:E8:AA:BB:CC", "ip": "192.168.1.1", "age": 0.0}
{"interface": "VLAN1", "mac": "9C:EB:E8:AA:BB:CC", "ip": "192.168.1.1", "age": 0.0}
]
@@ -1,12 +1,12 @@
[
{"interface": "TengigabitEthernet1/0/1", "mac": "00:00:0C:07:AC:01", "ip": "19.51.0.1", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "E4:C7:22:FE:E0:43", "ip": "19.51.0.2", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "BC:EA:FA:B4:15:AA", "ip": "19.51.0.5", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "BC:EA:FA:B4:14:6F", "ip": "19.51.0.3", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "5C:8A:38:2E:BD:C0", "ip": "19.51.0.1", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "5C:8A:38:2E:FD:E0", "ip": "19.51.0.8", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "00:50:56:93:19:B7", "ip": "19.51.1.4", "age": 0.0},
{"interface": "TengigabitEthernet1/0/1", "mac": "00:50:56:92:2F:CB", "ip": "19.51.1.5", "age": 0.0},
{"interface": "vlan 852", "mac": "00:50:56:9E:51:F3", "ip": "19.51.1.2", "age": 0.0},
{"interface": "vlan 852", "mac": "A4:4C:C8:7D:37:03", "ip": "19.51.14.5", "age": 0.0}
{"interface": "TenGigabitEthernet1/0/1", "mac": "00:00:0C:07:AC:01", "ip": "19.51.0.1", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "E4:C7:22:FE:E0:43", "ip": "19.51.0.2", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "BC:EA:FA:B4:15:AA", "ip": "19.51.0.5", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "BC:EA:FA:B4:14:6F", "ip": "19.51.0.3", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "5C:8A:38:2E:BD:C0", "ip": "19.51.0.1", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "5C:8A:38:2E:FD:E0", "ip": "19.51.0.8", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "00:50:56:93:19:B7", "ip": "19.51.1.4", "age": 0.0},
{"interface": "TenGigabitEthernet1/0/1", "mac": "00:50:56:92:2F:CB", "ip": "19.51.1.5", "age": 0.0},
{"interface": "VLAN852", "mac": "00:50:56:9E:51:F3", "ip": "19.51.1.2", "age": 0.0},
{"interface": "VLAN852", "mac": "A4:4C:C8:7D:37:03", "ip": "19.51.14.5", "age": 0.0}
]
@@ -1,4 +1,4 @@
[
{"interface": "vlan 202", "mac": "00:15:17:27:9C:4D", "ip": "10.0.3.1", "age": 0.0},
{"interface": "vlan 202", "mac": "00:50:56:90:23:E8", "ip": "10.0.3.4", "age": 0.0}
{"interface": "VLAN202", "mac": "00:15:17:27:9C:4D", "ip": "10.0.3.1", "age": 0.0},
{"interface": "VLAN202", "mac": "00:50:56:90:23:E8", "ip": "10.0.3.4", "age": 0.0}
]
@@ -1,61 +1,61 @@
[
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.1",
"mac" : "AB:00:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.2",
"mac" : "AB:C7:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.65",
"mac" : "AB:EA:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.73",
"mac" : "AB:EA:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.40",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.44",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "vlan 1",
"interface" : "VLAN1",
"ip" : "192.168.0.4",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.49",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "TengigabitEthernet1/0/4",
"interface" : "TenGigabitEthernet1/0/4",
"ip" : "192.168.0.2",
"mac" : "AB:50:EF:12:34:56"
},
{
"age" : 0.0,
"interface" : "vlan 1",
"interface" : "VLAN1",
"ip" : "192.168.0.142",
"mac" : "AB:50:EF:12:34:56"
}
@@ -50,10 +50,10 @@
"GigabitEthernet1/0/46",
"GigabitEthernet1/0/47",
"GigabitEthernet1/0/48",
"TengigabitEthernet1/0/1",
"TengigabitEthernet1/0/2",
"TengigabitEthernet1/0/3",
"TengigabitEthernet1/0/4",
"TenGigabitEthernet1/0/1",
"TenGigabitEthernet1/0/2",
"TenGigabitEthernet1/0/3",
"TenGigabitEthernet1/0/4",
"Port-channel1",
"Port-channel2",
"Port-channel3",
@@ -50,10 +50,10 @@
"GigabitEthernet1/0/46",
"GigabitEthernet1/0/47",
"GigabitEthernet1/0/48",
"TengigabitEthernet1/0/1",
"TengigabitEthernet1/0/2",
"TengigabitEthernet1/0/3",
"TengigabitEthernet1/0/4",
"TenGigabitEthernet1/0/1",
"TenGigabitEthernet1/0/2",
"TenGigabitEthernet1/0/3",
"TenGigabitEthernet1/0/4",
"Port-channel1",
"Port-channel2",
"Port-channel3",
@@ -50,10 +50,10 @@
"GigabitEthernet1/0/46",
"GigabitEthernet1/0/47",
"GigabitEthernet1/0/48",
"TengigabitEthernet1/0/1",
"TengigabitEthernet1/0/2",
"TengigabitEthernet1/0/3",
"TengigabitEthernet1/0/4",
"TenGigabitEthernet1/0/1",
"TenGigabitEthernet1/0/2",
"TenGigabitEthernet1/0/3",
"TenGigabitEthernet1/0/4",
"Port-channel1",
"Port-channel2",
"Port-channel3",
@@ -26,10 +26,10 @@
"GigabitEthernet1/0/22",
"GigabitEthernet1/0/23",
"GigabitEthernet1/0/24",
"TengigabitEthernet1/0/1",
"TengigabitEthernet1/0/2",
"TengigabitEthernet1/0/3",
"TengigabitEthernet1/0/4",
"TenGigabitEthernet1/0/1",
"TenGigabitEthernet1/0/2",
"TenGigabitEthernet1/0/3",
"TenGigabitEthernet1/0/4",
"Port-channel1",
"Port-channel2",
"Port-channel3",
@@ -431,7 +431,7 @@
"mtu" : 9000,
"speed" : 0
},
"TengigabitEthernet1/0/1" : {
"TenGigabitEthernet1/0/1" : {
"description" : "T1",
"is_enabled" : true,
"is_up" : true,
@@ -440,7 +440,7 @@
"mtu" : 9000,
"speed" : 1000
},
"TengigabitEthernet1/0/2" : {
"TenGigabitEthernet1/0/2" : {
"description" : "",
"is_enabled" : false,
"is_up" : false,
@@ -449,7 +449,7 @@
"mtu" : 9000,
"speed" : 0
},
"TengigabitEthernet1/0/3" : {
"TenGigabitEthernet1/0/3" : {
"description" : "T2",
"is_enabled" : true,
"is_up" : true,
@@ -458,7 +458,7 @@
"mtu" : 9000,
"speed" : 1000
},
"TengigabitEthernet1/0/4" : {
"TenGigabitEthernet1/0/4" : {
"description" : "T3",
"is_enabled" : true,
"is_up" : true,
@@ -215,7 +215,7 @@
"mtu" : 9000,
"speed" : 0
},
"TengigabitEthernet1/0/1" : {
"TenGigabitEthernet1/0/1" : {
"description" : "SW switch-c",
"is_enabled" : true,
"is_up" : true,
@@ -224,7 +224,7 @@
"mtu" : 9000,
"speed" : 1000
},
"TengigabitEthernet1/0/2" : {
"TenGigabitEthernet1/0/2" : {
"description" : "",
"is_enabled" : false,
"is_up" : false,
@@ -233,7 +233,7 @@
"mtu" : 9000,
"speed" : 0
},
"TengigabitEthernet1/0/3" : {
"TenGigabitEthernet1/0/3" : {
"description" : "",
"is_enabled" : false,
"is_up" : false,
@@ -242,7 +242,7 @@
"mtu" : 9000,
"speed" : 0
},
"TengigabitEthernet1/0/4" : {
"TenGigabitEthernet1/0/4" : {
"description" : "SW switch-c",
"is_enabled" : true,
"is_up" : true,
@@ -0,0 +1,86 @@
Port InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
gi1 12724847 25091 69175 2430807702
gi2 0 0 0 0
gi3 26614316 193486 57228 24197516152
gi4 0 0 0 0
gi5 362382 160320 46622 207649706
gi6 0 0 0 0
gi7 21774352 214543 168811 8520825728
gi8 344854 191 2209 29459312
gi9 22024358 197042 156805 2929823817
gi10 0 0 0 0
gi11 0 0 0 0
gi12 0 0 0 0
gi13 4060170704 167058 29065 579658873163
4
gi14 0 0 0 0
gi15 0 0 0 0
gi16 0 0 0 0
gi17 0 0 0 0
gi18 0 0 0 0
gi19 5900372 10486 10863 754645963
gi20 7364951 5033 840 1372100560
gi21 5141042 10188 1507 1046986336
gi22 3489314 8841 1622 732734077
gi23 4435341 3755 714 627664680
gi24 0 0 0 0
gi25 0 0 0 0
gi26 0 0 0 0
gi27 0 0 0 0
gi28 1328323677 59513028 425823581 239888064763
Port OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
gi1 16878313 17235722 156151437 25941855856
gi2 0 0 0 0
gi3 29303622 20703120 100743284 40600595867
gi4 0 0 0 0
gi5 5804870 24732883 116933844 20666918673
gi6 0 0 0 0
gi7 36768951 24307390 110683209 51989987663
gi8 8807905 35463543 239516970 31236177714
gi9 36890277 49258769 425487140 53973048210
gi10 0 0 0 0
gi11 0 0 0 0
gi12 0 0 0 0
gi13 1181592048 49289691 425614959 128267896203
gi14 0 0 0 0
gi15 0 0 0 0
gi16 0 0 0 0
gi17 0 0 0 0
gi18 0 0 0 0
gi19 11437796 2447506 8123361 15944849294
gi20 20418827 49484564 422620348 53360251404
gi21 15621628 48410220 405765518 46833330223
gi22 8486849 21467320 98425477 20404370114
gi23 8670184 17390828 155126604 19723793533
gi24 0 0 0 0
gi25 0 0 0 0
gi26 0 0 0 0
gi27 0 0 0 0
gi28 4180337648 1668125 698794 584007157778
2
Ch InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
Po1 0 0 0 0
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Ch OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
Po1 0 0 0 0
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
@@ -0,0 +1,180 @@
Port InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
gi1/1 2354142991 1610055 2914581 1390877169
gi1/2 0 0 0 0
gi1/3 0 0 0 0
gi1/4 18793871 556023 789476 5763740205
gi1/5 77715977 617918 1063871 53119405272
gi1/6 4208985 0 1195 936774108
gi1/7 0 0 0 0
gi1/8 19223 0 220 1733501
gi1/9 0 0 0 0
gi1/10 8277 67 44 864940
gi1/11 36 203 26 69762
gi1/12 0 0 0 0
gi1/13 0 0 0 0
gi1/14 0 0 0 0
gi1/15 0 0 0 0
gi1/16 49450 0 14124 5599120
gi1/17 0 0 0 0
gi1/18 26104170 793307 45721 4408368566
gi1/19 0 0 0 0
gi1/20 41522202 346409 223836 18401243166
gi1/21 0 0 0 0
gi1/22 7617215 26 746069 7686447710
gi1/23 68821290 122085 311564 33357598729
gi1/24 0 0 0 0
gi1/25 50841056 23543 1912594 4994253799
gi1/26 10421877 188178 13160 2986426756
gi1/27 2672 139 96 438562
gi1/28 240940334 23749 1977702 17291680251
gi1/29 147352 1494 642 16299495
gi1/30 0 0 0 0
gi1/31 0 0 0 0
gi1/32 0 0 0 0
gi1/33 0 0 0 0
gi1/34 0 0 0 0
gi1/35 0 0 0 0
gi1/36 0 0 0 0
gi1/37 0 0 0 0
gi1/38 0 0 0 0
gi1/39 28903856 28078 1555378 23576111082
gi1/40 0 0 0 0
gi1/41 0 0 0 0
gi1/42 875711760 160147 582918 1139818518
gi1/43 0 0 0 0
gi1/44 0 0 0 0
gi1/45 0 0 0 0
gi1/46 0 0 0 0
gi1/47 18630633 27811 33664 6987953774
gi1/48 0 0 0 0
gi1/49 1499736786 54292537 157107806 101540745239
gi1/50 1416591255 61656332 271694872 106845593699
gi1/51 0 0 0 0
gi1/52 0 0 0 0
Port OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
gi1/1 1677031416 56179438 436843853 133776092401
gi1/2 0 0 0 0
gi1/3 0 0 0 0
gi1/4 40294102 51057871 424777908 75351183039
gi1/5 102406008 21163630 80232872 90734950207
gi1/6 9957095 62691508 426423883 48247233588
gi1/7 0 0 0 0
gi1/8 58784 224090 950531 148245117
gi1/9 0 0 0 0
gi1/10 13881 120483 265195 105502411
gi1/11 597 8004 714 915581
gi1/12 0 0 0 0
gi1/13 0 0 0 0
gi1/14 0 0 0 0
gi1/15 0 0 0 0
gi1/16 5811753 62691510 426410720 47310501411
gi1/17 0 0 0 0
gi1/18 57012916 93766831 438017983 119497193333
gi1/19 0 0 0 0
gi1/20 65344589 62340541 421836136 101101272194
gi1/21 0 0 0 0
gi1/22 10921412 62691486 425678784 47884767069
gi1/23 122294828 23538986 91655764 152475979575
gi1/24 0 0 0 0
gi1/25 37653381 62665127 424526642 50841007024
gi1/26 21272858 62495753 420511694 62847811902
gi1/27 1546 594 2104 1221061
gi1/28 134335597 62664668 424447411 57535802400
gi1/29 372756 31714 122058 549910828
gi1/30 0 0 0 0
gi1/31 0 0 0 0
gi1/32 0 0 0 0
gi1/33 0 0 0 0
gi1/34 0 0 0 0
gi1/35 0 0 0 0
gi1/36 0 0 0 0
gi1/37 0 0 0 0
gi1/38 0 0 0 0
gi1/39 32892937 62666252 424881006 67892016897
gi1/40 0 0 0 0
gi1/41 0 0 0 0
gi1/42 607083288 62524409 425850923 310500410006
gi1/43 0 0 0 0
gi1/44 0 0 0 0
gi1/45 0 0 0 0
gi1/46 0 0 0 0
gi1/47 43164070 62793877 423562650 97912710296
gi1/48 0 0 0 0
gi1/49 2071352964 2222253 3408535 142356950021
gi1/50 1723881128 1623519 5898427 126142187042
gi1/51 0 0 0 0
gi1/52 0 0 0 0
Ch InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
Po1 0 0 0 0
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Po9 0 0 0 0
Po10 0 0 0 0
Po11 0 0 0 0
Po12 0 0 0 0
Po13 0 0 0 0
Po14 0 0 0 0
Po15 0 0 0 0
Po16 0 0 0 0
Po17 0 0 0 0
Po18 0 0 0 0
Po19 0 0 0 0
Po20 0 0 0 0
Po21 0 0 0 0
Po22 0 0 0 0
Po23 0 0 0 0
Po24 0 0 0 0
Po25 0 0 0 0
Po26 0 0 0 0
Po27 0 0 0 0
Po28 0 0 0 0
Po29 0 0 0 0
Po30 0 0 0 0
Po31 0 0 0 0
Po32 0 0 0 0
Ch OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
Po1 0 0 0 0
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Po9 0 0 0 0
Po10 0 0 0 0
Po11 0 0 0 0
Po12 0 0 0 0
Po13 0 0 0 0
Po14 0 0 0 0
Po15 0 0 0 0
Po16 0 0 0 0
Po17 0 0 0 0
Po18 0 0 0 0
Po19 0 0 0 0
Po20 0 0 0 0
Po21 0 0 0 0
Po22 0 0 0 0
Po23 0 0 0 0
Po24 0 0 0 0
Po25 0 0 0 0
Po26 0 0 0 0
Po27 0 0 0 0
Po28 0 0 0 0
Po29 0 0 0 0
Po30 0 0 0 0
Po31 0 0 0 0
Po32 0 0 0 0
@@ -0,0 +1,187 @@
Port InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
gi1/1 2354142991 1610055 2914581 139087716922
6
gi1/2 0 0 0 0
gi1/3 0 0 0 0
gi1/4 18793871 556023 789476 5763740205
gi1/5 77715977 617918 1063871 53119405272
gi1/6 4208985 0 1195 936774108
gi1/7 0 0 0 0
gi1/8 19223 0 220 1733501
gi1/9 0 0 0 0
gi1/10 8277 67 44 864940
gi1/11 36 203 26 69762
gi1/12 0 0 0 0
gi1/13 0 0 0 0
gi1/14 0 0 0 0
gi1/15 0 0 0 0
gi1/16 49450 0 14124 5599120
gi1/17 0 0 0 0
gi1/18 26104170 793307 45721 4408368566
gi1/19 0 0 0 0
gi1/20 41522202 346409 223836 18401243166
gi1/21 0 0 0 0
gi1/22 7617215 26 746069 7686447710
gi1/23 68821290 122085 311564 33357598729
gi1/24 0 0 0 0
gi1/25 50841056 23543 1912594 4994253799
gi1/26 10421877 188178 13160 2986426756
gi1/27 2672 139 96 438562
gi1/28 240940334 23749 1977702 17291680251
gi1/29 147352 1494 642 16299495
gi1/30 0 0 0 0
gi1/31 0 0 0 0
gi1/32 0 0 0 0
gi1/33 0 0 0 0
gi1/34 0 0 0 0
gi1/35 0 0 0 0
gi1/36 0 0 0 0
gi1/37 0 0 0 0
gi1/38 0 0 0 0
gi1/39 28903856 28078 1555378 23576111082
gi1/40 0 0 0 0
gi1/41 0 0 0 0
gi1/42 875711760 160147 582918 113981851851
3
gi1/43 0 0 0 0
gi1/44 0 0 0 0
gi1/45 0 0 0 0
gi1/46 0 0 0 0
gi1/47 18630633 27811 33664 6987953774
gi1/48 0 0 0 0
gi1/49 1499736786 54292537 157107806 101540745239
9
gi1/50 1416591255 61656332 271694872 106845593699
7
gi1/51 0 0 0 0
gi1/52 0 0 0 0
Port OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
gi1/1 1677031416 56179438 436843853 133776092401
7
gi1/2 0 0 0 0
gi1/3 0 0 0 0
gi1/4 40294102 51057871 424777908 75351183039
gi1/5 102406008 21163630 80232872 90734950207
gi1/6 9957095 62691508 426423883 48247233588
gi1/7 0 0 0 0
gi1/8 58784 224090 950531 148245117
gi1/9 0 0 0 0
gi1/10 13881 120483 265195 105502411
gi1/11 597 8004 714 915581
gi1/12 0 0 0 0
gi1/13 0 0 0 0
gi1/14 0 0 0 0
gi1/15 0 0 0 0
gi1/16 5811753 62691510 426410720 47310501411
gi1/17 0 0 0 0
gi1/18 57012916 93766831 438017983 119497193333
gi1/19 0 0 0 0
gi1/20 65344589 62340541 421836136 101101272194
gi1/21 0 0 0 0
gi1/22 10921412 62691486 425678784 47884767069
gi1/23 122294828 23538986 91655764 152475979575
gi1/24 0 0 0 0
gi1/25 37653381 62665127 424526642 50841007024
gi1/26 21272858 62495753 420511694 62847811902
gi1/27 1546 594 2104 1221061
gi1/28 134335597 62664668 424447411 57535802400
gi1/29 372756 31714 122058 549910828
gi1/30 0 0 0 0
gi1/31 0 0 0 0
gi1/32 0 0 0 0
gi1/33 0 0 0 0
gi1/34 0 0 0 0
gi1/35 0 0 0 0
gi1/36 0 0 0 0
gi1/37 0 0 0 0
gi1/38 0 0 0 0
gi1/39 32892937 62666252 424881006 67892016897
gi1/40 0 0 0 0
gi1/41 0 0 0 0
gi1/42 607083288 62524409 425850923 310500410006
gi1/43 0 0 0 0
gi1/44 0 0 0 0
gi1/45 0 0 0 0
gi1/46 0 0 0 0
gi1/47 43164070 62793877 423562650 97912710296
gi1/48 0 0 0 0
gi1/49 2071352964 2222253 3408535 142356950021
0
gi1/50 1723881128 1623519 5898427 126142187042
2
gi1/51 0 0 0 0
gi1/52 0 0 0 0
Ch InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
Po1 0 0 0 0
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Po9 0 0 0 0
Po10 0 0 0 0
Po11 0 0 0 0
Po12 0 0 0 0
Po13 0 0 0 0
Po14 0 0 0 0
Po15 0 0 0 0
Po16 0 0 0 0
Po17 0 0 0 0
Po18 0 0 0 0
Po19 0 0 0 0
Po20 0 0 0 0
Po21 0 0 0 0
Po22 0 0 0 0
Po23 0 0 0 0
Po24 0 0 0 0
Po25 0 0 0 0
Po26 0 0 0 0
Po27 0 0 0 0
Po28 0 0 0 0
Po29 0 0 0 0
Po30 0 0 0 0
Po31 0 0 0 0
Po32 0 0 0 0
Ch OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
Po1 0 0 0 0
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Po9 0 0 0 0
Po10 0 0 0 0
Po11 0 0 0 0
Po12 0 0 0 0
Po13 0 0 0 0
Po14 0 0 0 0
Po15 0 0 0 0
Po16 0 0 0 0
Po17 0 0 0 0
Po18 0 0 0 0
Po19 0 0 0 0
Po20 0 0 0 0
Po21 0 0 0 0
Po22 0 0 0 0
Po23 0 0 0 0
Po24 0 0 0 0
Po25 0 0 0 0
Po26 0 0 0 0
Po27 0 0 0 0
Po28 0 0 0 0
Po29 0 0 0 0
Po30 0 0 0 0
Po31 0 0 0 0
Po32 0 0 0 0
@@ -0,0 +1,189 @@
Port InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
gi1/1 2354142991 1610055 2914581 139087716922
6
gi1/2 0 0 0 0
gi1/3 0 0 0 0
gi1/4 18793871 556023 789476 5763740205
gi1/5 77715977 617918 1063871 53119405272
gi1/6 4208985 0 1195 936774108
gi1/7 0 0 0 0
gi1/8 19223 0 220 1733501
gi1/9 0 0 0 0
gi1/10 8277 67 44 864940
gi1/11 36 203 26 69762
gi1/12 0 0 0 0
gi1/13 0 0 0 0
gi1/14 0 0 0 0
gi1/15 0 0 0 0
gi1/16 49450 0 14124 5599120
gi1/17 0 0 0 0
gi1/18 26104170 793307 45721 4408368566
gi1/19 0 0 0 0
gi1/20 41522202 346409 223836 18401243166
gi1/21 0 0 0 0
gi1/22 7617215 26 746069 7686447710
gi1/23 68821290 122085 311564 33357598729
gi1/24 0 0 0 0
gi1/25 50841056 23543 1912594 4994253799
gi1/26 10421877 188178 13160 2986426756
gi1/27 2672 139 96 438562
gi1/28 240940334 23749 1977702 17291680251
gi1/29 147352 1494 642 16299495
gi1/30 0 0 0 0
gi1/31 0 0 0 0
gi1/32 0 0 0 0
gi1/33 0 0 0 0
gi1/34 0 0 0 0
gi1/35 0 0 0 0
gi1/36 0 0 0 0
gi1/37 0 0 0 0
gi1/38 0 0 0 0
gi1/39 28903856 28078 1555378 23576111082
gi1/40 0 0 0 0
gi1/41 0 0 0 0
gi1/42 875711760 160147 582918 113981851851
3
gi1/43 0 0 0 0
gi1/44 0 0 0 0
gi1/45 0 0 0 0
gi1/46 0 0 0 0
gi1/47 18630633 27811 33664 6987953774
gi1/48 0 0 0 0
gi1/49 1499736786 54292537 157107806 101540745239
9
gi1/50 1416591255 61656332 271694872 106845593699
7
gi1/51 0 0 0 0
gi1/52 0 0 0 0
Port OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
gi1/1 1677031416 56179438 436843853 133776092401
7
gi1/2 0 0 0 0
gi1/3 0 0 0 0
gi1/4 40294102 51057871 424777908 75351183039
gi1/5 102406008 21163630 80232872 90734950207
gi1/6 9957095 62691508 426423883 48247233588
gi1/7 0 0 0 0
gi1/8 58784 224090 950531 148245117
gi1/9 0 0 0 0
gi1/10 13881 120483 265195 105502411
gi1/11 597 8004 714 915581
gi1/12 0 0 0 0
gi1/13 0 0 0 0
gi1/14 0 0 0 0
gi1/15 0 0 0 0
gi1/16 5811753 62691510 426410720 47310501411
gi1/17 0 0 0 0
gi1/18 57012916 93766831 438017983 119497193333
gi1/19 0 0 0 0
gi1/20 65344589 62340541 421836136 101101272194
gi1/21 0 0 0 0
gi1/22 10921412 62691486 425678784 47884767069
gi1/23 122294828 23538986 91655764 152475979575
gi1/24 0 0 0 0
gi1/25 37653381 62665127 424526642 50841007024
gi1/26 21272858 62495753 420511694 62847811902
gi1/27 1546 594 2104 1221061
gi1/28 134335597 62664668 424447411 57535802400
gi1/29 372756 31714 122058 549910828
gi1/30 0 0 0 0
gi1/31 0 0 0 0
gi1/32 0 0 0 0
gi1/33 0 0 0 0
gi1/34 0 0 0 0
gi1/35 0 0 0 0
gi1/36 0 0 0 0
gi1/37 0 0 0 0
gi1/38 0 0 0 0
gi1/39 32892937 62666252 424881006 67892016897
gi1/40 0 0 0 0
gi1/41 0 0 0 0
gi1/42 607083288 62524409 425850923 310500410006
gi1/43 0 0 0 0
gi1/44 0 0 0 0
gi1/45 0 0 0 0
gi1/46 0 0 0 0
gi1/47 43164070 62793877 423562650 97912710296
gi1/48 0 0 0 0
gi1/49 2071352964 2222253 3408535 142356950021
0
gi1/50 1723881128 1623519 5898427 126142187042
2
gi1/51 0 0 0 0
gi1/52 0 0 0 0
Ch InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
Po1 2916329180 115948925 428802965 208386365411
2
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Po9 0 0 0 0
Po10 0 0 0 0
Po11 0 0 0 0
Po12 0 0 0 0
Po13 0 0 0 0
Po14 0 0 0 0
Po15 0 0 0 0
Po16 0 0 0 0
Po17 0 0 0 0
Po18 0 0 0 0
Po19 0 0 0 0
Po20 0 0 0 0
Po21 0 0 0 0
Po22 0 0 0 0
Po23 0 0 0 0
Po24 0 0 0 0
Po25 0 0 0 0
Po26 0 0 0 0
Po27 0 0 0 0
Po28 0 0 0 0
Po29 0 0 0 0
Po30 0 0 0 0
Po31 0 0 0 0
Po32 0 0 0 0
Ch OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
Po1 3795235556 3845774 9306965 268499236646
2
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Po9 0 0 0 0
Po10 0 0 0 0
Po11 0 0 0 0
Po12 0 0 0 0
Po13 0 0 0 0
Po14 0 0 0 0
Po15 0 0 0 0
Po16 0 0 0 0
Po17 0 0 0 0
Po18 0 0 0 0
Po19 0 0 0 0
Po20 0 0 0 0
Po21 0 0 0 0
Po22 0 0 0 0
Po23 0 0 0 0
Po24 0 0 0 0
Po25 0 0 0 0
Po26 0 0 0 0
Po27 0 0 0 0
Po28 0 0 0 0
Po29 0 0 0 0
Po30 0 0 0 0
Po31 0 0 0 0
Po32 0 0 0 0
@@ -0,0 +1,137 @@
Port InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
gi1/0/1 0 0 0 0
gi1/0/2 168419 2302 165980 28874268
gi1/0/3 0 0 0 0
gi1/0/4 0 0 0 0
gi1/0/5 75579227 25806095 4286527 13587949961
gi1/0/6 0 0 0 0
gi1/0/7 0 32 10 4214
gi1/0/8 0 688 133 82410
gi1/0/9 124239633 134064 43016 10410663452
gi1/0/10 750189 6480 236 74416239
gi1/0/11 0 0 0 0
gi1/0/12 0 0 0 0
gi1/0/13 0 0 0 0
gi1/0/14 0 0 0 0
gi1/0/15 0 0 0 0
gi1/0/16 0 0 0 0
gi1/0/17 0 0 0 0
gi1/0/18 0 0 0 0
gi1/0/19 0 0 0 0
gi1/0/20 0 3611 678 427532
gi1/0/21 79357 7 9294 7117967
gi1/0/22 760779 3 247 75535386
gi1/0/23 25857957 51645 1167760 3115758205
gi1/0/24 0 0 0 0
te1/0/1 238843341 3495137 9852898 528781738521
7
te1/0/2 2739192083 2797209 13612229 672093070560
5
te1/0/3 6119219 449326142 887994348 106933018625
te1/0/4 3401961966 489000804 864023167 219513048623
6
Port OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
gi1/0/1 0 0 0 0
gi1/0/2 184820 55307 290482 137820432
gi1/0/3 0 0 0 0
gi1/0/4 0 0 0 0
gi1/0/5 81585369 482891860 888917224 132573067828
gi1/0/6 0 0 0 0
gi1/0/7 5 315 1234 145666
gi1/0/8 91 8321 29818 3278896
gi1/0/9 162172680 178455092 587497940 176766717515
gi1/0/10 14813136 281718560 887406642 97144655653
gi1/0/11 0 0 0 0
gi1/0/12 13868830 281725183 887404281 97056379291
gi1/0/13 0 0 0 0
gi1/0/14 0 0 0 0
gi1/0/15 0 0 0 0
gi1/0/16 0 0 0 0
gi1/0/17 0 0 0 0
gi1/0/18 0 0 0 0
gi1/0/19 0 0 0 0
gi1/0/20 822 43501 195237 20493622
gi1/0/21 13943763 281725478 887398022 97062919494
gi1/0/22 14823244 281725485 887407163 97146508925
gi1/0/23 33554581 281673848 886239666 98900539448
gi1/0/24 13868830 281725140 887406715 97056525254
te1/0/1 2457536952 279005005 877554371 652904884056
te1/0/2 963755558 279702938 873794733 161304123441
0
te1/0/3 267408 1298097 98267 397356363
te1/0/4 2957028111 27906000 29163020 119134362756
33
Ch InUcastPkts InMcastPkts InBcastPkts InOctets
---------------- ------------ ------------ ------------ ------------
Po1 0 0 0 0
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Po9 0 0 0 0
Po10 0 0 0 0
Po11 0 0 0 0
Po12 0 0 0 0
Po13 0 0 0 0
Po14 0 0 0 0
Po15 0 0 0 0
Po16 0 0 0 0
Po17 0 0 0 0
Po18 0 0 0 0
Po19 0 0 0 0
Po20 0 0 0 0
Po21 0 0 0 0
Po22 0 0 0 0
Po23 0 0 0 0
Po24 0 0 0 0
Po25 0 0 0 0
Po26 0 0 0 0
Po27 0 0 0 0
Po28 0 0 0 0
Po29 0 0 0 0
Po30 0 0 0 0
Po31 0 0 0 0
Po32 0 0 0 0
Ch OutUcastPkts OutMcastPkts OutBcastPkts OutOctets
---------------- ------------ ------------ ------------ ------------
Po1 0 0 0 0
Po2 0 0 0 0
Po3 0 0 0 0
Po4 0 0 0 0
Po5 0 0 0 0
Po6 0 0 0 0
Po7 0 0 0 0
Po8 0 0 0 0
Po9 0 0 0 0
Po10 0 0 0 0
Po11 0 0 0 0
Po12 0 0 0 0
Po13 0 0 0 0
Po14 0 0 0 0
Po15 0 0 0 0
Po16 0 0 0 0
Po17 0 0 0 0
Po18 0 0 0 0
Po19 0 0 0 0
Po20 0 0 0 0
Po21 0 0 0 0
Po22 0 0 0 0
Po23 0 0 0 0
Po24 0 0 0 0
Po25 0 0 0 0
Po26 0 0 0 0
Po27 0 0 0 0
Po28 0 0 0 0
Po29 0 0 0 0
Po30 0 0 0 0
Po31 0 0 0 0
Po32 0 0 0 0
@@ -1,4 +1,4 @@
{
"vlan 10" : { "ipv4" : { "10.1.2.2" : { "prefix_length" : 24 } } },
"vlan 80" : { "ipv4" : { "10.0.0.150" : { "prefix_length" : 24 } } }
"VLAN10" : { "ipv4" : { "10.1.2.2" : { "prefix_length" : 24 } } },
"VLAN80" : { "ipv4" : { "10.0.0.150" : { "prefix_length" : 24 } } }
}
@@ -1 +1 @@
{ "vlan 1" : { "ipv4" : { "192.168.1.254" : { "prefix_length" : 24 } } } }
{ "VLAN1" : { "ipv4" : { "192.168.1.254" : { "prefix_length" : 24 } } } }
@@ -1,4 +1,4 @@
{
"vlan 1" : { "ipv4" : { "198.51.100.2" : { "prefix_length" : 24 } } },
"vlan 852" : { "ipv4" : { "198.51.100.1" : { "prefix_length" : 16 } } }
"VLAN1" : { "ipv4" : { "198.51.100.2" : { "prefix_length" : 24 } } },
"VLAN852" : { "ipv4" : { "198.51.100.1" : { "prefix_length" : 16 } } }
}
@@ -1 +1 @@
{"vlan 202": {"ipv4": {"10.0.3.5": {"prefix_length": 8}}}}
{"VLAN202": {"ipv4": {"10.0.3.5": {"prefix_length": 8}}}}
@@ -1 +1 @@
{"vlan 1": {"ipv4": {"192.168.0.37": {"prefix_length": 17}}}}
{"VLAN1": {"ipv4": {"192.168.0.37": {"prefix_length": 17}}}}
@@ -7,15 +7,15 @@
"hostname" : "",
"port" : "34:e6:aa:ff:53:a8"
} ],
"TengigabitEthernet1/0/1" : [ {
"TenGigabitEthernet1/0/1" : [ {
"hostname" : "swzdsadas-vedc",
"port" : "Gi0/23"
} ],
"TengigabitEthernet1/0/3" : [ {
"TenGigabitEthernet1/0/3" : [ {
"hostname" : "sw1dsafdsfsdf.example.net",
"port" : "gi28"
} ],
"TengigabitEthernet1/0/4" : [ {
"TenGigabitEthernet1/0/4" : [ {
"hostname" : "sw2dsdfssddfd",
"port" : "te1/0/4"
} ]
@@ -7,15 +7,15 @@
"hostname" : "",
"port" : "34:e6:aa:ff:53:a8"
} ],
"TengigabitEthernet1/0/1" : [ {
"TenGigabitEthernet1/0/1" : [ {
"hostname" : "swzdsadas-vedc",
"port" : "Gi0/23"
} ],
"TengigabitEthernet1/0/3" : [ {
"TenGigabitEthernet1/0/3" : [ {
"hostname" : "sw1dsafdsfsdfsdd",
"port" : "gi28"
} ],
"TengigabitEthernet1/0/4" : [ {
"TenGigabitEthernet1/0/4" : [ {
"hostname" : "sw2dsdfssddfd",
"port" : "te1/0/4"
} ]
@@ -15,11 +15,11 @@
"hostname" : "ab:48:ef:12:34:56",
"port" : "ab:48:ef:12:34:56"
} ],
"TengigabitEthernet1/0/1" : [ {
"TenGigabitEthernet1/0/1" : [ {
"hostname" : "switch-c",
"port" : "gi1/0/1"
} ],
"TengigabitEthernet1/0/4" : [ {
"TenGigabitEthernet1/0/4" : [ {
"hostname" : "switch-c.cb.madeta.cz",
"port" : "Gi1/0/26"
} ]
@@ -1,4 +1,4 @@
{ "TengigabitEthernet1/0/4" : [ {
{ "TenGigabitEthernet1/0/4" : [ {
"parent_interface" : "N/A",
"remote_chassis_id" : "ab:a5:ef:12:34:56",
"remote_port" : "GigabitEthernet1/0/26",
+1
View File
@@ -1,4 +1,5 @@
"""Tests for getters."""
from napalm.base.test.getters import BaseTestGetters
import pytest
+2 -9
View File
@@ -1,6 +1,5 @@
[tox]
#envlist = py3{6,7,8},black,pylama,sphinx
envlist = py3{6,7,8},pylama,black
envlist = py,pylama,black
skip_missing_interpreters = true
[testenv]
@@ -14,15 +13,9 @@ commands =
[testenv:black]
commands =
black --check --target-version py36 --line-length 100 --color --diff .
black --check --target-version py312 --line-length 100 --color --diff .
[testenv:pylama]
commands =
pylama .
[testenv:sphinx]
commands =
make doctest
whitelist_externals =
make