Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for DSCP configuration
Allow the user to do DSCP mapping for network objects Interface and SriovPF. The feature needs the handling of netlink messages. The pyroute2 module is used in the encode/decode of the netlink messages. The persistence of the DSCP configurations are taken care by the os-net-config-dcb-config service. The user configurations are preserved in /var/lib/os-net-config/dcb_config.yaml The details of the DSCP configurations could be read anytime with the cli. ``os-net-config-dcb --show`` The new DSCP configurations can be applied with cli using ``os-net-config-dcb --config <config.yaml>`` The sample config.yaml for updating DCB only is available at etc/os-net-config/samples/dcb_config_sample.yaml
- Loading branch information
1 parent
28f6860
commit 3c11aef
Showing
14 changed files
with
995 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# For reconfiguring the DCB, the below template could be used. | ||
# use ``os-net-config-dcb -c <config.yaml> `` to perform the | ||
# reconfiguration. | ||
|
||
dcb_config: | ||
- | ||
type: dcb_config | ||
name: ens1f0np0 | ||
dscp2prio: | ||
# Add the dscp configs. | ||
# It requires priority and protocol | ||
- priority: 5 | ||
protocol: 45 | ||
- priority: 5 | ||
protocol: 46 | ||
- priority: 6 | ||
protocol: 47 |
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,24 @@ | ||
network_config: | ||
- | ||
type: sriov_pf | ||
name: ens1f0np0 | ||
numvfs: 4 | ||
use_dhcp: false | ||
dcb: | ||
dscp2prio: | ||
# Add the dscp configs. | ||
# It requires priority and protocol | ||
- priority: 5 | ||
protocol: 45 | ||
- priority: 5 | ||
protocol: 46 | ||
- priority: 6 | ||
protocol: 47 | ||
- | ||
type: sriov_pf | ||
name: ens1f1np1 | ||
numvfs: 4 | ||
use_dhcp: false | ||
dcb: | ||
# Remove the dscp configurations | ||
dscp2prio: [] |
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.