netbox-agent/netbox_agent
Christophe Simon 3b8917aaf3 Fixed virtual network cards creation
This patch fixes a mismatch between the way network interfaces are
looked for from network cards, and the way they are created:

- If a network card has a NAC address, it used in the search criteria to
  find the network interface
- When creating virtual interfaces, the MAC address is not specified in
  the creation parameters

This raises an exception when a virtual card has a MAC address:

- The virtual interface has been created without MAC address
- But the network card has one, so the interface is looked for using it
- The network interface is not found, so it's created
- An error is risen because an interface with the same name already
  exists

This patch sets the MAC address on the interface if it exists, no matter if
it is virtual or not.
2022-03-08 17:27:06 +01:00
..
drivers should have used git mv 2019-08-05 12:03:06 +02:00
raid Added disks extended attributes 2022-03-02 15:53:38 +01:00
vendors Added disks extended attributes 2022-03-02 15:53:38 +01:00
__init__.py Project cleanup (#6) 2019-08-04 00:00:22 +02:00
cli.py Various changes 2022-02-22 14:51:58 +01:00
config.py Added disks extended attributes 2022-03-02 15:53:38 +01:00
dmidecode.py Setup tests 2020-02-02 20:24:01 +01:00
ethtool.py fix ethtool class in case ethtool works but returns nothing (#123) 2020-04-19 12:19:28 +02:00
inventory.py Added disks extended attributes 2022-03-02 15:53:38 +01:00
ipmi.py Virtual Machine feature (#122) 2020-04-19 12:28:49 +02:00
lldp.py Make flake8 and isort happy 2021-07-09 11:10:43 +02:00
location.py Add tags,device roles,tenants.. (#110) 2020-07-01 18:54:58 +02:00
logging.py Virtual Machine feature (#122) 2020-04-19 12:28:49 +02:00
lshw.py Unnamed network interfaces. 2022-03-07 17:18:35 +01:00
misc.py Added disks extended attributes 2022-03-02 15:53:38 +01:00
network.py Fixed virtual network cards creation 2022-03-08 17:27:06 +01:00
power.py Added disks extended attributes 2022-03-02 15:53:38 +01:00
server.py Added disks extended attributes 2022-03-02 15:53:38 +01:00
virtualmachine.py fix not passing tenant when tenants exist in Netbox 2020-07-11 15:33:34 +02:00