Setup tests

This commit is contained in:
ramnes 2020-02-02 20:08:56 +01:00 committed by Guillaume Gelin
commit bab2d26ad0
46 changed files with 11717 additions and 117 deletions

View file

@ -1,8 +1,8 @@
import logging
import subprocess
from netbox_agent.server import ServerBase
from netbox_agent.misc import is_tool
from netbox_agent.server import ServerBase
class DellHost(ServerBase):

View file

@ -27,14 +27,14 @@ class HPHost(ServerBase):
'Enclosure Name': locator[0].strip(),
'Server Bay': locator[3].strip(),
'Enclosure Serial': locator[4].strip(),
}
}
return locator[0]
def get_blade_slot(self):
if self.is_blade():
return 'Bay {}'.format(
int(self.hp_rack_locator['Server Bay'].strip())
)
)
return None
def get_chassis(self):

View file

@ -2,6 +2,7 @@
from netbox_agent.location import Slot
from netbox_agent.server import ServerBase
"""
Supermicro DMI can be messed up. They depend on the vendor
to set the correct values. The endusers cannot