コード例 #1
0
 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
コード例 #2
0
 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