def device(self): if 'device' in self.interfaces: return self.interfaces['device'] else: device = Device(self) self.interfaces['device'] = device device.OBJ_PREFIX = bigip_interfaces.OBJ_PREFIX return device
def devicename(self): if not self.devicename: if 'device' in self.interfaces: self.devicename = self.interfaces['device'].get_device_name() else: device = Device(self) self.interfaces['device'] = device self.devicename = device.get_device_name() return self.devicename