Example #1
0
 def __init__(self, options):
     self.maas = maasclient.MAASClient(options.maas_server,
                                       options.maas_credentials)
     # String representation of the IP
     self.ip = options.ip_address
     # Dictionary representation of MAAS ipaddresss object
     # TODO: Do this as a property
     self.ipaddress = self.get_ipaddress()
Example #2
0
 def __init__(self, options):
     self.maas = maasclient.MAASClient(options.maas_server,
                                       options.maas_credentials)
     # String representation of the fqdn
     self.fqdn = options.fqdn
     # Dictionary representation of MAAS dnsresource object
     # TODO: Do this as a property
     self.dnsresource = self.get_dnsresource()
     # String representation of the time to live
     self.ttl = str(options.ttl)
     # String representation of the ip
     self.ip = options.ip_address