Skip to content

Incorrect interface name and default route in the node yaml when templating #108

@kastakhov

Description

@kastakhov

Hi there,

I have a node with multiple interfaces, the first one (eno1) with IP assignment from DHCP and the second one (eno2) with static configuration, both have default gateway.

When I run talm template -e node_ip -n node_ip -t templates/controlplane.yaml -i > node.yaml, I got machine configuration with incorrect interface name, i.e.:

machine:
  network:
    interfaces:
      - interface: eno1eno2
        addresses:
          - node_eno2_ip
        routes:
          - network: 0.0.0.0/0
            gateway: node_eno1_gateway

Seems they are incorrectly handled in the _helpers.tpl for both generic and cozystack templates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions