Merge pull request #7744 from aiordache/driver_wa

Allow driver property for external networks
This commit is contained in:
Anca Iordache 2020-09-10 14:13:33 +02:00 committed by GitHub
commit 6b435bf723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -441,6 +441,8 @@ def load_mapping(config_files, get_func, entity_type, working_dir=None):
def validate_external(entity_type, name, config, version): def validate_external(entity_type, name, config, version):
for k in config.keys(): for k in config.keys():
if entity_type == 'Network' and k == 'driver':
continue
if k not in ['external', 'name']: if k not in ['external', 'name']:
raise ConfigurationError( raise ConfigurationError(
"{} {} declared as external but specifies additional attributes " "{} {} declared as external but specifies additional attributes "