Skip to content

Commit

Permalink
Merge pull request #160 from stackhpc/nm-ingress-egress-priority-map
Browse files Browse the repository at this point in the history
Support setting ingress/egress priority maps
  • Loading branch information
markgoddard authored Jul 16, 2024
2 parents c5558cf + e014ebe commit 58f01e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/ethernet_RedHat.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ NM_CONTROLLED={{ interfaces_use_networkmanager | ternary('yes', 'no') }}
{% if item.device is match(vlan_interface_regex) %}
VLAN=yes
{% endif %}
{% if item.ingress_priority_map is defined %}
VLAN_INGRESS_PRIORITY_MAP={{ item.ingress_priority_map }}
{% endif %}
{% if item.egress_priority_map is defined %}
VLAN_EGRESS_PRIORITY_MAP={{ item.egress_priority_map }}
{% endif %}
{% if item.mtu is defined %}
MTU={{ item.mtu }}
{% endif %}
Expand Down
6 changes: 6 additions & 0 deletions templates/ethernet_nmconnection.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ mtu={{ item.mtu }}
interface-name={{ item.device }}
parent={{ item.device | regex_replace(vlan_interface_regex, '\g<interface>') }}
id={{ item.device | regex_replace(vlan_interface_regex, '\g<vlan_id>') }}
{% if item.ingress_priority_map is defined %}
ingress-priority-map={{ item.ingress_priority_map }}
{% endif %}
{% if item.egress_priority_map is defined %}
egress-priority-map={{ item.egress_priority_map }}
{% endif %}
{% endif %}

[ipv4]
Expand Down

0 comments on commit 58f01e9

Please sign in to comment.