- if isinstance(hrn, StringTypes):
- hrn_list = [hrn]
- elif isinstance(hrn, list):
- hrn_list = hrn
-
- if not hrn_list:
- interfaces = registries.interfaces
- else:
- interfaces = [interface for interface in registries.interfaces if interface['hrn'] in hrn_list]
-
- return interfaces
- return registries.interfaces