forked from quattor/configuration-modules-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ncm-network: support for managing network using nmstate (quattor#1601)
* ncm-network: support for managing network using nmstate A new module to manage networking using nmstate declarative approach. Reuses functions from network.pm as much as possible. Changes made in network.pm are minimal and should be backward compatible for existing configs. The following is supported in the initial tech preview: - single interface and bonding - vlan interface - policy routing - ethtool setting via cli support only. - new nm_manage_dns option is added to schema to decided if NM should manage DNS, we use ncm-resolver so to avoid clash. NM by default manages DNS which will interfere with ncm-resolver. - aliases, bridge etc configuration not yet supported, and possibly many other advanced options I haven't thought about yet. --------- Co-authored-by: Abdul Karim <Abdul.Karim@morganstanley.com> Co-authored-by: stdweird <stijn.deweirdt@ugent.be>
- Loading branch information
Showing
6 changed files
with
954 additions
and
40 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
ncm-network/src/main/pan/components/network/config-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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ${license-info} | ||
# ${developer-info} | ||
# ${author-info} | ||
|
||
unique template components/network/config-nmstate; | ||
|
||
include 'components/network/config'; | ||
|
||
prefix "/software/components/network"; | ||
"ncm-module" = "nmstate"; | ||
|
||
# Add dependency that can't be added to rpm directly | ||
prefix '/software/packages'; | ||
'nmstate' = dict(); |
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
Oops, something went wrong.