Merge "Clear networktype when interface class is reset"

This commit is contained in:
Zuul 2018-09-27 12:39:36 +00:00 committed by Gerrit Code Review
commit 5fedf03d05
1 changed files with 1 additions and 0 deletions

View File

@ -563,6 +563,7 @@ class InterfaceController(rest.RestController):
interface['ifclass'] == constants.INTERFACE_CLASS_NONE):
# If the interface class is reset, make sure any network
# specific fields are reset as well
interface['networktype'] = None
interface['sriov_numvfs'] = 0
interface['ipv4_mode'] = None
interface['ipv6_mode'] = None