Use choices api #107

Merged
ThomasADavis merged 4 commits from use-choices-api into master 2020-01-28 11:18:56 +01:00
Showing only changes of commit befb3395b3 - Show all commits

View file

@ -29,7 +29,6 @@ class Network():
for c in dcim_c[choice]:
self.dcim_choices[choice][c['label']] = c['value']
self.ipam_choices = {}
ipam_c = nb.ipam.choices()
@ -38,7 +37,6 @@ class Network():
for c in ipam_c[choice]:
self.ipam_choices[choice][c['label']] = c['value']
def scan(self):
for interface in os.listdir('/sys/class/net/'):
# ignore if it's not a link (ie: bonding_masters etc)