Remove redundant line in os_port (#57838)
* Remove redundant line in os_port The renaming of the key 'vnic_type' to 'binding:vnic_type' is reduced to a single line. The old key is removed to avoid to possibility of inconsistency. * Add missing parameter in example of os_port In the example "Create port of type 'direct'" the parameter "network" is added, because this parameter is required on creating new ports.
This commit is contained in:
parent
73db7e2901
commit
6e4c2c61bd
1 changed files with 2 additions and 2 deletions
|
@ -162,6 +162,7 @@ EXAMPLES = '''
|
|||
password: admin
|
||||
project_name: admin
|
||||
name: port1
|
||||
network: foo
|
||||
vnic_type: direct
|
||||
'''
|
||||
|
||||
|
@ -356,8 +357,7 @@ def main():
|
|||
|
||||
# Neutron API accept 'binding:vnic_type' as an argument
|
||||
# for the port type.
|
||||
module.params['binding:vnic_type'] = module.params['vnic_type']
|
||||
module.params.pop('vnic_type', None)
|
||||
module.params['binding:vnic_type'] = module.params.pop('vnic_type')
|
||||
|
||||
port = None
|
||||
network_id = None
|
||||
|
|
Loading…
Reference in a new issue