Fix migration for NIC's mtu setting

min and max setting limits added to 9.2 migration

Closes-Bug: #1652608

Change-Id: Iae71a611dbc78de49456a717ccf956ae54ad15a9
(cherry picked from commit d96bf43991)
This commit is contained in:
Julia Aranovich 2016-12-27 12:38:57 +03:00
parent 4b4c44a773
commit 18f29b354c
2 changed files with 8 additions and 4 deletions

View File

@ -175,7 +175,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': {
@ -215,7 +216,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

@ -92,7 +92,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': {
@ -132,7 +133,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': {