Skip to content

Commit

Permalink
Add mocked test data for HPE Aruba 2920-48G
Browse files Browse the repository at this point in the history
Fixes: #1
Drive-By: Add debug logging example to the readme
Drive-By: Add pytest.ini to silence Deprecation warnings from napalm base.
  • Loading branch information
ixs committed Aug 26, 2020
1 parent e767d10 commit 89a12db
Show file tree
Hide file tree
Showing 18 changed files with 304 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ from napalm import get_network_driver
driver = get_network_driver("procurve")
# Uncomment if you need debug logging of the raw commands sent to the
# device and any data received
#import logging
#logging.basicConfig(filename="procurve.debug.log", level=logging.DEBUG)
#logger = logging.getLogger("netmiko")
driver = get_network_driver("procurve")
device = driver(
"10.0.0.254",
"manager",
Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
filterwarnings =
ignore:direct construction of .*Item has been deprecated:DeprecationWarning
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"1": [
{
"port": "48 7b 6b 39 88 8b",
"hostname": "a1001.atlas.local"
}
],
"30": [
{
"port": "d8 50 e6 c3 a4 2f",
"hostname": "a1030.atlas.local"
}
],
"A1": [
{
"port": "Ten-GigabitEthernet0/0/10",
"hostname": "Coredata"
}
],
"A2": [
{
"port": "Ten-GigabitEthernet1/0/10",
"hostname": "Coredata"
}
],
"B1": [
{
"port": "Ten-GigabitEthernet2/0/10",
"hostname": "Coredata"
}
],
"B2": [
{
"port": "Ten-GigabitEthernet3/0/10",
"hostname": "Coredata"
}
],
"OOBM": [
{
"port": "Ethernet1/0/30",
"hostname": "mgs010b"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lldpRemSysDesc.0.1.1 = Debian GNU/Linux 8 (jessie) Linux 4.9.0-0.bpo.6-amd64 #1 SMP Debian 4.9.88-1+deb9u1~bpo8+1 (2018-05-13) x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lldpRemSysDesc.0.30.1 = Debian GNU/Linux 10 (buster) Linux 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lldpRemSysDesc.0.49.1 = HPE Comware Platform Software, Software Version 7.1.045, Release 1152
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lldpRemSysDesc.0.50.1 = HPE Comware Platform Software, Software Version 7.1.045, Release 1152
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lldpRemSysDesc.0.51.1 = HPE Comware Platform Software, Software Version 7.1.045, Release 1152
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lldpRemSysDesc.0.52.1 = HPE Comware Platform Software, Software Version 7.1.045, Release 1152
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

LLDP Remote Devices Information

LocalPort | ChassisId PortId PortDescr SysName
--------- + ------------------ ------------------ --------- ------------------
1 | 48 7b 6b 39 88 8b 48 7b 6b 39 88 8b eth0 a1001.atlas.local
30 | d8 50 e6 c3 a4 2e d8 50 e6 c3 a4 2f enp3s0 a1030.atlas.local
A1 | cc 3e 5f 2f c4 90 Ten-GigabitEthe... Ten-Gi... Coredata
A2 | cc 3e 5f 2f c4 90 Ten-GigabitEthe... Ten-Gi... Coredata
B1 | cc 3e 5f 2f c4 90 Ten-GigabitEthe... Ten-Gi... Coredata
B2 | cc 3e 5f 2f c4 90 Ten-GigabitEthe... Ten-Gi... Coredata
OOBM | cc 3e 5f cf 12 48 Ethernet1/0/30 Ethern... mgs010b
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

LLDP Remote Device Information Detail

Local Port : 1
ChassisType : mac-address
ChassisId : 48 7b 6b 39 88 8b
PortType : mac-address
PortId : 48 7b 6b 39 88 8b
SysName : a1001.atlas.local
System Descr : Debian GNU/Linux 8 (jessie) Linux 4.9.0-0.bpo.6-amd64 #1 ...
PortDescr : eth0
Pvid :

System Capabilities Supported : bridge, wlan-access-point, router
System Capabilities Enabled : station-only

Remote Management Address
Type : ipv4
Address : 10.10.10.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

LLDP Remote Device Information Detail

Local Port : 30
ChassisType : mac-address
ChassisId : d8 50 e6 c3 a4 2e
PortType : mac-address
PortId : d8 50 e6 c3 a4 2f
SysName : a1030.atlas.local
System Descr : Debian GNU/Linux 10 (buster) Linux 4.19.0-10-amd64 #1 SMP...
PortDescr : enp3s0
Pvid :

System Capabilities Supported : bridge, wlan-access-point, router
System Capabilities Enabled : station-only

Remote Management Address
Type : ipv4
Address : 172.23.10.30
Type : ipv6
Address : fe80::da50:e6ff:fec3:a42e

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

LLDP Remote Device Information Detail

Local Port : A1
ChassisType : mac-address
ChassisId : cc 3e 5f 2f c4 90
PortType : interface-name
PortId : Ten-GigabitEthernet0/0/10
SysName : Coredata
System Descr : HPE Comware Platform Software, Software Version 7.1.045, ...
PortDescr : Ten-GigabitEthernet0/0/10 Interface
Pvid : 1

System Capabilities Supported : bridge, router
System Capabilities Enabled : bridge, router

Remote Management Address
Type : all802
Address : 00 0f e2 07 f2 e0

Poe Plus Information Detail

Poe Device Type : Type2 PSE
Power Source : Unknown
Power Priority : Unknown
Requested Power Value : 0.0 Watts
Actual Power Value : 0.0 Watts

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Local Port : A2
ChassisType : mac-address
ChassisId : cc 3e 5f 2f c4 90
PortType : interface-name
PortId : Ten-GigabitEthernet1/0/10
SysName : Coredata
System Descr : HPE Comware Platform Software, Software Version 7.1.045, ...
PortDescr : Ten-GigabitEthernet1/0/10 Interface
Pvid : 1

System Capabilities Supported : bridge, router
System Capabilities Enabled : bridge, router

Remote Management Address
Type : all802
Address : 00 0f e2 07 f2 e0

Poe Plus Information Detail

Poe Device Type : Type2 PSE
Power Source : Unknown
Power Priority : Unknown
Requested Power Value : 0.0 Watts
Actual Power Value : 0.0 Watts

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Local Port : B1
ChassisType : mac-address
ChassisId : cc 3e 5f 2f c4 90
PortType : interface-name
PortId : Ten-GigabitEthernet2/0/10
SysName : Coredata
System Descr : HPE Comware Platform Software, Software Version 7.1.045, ...
PortDescr : Ten-GigabitEthernet2/0/10 Interface
Pvid : 1

System Capabilities Supported : bridge, router
System Capabilities Enabled : bridge, router

Remote Management Address
Type : all802
Address : 00 0f e2 07 f2 e0

Poe Plus Information Detail

Poe Device Type : Type2 PSE
Power Source : Unknown
Power Priority : Unknown
Requested Power Value : 0.0 Watts
Actual Power Value : 0.0 Watts

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Local Port : B2
ChassisType : mac-address
ChassisId : cc 3e 5f 2f c4 90
PortType : interface-name
PortId : Ten-GigabitEthernet3/0/10
SysName : Coredata
System Descr : HPE Comware Platform Software, Software Version 7.1.045, ...
PortDescr : Ten-GigabitEthernet3/0/10 Interface
Pvid : 1

System Capabilities Supported : bridge, router
System Capabilities Enabled : bridge, router

Remote Management Address
Type : all802
Address : 00 0f e2 07 f2 e0

Poe Plus Information Detail

Poe Device Type : Type2 PSE
Power Source : Unknown
Power Priority : Unknown
Requested Power Value : 0.0 Watts
Actual Power Value : 0.0 Watts

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

LLDP Remote Device Information Detail

Local Port : OOBM
ChassisType : mac-address
ChassisId : cc 3e 5f cf 12 48
PortType : interface-name
PortId : Ethernet1/0/30
SysName : mgs010b
System Descr : 1910-48 Switch Software Version 5.20.99, Release 1116
PortDescr : Ethernet1/0/30 Interface
Pvid :

System Capabilities Supported : bridge, router
System Capabilities Enabled : bridge, router

Remote Management Address
Type : ipv4
Address : 172.25.13.10
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
ifName.1 = 1
ifName.2 = 2
ifName.3 = 3
ifName.4 = 4
ifName.5 = 5
ifName.6 = 6
ifName.7 = 7
ifName.8 = 8
ifName.9 = 9
ifName.10 = 10
ifName.11 = 11
ifName.12 = 12
ifName.13 = 13
ifName.14 = 14
ifName.15 = 15
ifName.16 = 16
ifName.17 = 17
ifName.18 = 18
ifName.19 = 19
ifName.20 = 20
ifName.21 = 21
ifName.22 = 22
ifName.23 = 23
ifName.24 = 24
ifName.25 = 25
ifName.26 = 26
ifName.27 = 27
ifName.28 = 28
ifName.29 = 29
ifName.30 = 30
ifName.31 = 31
ifName.32 = 32
ifName.33 = 33
ifName.34 = 34
ifName.35 = 35
ifName.36 = 36
ifName.37 = 37
ifName.38 = 38
ifName.39 = 39
ifName.40 = 40
ifName.41 = 41
ifName.42 = 42
ifName.43 = 43
ifName.44 = 44
ifName.45 = 45
ifName.46 = 46
ifName.47 = 47
ifName.48 = 48
ifName.49 = A1
ifName.50 = A2
ifName.51 = B1
ifName.52 = B2
ifName.270 = Dyn1
ifName.330 = DEFAULT_VLAN
ifName.4425 = lo0
ifName.4426 = lo1
ifName.4427 = lo2
ifName.4428 = lo3
ifName.4429 = lo4
ifName.4430 = lo5
ifName.4431 = lo6
ifName.4432 = lo7
ifName.4433 = oobm0
ifName.4438 = lo0

0 comments on commit 89a12db

Please sign in to comment.