Skip to content

Commit

Permalink
fix(middleward/network): fake all state entries for inexistent interface
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Apr 3, 2019
1 parent a7a921e commit 48a4b6e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/middlewared/middlewared/plugins/network.py
Expand Up @@ -314,6 +314,17 @@ def query(self, filters, options):
'link_address': '',
'cloned': True,
'mtu': 1500,
'flags': [],
'nd6_flags': [],
'capabilities': [],
'link_state': '',
'media_type': '',
'media_subtype': '',
'active_media_type': '',
'active_media_subtype': '',
'supported_media': [],
'media_options': [],
'carp_config': [],
}, configs, is_freenas, fake=True)
return filter_list(list(data.values()), filters, options)

Expand Down

0 comments on commit 48a4b6e

Please sign in to comment.