Setup tests
This commit is contained in:
parent
bdc2cbeb8f
commit
bab2d26ad0
46 changed files with 11717 additions and 117 deletions
4
netbox_agent/vendors/hp.py
vendored
4
netbox_agent/vendors/hp.py
vendored
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue