Skip to content

Commit

Permalink
Merge pull request #96 from pablintino/os-net-config-nic-aliases
Browse files Browse the repository at this point in the history
Use nic aliases in the edpm network template
  • Loading branch information
fultonj authored Feb 9, 2024
2 parents ce688a4 + 90c19b5 commit 9b2fb89
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
5 changes: 4 additions & 1 deletion examples/va/hci/edpm-pre-ceph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ data:
edpm_iscsid_image: '{{ registry_url }}/openstack-iscsid:{{ image_tag }}'
edpm_logrotate_crond_image: '{{ registry_url }}/openstack-cron:{{ image_tag }}'
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_os_net_config_mappings:
edpm-compute:
nic2: enp7s0
edpm_network_config_template: |
---
{% set mtu_list = [ctlplane_mtu] %}
Expand All @@ -46,7 +49,7 @@ data:
routes: {{ ctlplane_host_routes }}
members:
- type: interface
name: enp7s0
name: nic2
mtu: {{ min_viable_mtu }}
# force the MAC address of the bridge to this interface
primary: true
Expand Down
9 changes: 7 additions & 2 deletions examples/va/nfv/ovs-dpdk/edpm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ data:
# edpm_network_config
# These vars are edpm_network_config role vars
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_os_net_config_mappings:
edpm-compute:
nic2: eno2
nic3: eno3
nic4: eno4
edpm_network_config_template: |
---
{% set mtu_list = [ctlplane_mtu] %}
Expand Down Expand Up @@ -86,7 +91,7 @@ data:
name: dpdk1
members:
- type: interface
name: eno3
name: nic3
- type: ovs_user_bridge
name: br-link2
use_dhcp: false
Expand All @@ -96,7 +101,7 @@ data:
name: dpdk2
members:
- type: interface
name: eno4
name: nic4
# These vars are for the network config templates themselves and are
# considered EDPM network defaults.
Expand Down
10 changes: 7 additions & 3 deletions examples/va/nfv/sriov/edpm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ data:
- hostname: clock.redhat.com
# CPU pinning settings
edpm_kernel_args: "default_hugepagesz=1GB hugepagesz=1G hugepages=16 intel_iommu=on iommu=pt isolcpus=4-23,28-47"
edpm_tuned_profile: "cpu-partitioning-powersave"
edpm_tuned_profile: "cpu-partitioning-powersave"
edpm_tuned_isolated_cores: "4-23,28-47"
# edpm_network_config
# These vars are edpm_network_config role vars
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_os_net_config_mappings:
edpm-compute:
nic2: enp7s0
nic3: eno4
edpm_network_config_template: |
---
{% set mtu_list = [ctlplane_mtu] %}
Expand All @@ -53,7 +57,7 @@ data:
routes: {{ ctlplane_host_routes }}
members:
- type: interface
name: enp7s0
name: nic2
mtu: {{ min_viable_mtu }}
# force the MAC address of the bridge to this interface
primary: true
Expand All @@ -67,7 +71,7 @@ data:
routes: {{ lookup('vars', networks_lower[network] ~ '_host_routes') }}
{% endfor %}
- type: sriov_pf
name: eno4
name: nic3
numvfs: 10
use_dhcp: false
promisc: true
Expand Down

0 comments on commit 9b2fb89

Please sign in to comment.