diff --git a/python/nav/portadmin/napalm/juniper.py b/python/nav/portadmin/napalm/juniper.py index 17c955737d..ef2f927a4d 100644 --- a/python/nav/portadmin/napalm/juniper.py +++ b/python/nav/portadmin/napalm/juniper.py @@ -468,6 +468,8 @@ def set_poe_state(self, interface: manage.Interface, state: PoeState): def get_poe_states( self, interfaces: Sequence[manage.Interface] = None ) -> Dict[int, Optional[PoeState]]: + if interfaces is None: + interfaces = self.netbox.interfaces if len(interfaces) == 0: return {} elif len(interfaces) == 1: