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 (#9)
Support dscp configuration using os-net-config templates. It uses pyroute2 modules to send/receive, encode/decode the netlink messages. The persistence of the configuration is done with dcb_config.service
- Loading branch information
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.