94 lines
2.6 KiB
Plaintext
94 lines
2.6 KiB
Plaintext
ADAPTER = 'openstack'
|
|
METADATA = {
|
|
'security': {
|
|
'_self': {
|
|
'required_in_whole_config': True,
|
|
},
|
|
'service_credentials': {
|
|
'_self': {
|
|
'required_in_whole_config': True,
|
|
'key_extensions': {
|
|
'$service': ['image', 'compute', 'dashboard', 'identity', 'metering', 'rabbitmq', 'volume', 'mysql']
|
|
},
|
|
'mapping_to': 'service_credentials'
|
|
},
|
|
'$service': {
|
|
'_self': {
|
|
'required_in_whole_config': True,
|
|
'mapping_to': '$service'
|
|
},
|
|
'username': {
|
|
'_self': {
|
|
'is_required': True,
|
|
'field': 'username',
|
|
'mapping_to': 'username'
|
|
}
|
|
},
|
|
'password': {
|
|
'_self': {
|
|
'is_required': True,
|
|
'field': 'password',
|
|
'mapping_to': 'password'
|
|
}
|
|
}
|
|
}
|
|
},
|
|
'console_credentials': {
|
|
'_self': {
|
|
'required_in_whole_config': True,
|
|
'key_extensions': {
|
|
'$console': ['admin', 'compute', 'dashboard', 'image', 'metering', 'network', 'object-store', 'volume']
|
|
}
|
|
},
|
|
'$console': {
|
|
'_self': {
|
|
'required_in_whole_config': True,
|
|
'mapping_to': '$console'
|
|
},
|
|
'username': {
|
|
'_self': {
|
|
'is_required': True,
|
|
'field': 'username',
|
|
'mapping_to': 'username'
|
|
}
|
|
},
|
|
'password': {
|
|
'_self': {
|
|
'is_required': True,
|
|
'field': 'password',
|
|
'mapping_to': 'password'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
'network_mapping': {
|
|
'_self': {
|
|
'required_in_whole_config': True,
|
|
'key_extensions': {
|
|
'$interface_type': ['management', 'external', 'storage', 'tenant']
|
|
}
|
|
},
|
|
'$interface_type': {
|
|
'_self': {
|
|
'required_in_whole_config': True,
|
|
'field': 'anytype',
|
|
'autofill_callback': autofill_network_mapping,
|
|
'mapping_to': '$interface_type'
|
|
},
|
|
'interface': {
|
|
'_self': {
|
|
'is_required': True,
|
|
'field': 'general',
|
|
}
|
|
},
|
|
'subnet': {
|
|
'_self': {
|
|
'is_required': False,
|
|
'field': 'general'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|