Device update #13

Merged
Solvik merged 5 commits from feature/update into master 2019-08-05 17:06:33 +02:00
Showing only changes of commit cd97fe4d3a - Show all commits

View file

@ -148,6 +148,14 @@ class ServerBase():
self.network.update_netbox_network_cards()
def netbox_update(self):
server = nb.dcim.devices.get(serial=self.get_service_tag())
if self.is_blade():
# check if the slot/chassis is the same
# for every other specs
# check hostname
# check network cards
def print_debug(self):
# FIXME: do something more generic by looping on every get_* methods
print('Datacenter:', self.get_datacenter())