Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovs api: drop port's "type" attribute
OVS port "type" attribute is redundant. It can be currently set to "system" or "internal", but these can be easily deduced from desired and current state. With this patch we drop the attribute from the API, so we don't keep redundant information and make schema more streamlined. No other nmstate interface type requires users to specify slave type (both bond and linux-bridge require the name only). OVS bridge schema would change from: ```yaml interfaces: - name: ovs-br0 type: ovs-bridge state: up bridge: port: - name: eth3 type: system ``` To: ```yaml interfaces: - name: ovs-br0 type: ovs-bridge state: up bridge: port: - name: eth3 ``` https://nmstate.atlassian.net/browse/NMSTATE-248 Note that no changes were needed to implement this, apart from dropping the "type" from reporting, schema and tests. This API change is backwardly compatible for the `apply` action. If a user specifies port's "type", it will be ignored. The "type" won't be reported anymore in `show` action. Signed-off-by: Petr Horacek <phoracek@redhat.com>
- Loading branch information
Showing
8 changed files
with
26 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,4 @@ interfaces: | |
stp: true | ||
port: | ||
- name: eth1 | ||
type: system | ||
- name: ovs0 | ||
type: internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters