osp.edpm.edpm_os_net_config_mappings module – Configure os-net-config mappings for nodes or node groups

New in osp.edpm 2.8

Synopsis

  • This module creates os-net-config mapping for nodes or node groups based on the input data provided. MAC addresses or DMI table strings can be used to identify specific nodes or node groups. See manual page for DMIDECODE(8) for a list of DMI table strings that can be used.

Parameters

Parameter

Comments

net_config_data_lookup

dictionary

Per node and/or per node group configuration map

Examples

- name: Map os-net-config nicX abstraction using MAC address
  edpm_os_net_config_mappings:
    net_config_data_lookup:
      overcloud-controller-0:
        nic1: "00:c8:7c:e6:f0:2e"
      overcloud-compute-13:
        nic1: "00:18:7d:99:0c:b6"
- name: Interface name to os-net-config nicX abstraction using system-uuid
  edpm_os_net_config_mappings:
    net_config_data_lookup:
      overcloud-controller-0:
        dmiString: 'system-uuid'
        id: 'A8C85861-1B16-4803-8689-AFC62984F8F6'
        nic1: em3
        nic2: em1
        nic3: em2
        nic4: em4
- name: Interface name to os-net-config nicX abstraction for node groups using system-product-name
  edpm_os_net_config_mappings:
    net_config_data_lookup:
      nodegroup-dell-poweredge-r630:
        dmiString: "system-product-name"
        id: "PowerEdge R630"
        nic1: em3
        nic2: em1
        nic3: em2
      nodegroup-cisco-ucsb-b200-m4:
        dmiString: "system-product-name"
        id: "UCSB-B200-M4"
        nic1: enp7s0
        nic2: enp6s0

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

mapping

dictionary

Dictionary with os-net-config mapping data that can be written to the os-net-config mapping file.

Returned: when mapping match present in net_config_data_lookup

Authors

  • Harald Jensås