commit 52b5f3600d9c2c287c3554d954d676325fb64dfb
Author: Andreas Scheuring <email address hidden>
Date: Thu Mar 9 13:15:23 2017 +0100
Introduce oslo config object for adapter_mapping
This patch introduces a oslo config object for a network adapter port
mapping. It encapsulates the validation of the config value and does
the parsing. It's a multi value config option.
It requires the following arguments
* name: The name of the config option.
The config value must be of the following format in the config file
* physnet: The physical network string. Can not be 'None'. No restriction in length. Keeps case from config file.
* adapter-id: The object-id of the adapter that should be used. Cannot be 'None'. Will be returned in lower case.
* port: The port-element-id string to be used. Defaults to '0'. Cannot be 'None'
Reviewed: https:/ /review. openstack. org/443615 /git.openstack. org/cgit/ openstack/ networking- dpm/commit/ ?id=52b5f3600d9 c2c287c3554d954 d676325fb64dfb
Committed: https:/
Submitter: Jenkins
Branch: master
commit 52b5f3600d9c2c2 87c3554d954d676 325fb64dfb
Author: Andreas Scheuring <email address hidden>
Date: Thu Mar 9 13:15:23 2017 +0100
Introduce oslo config object for adapter_mapping
This patch introduces a oslo config object for a network adapter port
mapping. It encapsulates the validation of the config value and does
the parsing. It's a multi value config option.
It requires the following arguments
* name: The name of the config option.
The config value must be of the following format in the config file
< name>=< physnet> :<adapter- id>:<port> name>=> physnet> :<adapter- id>: name>=> physnet> :<adapter- id>
<
<
# (multi valued)
It returns a list of tuples:
[(<physnet>, <adapter-id>, <port>),
(<physnet>, <adapter-id>, <port>),
(<physnet>, <adapter-id>, <port>)]
where
* physnet: The physical network string. Can not be 'None'.
No restriction in length. Keeps case from config file.
Cannot be 'None'. Will be returned in lower case.
Cannot be 'None'
* adapter-id: The object-id of the adapter that should be used.
* port: The port-element-id string to be used. Defaults to '0'.
Change-Id: I407bda2896d667 ef6fad4138a9787 da4b39a19f7
Partial-Bug: #1663369
Partial-Bug: #1659315