Skip to content

Commit

Permalink
Remove TrueNAS specific properties from network interfaces API
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Nov 25, 2015
1 parent 54cdf14 commit 8cd42b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gui/api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,15 @@ def dehydrate(self, bundle):
for key in bundle.data.keys():
if key.startswith('alias_set'):
del bundle.data[key]

if notifier().is_freenas():
del bundle.data['int_carp']
del bundle.data['int_vhid']
del bundle.data['int_vip']
del bundle.data['int_pass']
del bundle.data['int_critical']
del bundle.data['int_group']

return bundle

def hydrate(self, bundle):
Expand Down

0 comments on commit 8cd42b4

Please sign in to comment.