Fix migration for NIC's mtu setting

min and max setting limits added to 9.2 migration

Closes-Bug: #1652608

Change-Id: Iae71a611dbc78de49456a717ccf956ae54ad15a9
This commit is contained in:
Julia Aranovich 2016-12-27 12:38:57 +03:00
parent dfbf7dcf91
commit d96bf43991
2 changed files with 8 additions and 4 deletions

View File

@ -174,7 +174,8 @@ DEFAULT_RELEASE_NIC_ATTRIBUTES = {
},
'mtu': {
'value': {'type': 'number', 'value': None, 'weight': 10,
'label': 'Use Custom MTU', 'nullable': True},
'label': 'Use Custom MTU', 'nullable': True,
'min': 42, 'max': 65536},
'metadata': {'weight': 20, 'label': 'MTU'}
},
'sriov': {
@ -214,7 +215,8 @@ DEFAULT_RELEASE_BOND_ATTRIBUTES = {
},
'mtu': {
'value': {'type': 'number', 'weight': 10, 'value': None,
'label': 'Use Custom MTU', 'nullable': True},
'label': 'Use Custom MTU', 'nullable': True,
'min': 42, 'max': 65536},
'metadata': {'weight': 30, 'label': 'MTU'}
},
'lacp': {

View File

@ -122,7 +122,8 @@ DEFAULT_NIC_ATTRIBUTES = {
},
'mtu': {
'value': {'type': 'number', 'value': None, 'weight': 10,
'label': 'Use Custom MTU', 'nullable': True},
'label': 'Use Custom MTU', 'nullable': True,
'min': 42, 'max': 65536},
'metadata': {'weight': 20, 'label': 'MTU'}
},
'sriov': {
@ -162,7 +163,8 @@ DEFAULT_BOND_ATTRIBUTES = {
},
'mtu': {
'value': {'type': 'number', 'weight': 10, 'value': None,
'label': 'Use Custom MTU', 'nullable': True},
'label': 'Use Custom MTU', 'nullable': True,
'min': 42, 'max': 65536},
'metadata': {'weight': 30, 'label': 'MTU'}
},
'lacp': {