Skip to content

Conversation

@Charlie-Root
Copy link
Owner

No description provided.

TiagoTT and others added 30 commits November 18, 2024 21:07
workflows tests, use pyproject
resolve docker-compose command not found
resolve docker-compose command not found
ignore the test that indicates if the device hosts an expension card
temporarily skip Codecov integration
Handle missing driver in storage device configuration data
Handle missing pvid in LLDP VLAN data
```
lldp.eth0.vlan.vlan-id=300
lldp.eth0.vlan.pvid=yes
lldp.eth0.vlan=VLAN300
```
```
Version: lldpd 1.0.11
```

```
{'300': {'pvid': True}, 'VLAN300': {}}
Traceback (most recent call last):
  File "/root/.local/bin/netbox_agent", line 8, in <module>
    sys.exit(main())
  File "/root/.local/lib/python3.10/site-packages/netbox_agent/cli.py", line 44, in main
    return run(config)
  File "/root/.local/lib/python3.10/site-packages/netbox_agent/cli.py", line 39, in run
    server.netbox_create_or_update(config)
  File "/root/.local/lib/python3.10/site-packages/netbox_agent/server.py", line 292, in netbox_create_or_update
    self.network.create_or_update_netbox_network_cards()
  File "/root/.local/lib/python3.10/site-packages/netbox_agent/network.py", line 417, in create_or_update_netbox_network_cards
    ret, interface = self.reset_vlan_on_interface(nic, interface)
  File "/root/.local/lib/python3.10/site-packages/netbox_agent/network.py", line 234, in reset_vlan_on_interface
    pvid_vlan = [key for (key, value) in lldp_vlan.items() if value['pvid']]
  File "/root/.local/lib/python3.10/site-packages/netbox_agent/network.py", line 234, in <listcomp>
    pvid_vlan = [key for (key, value) in lldp_vlan.items() if value['pvid']]
KeyError: 'pvid'
```
Fix KeyError: 'pvid' in lldp.py
pynetbox 7.3.4 depends on packaging<24.0
generate only one Codecov report
ribetm and others added 29 commits January 21, 2025 22:45
Previously only TAP/TUN were tagged as such, other virtuals were tagged
as "Other"
Network identifier is used to match discovered NICs with Netbox
interfaces. This field won't be updated. Changes to it will cause the
interface to be re-created.
Not set at all on IPMI
Fallback to platform names with less info
"Multigig" interfaces (supporting 2.5G or 5G max speeds) are BaseT only (the
SFP+ interface standard always supports 10G as max), so we don't need to check
if these ports are a fiber media type
Add support for 2.5GBASE-T and 5GBASE-T interface types
Handle os-release without version or codename
@Charlie-Root Charlie-Root merged commit 671bafa into master Jul 30, 2025
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants