Skip to content

add init only config to k8switch ports#117

Merged
frisso merged 2 commits intomasterfrom
pr/add_init_only_config_to_k8switch_ports
Apr 26, 2019
Merged

add init only config to k8switch ports#117
frisso merged 2 commits intomasterfrom
pr/add_init_only_config_to_k8switch_ports

Conversation

@mauriciovasquezbernal
Copy link
Copy Markdown
Contributor

The type attribute in the ports is meant to be only set at creation time.
Use the init-only-config flag on this and remove all the update code for it.

Note: merge after #116.

polycubed fills the default elements on a request if they are missing, this
guarantees that the default elements are always set when the request arrives to
the service implementation, hence the developer has not to take care of it.

When an update (PATCH) request is done those fields should not be set, because
their value will be modified even if the client wanted to update other elements.

Fixes: d8d280c ("Added new REST API and validation code")

Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
The type attribute in the ports is meant to be only set at creation time.
Use the init-only-config flag on this and remove all the update code for it.

Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
@frisso frisso merged commit f2d20a7 into master Apr 26, 2019
@frisso frisso deleted the pr/add_init_only_config_to_k8switch_ports branch April 26, 2019 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants