-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ncm-network: Move nmstate options to backend specific schema
- Loading branch information
Showing
5 changed files
with
25 additions
and
10 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
3 changes: 3 additions & 0 deletions
3
ncm-network/src/main/pan/components/network/types/network/backend/initscripts.pan
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
declaration template components/network/types/network/backend/initscripts; | ||
|
||
@{implement types specific for initscripts / network.pm} | ||
|
||
type structure_network_backend_specific = { | ||
}; |
11 changes: 11 additions & 0 deletions
11
ncm-network/src/main/pan/components/network/types/network/backend/nmstate.pan
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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
declaration template components/network/types/network/backend/nmstate; | ||
|
||
@{implement types specific for nmstate / nmstate.pm} | ||
|
||
type structure_network_nmstate = { | ||
@{let NetworkManager manage the dns} | ||
"manage_dns" : boolean = false | ||
@{let ncm-network cleanup inactive connections} | ||
"clean_inactive_conn" : boolean = true | ||
}; | ||
|
||
type structure_network_backend_specific = { | ||
"nmstate" : structure_network_nmstate | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
object template nmstate_simple; | ||
|
||
variable QUATTOR_TYPES_NETWORK_BACKEND = 'nmstate'; | ||
|
||
include 'simple_base_profile'; | ||
"/hardware/cards/nic/eth0/hwaddr" = "6e:a5:1b:55:77:0a"; | ||
# the next include is mainly to the profile, it is not used in the tests | ||
# (unless the component gets specific schema things) | ||
include 'components/network/config-nmstate'; | ||
|
||
"/system/network/nmstate" = dict(); |