diff --git a/plugins-base/XSFeatureInterface.py b/plugins-base/XSFeatureInterface.py index df34f03..5e6c148 100644 --- a/plugins-base/XSFeatureInterface.py +++ b/plugins-base/XSFeatureInterface.py @@ -54,7 +54,7 @@ def __init__(self): self.nicMenu = Menu(self, None, "Configure Management Interface", choiceDefs) mode_choicedefs = [] - if(currentPIF['primary_address_type'].lower() == 'ipv6'): + if(currentPIF and currentPIF['primary_address_type'].lower() == 'ipv6'): mode_choicedefs.append(ChoiceDef(Lang("Autoconf"), lambda : self.HandleModeChoice("AUTOCONF") )) mode_choicedefs.append(ChoiceDef(Lang("DHCP"), lambda: self.HandleModeChoice('DHCP2') )) mode_choicedefs.append(ChoiceDef(Lang("DHCP with Manually Assigned Hostname"),