-
Notifications
You must be signed in to change notification settings - Fork 55
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
starting a new module to manage networking using nmstate declarative approach. reusing functions from network.pm as much as possible. Changes made in network.pm is minimal and should be backward compatible for existing configs. following is supported for initial tech preview. - single interface, and bonding - vlan inteface - 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 intefere with ncm-resolver. - aliases, bridge etc configuration not yet supported, and possibly many other advance options I haven't thought about yet.
- Loading branch information
Abdul Karim
authored and
Abdul Karim
committed
Jul 11, 2023
1 parent
9bf1bfa
commit 2be2fab
Showing
8 changed files
with
850 additions
and
8 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
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.