- def get_interfaces(self, type):
- return self.dea_struct['interfaces'][type]
-
- def get_transformations(self, type):
- return self.dea_struct['transformations'][type]
-
- def get_opnfv(self, role):
- return {'opnfv': self.dea_struct['opnfv'][role]}
-
- def get_wanted_release(self):
- return self.dea_struct['wanted_release']
\ No newline at end of file
+ def get_dns_list(self):
+ settings = self.get_property('settings')
+ dns_list = settings['editable']['external_dns']['dns_list']['value']
+ return [d.strip() for d in dns_list.split(',')]
+
+ def get_ntp_list(self):
+ settings = self.get_property('settings')
+ ntp_list = settings['editable']['external_ntp']['ntp_list']['value']
+ return [n.strip() for n in ntp_list.split(',')]
+
+ def get_hosts(self):
+ opnfv = self.get_property('opnfv')
+ hosts_list = []
+ for host in opnfv['hosts']:
+ if host['address'] and host['fqdn']:
+ hosts_list.append(host)
+ return hosts_list