Merge "Hide DPDK section if experimental is turned off"

This commit is contained in:
Jenkins 2017-01-18 09:18:48 +00:00 committed by Gerrit Code Review
commit b697091131
5 changed files with 52 additions and 7 deletions

View File

@ -239,7 +239,13 @@ DEFAULT_RELEASE_NIC_NFV_ATTRIBUTES = {
{'settings:common.libvirt_type.value != \'kvm\'': {'settings:common.libvirt_type.value != \'kvm\'':
'Only KVM hypervisor works with DPDK'} 'Only KVM hypervisor works with DPDK'}
]}, ]},
'metadata': {'weight': 40, 'label': 'DPDK'} 'metadata': {
'weight': 40, 'label': 'DPDK',
'restrictions': [{
'condition': "not ('experimental' in version:feature_groups)",
'action': "hide"
}]
}
} }
} }
@ -292,7 +298,13 @@ DEFAULT_RELEASE_BOND_NFV_ATTRIBUTES = {
{'settings:common.libvirt_type.value != \'kvm\'': {'settings:common.libvirt_type.value != \'kvm\'':
'Only KVM hypervisor works with DPDK'} 'Only KVM hypervisor works with DPDK'}
]}, ]},
'metadata': {'weight': 40, 'label': 'DPDK'} 'metadata': {
'weight': 40, 'label': 'DPDK',
'restrictions': [{
'condition': "not ('experimental' in version:feature_groups)",
'action': "hide"
}]
}
} }
} }

View File

@ -398,7 +398,12 @@ class TestHandlers(BaseIntegrationTest):
{ {
'metadata': { 'metadata': {
'label': 'DPDK', 'label': 'DPDK',
'weight': 40 'weight': 40,
'restrictions': [{
'condition':
"not ('experimental' in version:feature_groups)",
'action': "hide"
}]
}, },
'enabled': { 'enabled': {
'label': 'Enable DPDK', 'label': 'Enable DPDK',
@ -1296,7 +1301,12 @@ class TestNICAttributesHandlers(BaseIntegrationTest):
'dpdk': { 'dpdk': {
'metadata': { 'metadata': {
'label': 'DPDK', 'label': 'DPDK',
'weight': 40 'weight': 40,
'restrictions': [{
'condition':
"not ('experimental' in version:feature_groups)",
'action': "hide"
}]
}, },
'enabled': { 'enabled': {
'label': 'Enable DPDK', 'label': 'Enable DPDK',

View File

@ -917,7 +917,12 @@ class TestBondAttributesDefaultsHandler(BaseIntegrationTest):
}, },
'metadata': { 'metadata': {
'label': 'DPDK', 'label': 'DPDK',
'weight': 40 'weight': 40,
'restrictions': [{
'condition':
"not ('experimental' in version:feature_groups)",
'action': "hide"
}]
} }
}, },
'lacp': { 'lacp': {

View File

@ -2166,6 +2166,9 @@
action: "none" action: "none"
dpdk: dpdk:
metadata: metadata:
restrictions:
- condition: "not ('experimental' in version:feature_groups)"
action: "hide"
label: "DPDK" label: "DPDK"
weight: 40 weight: 40
enabled: enabled:
@ -2217,6 +2220,9 @@
max: 65536 max: 65536
dpdk: dpdk:
metadata: metadata:
restrictions:
- condition: "not ('experimental' in version:feature_groups)"
action: "hide"
label: "DPDK" label: "DPDK"
weight: 40 weight: 40
enabled: enabled:

View File

@ -147,7 +147,13 @@ DEFAULT_NIC_ATTRIBUTES = {
{'settings:common.libvirt_type.value != \'kvm\'': {'settings:common.libvirt_type.value != \'kvm\'':
'Only KVM hypervisor works with DPDK'} 'Only KVM hypervisor works with DPDK'}
]}, ]},
'metadata': {'weight': 40, 'label': 'DPDK'} 'metadata': {
'weight': 40, 'label': 'DPDK',
'restrictions': [{
'condition': "not ('experimental' in version:feature_groups)",
'action': "hide"
}]
}
} }
} }
@ -197,7 +203,13 @@ DEFAULT_BOND_ATTRIBUTES = {
{'settings:common.libvirt_type.value != \'kvm\'': {'settings:common.libvirt_type.value != \'kvm\'':
'Only KVM hypervisor works with DPDK'} 'Only KVM hypervisor works with DPDK'}
]}, ]},
'metadata': {'weight': 40, 'label': 'DPDK'} 'metadata': {
'weight': 40, 'label': 'DPDK',
'restrictions': [{
'condition': "not ('experimental' in version:feature_groups)",
'action': "hide"
}]
}
} }
} }