Merge "Fix network environment validation"
This commit is contained in:
commit
b5c7718005
|
@ -46,8 +46,12 @@ class TestValidateOvercloudNetenv(fakes.TestValidateOvercloudNetenv):
|
|||
'OsNetConfigImpl': {
|
||||
'properties': {
|
||||
'config': {
|
||||
'os_net_config': {
|
||||
'network_config': bridges,
|
||||
'str_replace': {
|
||||
'params': {
|
||||
'$network_config': {
|
||||
'network_config': bridges,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -175,7 +175,7 @@ class ValidateOvercloudNetenv(command.Command):
|
|||
# no bonds.
|
||||
for item in nic_data['resources']:
|
||||
bridges = nic_data['resources'][item]['properties']['config'][
|
||||
'os_net_config']['network_config']
|
||||
'str_replace']['params']['$network_config']['network_config']
|
||||
for bridge in bridges:
|
||||
if bridge['type'] == 'ovs_bridge':
|
||||
bond_count = 0
|
||||
|
|
Loading…
Reference in New Issue