Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-126510

[RFE] Referring alt-name directly in name parameter

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • nmstate
    • None
    • None
    • rhel-net-mgmt
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given Interface eth1 exists with primary name 'eth1' and alt-names ['port1', 'longlongalt-name'] and interface eth2 exists with primary name 'port1' (no alt-names),

      When a sysadmin applies state with:

         interfaces: 
         - name: longlongalt-name
           state: up
           ipv4: 
             enabled: false
      
        interfaces: 
       - name: port1
         state: up 
      
        interfaces: 
        - name: eth1
          state: up
      
      

      Then, nmstate resolves names correctly: 'longlongalt-name' with eth1, 'port1' with eth2 (primary precedence), 'eth1' with eth1, applies configuration successfully, and nmstatectl show <interface> reflects the applied state with exit code 0

      Given interface eth1 exists with primary name 'eth1' and alt-names ['port1'] and interface eth2 exists with primary name 'eth2' and alt-names ['port1'] and no interface named 'nonexistent' exists and no alt-name 'nonexistent' exists,

      When a sysadmin applies state with:

      interfaces: 
      - name: port1
         state: up
      
      interfaces: 
      - name: nonexistent, 
        state: up
      

      Then nmstate exits with code 1 and error message indicating:

      • For 'port1': alt-name is ambiguous (used by multiple interfaces: eth1 and eth2)
      • For 'nonexistent': interface not found by name or alt-name

      ( ) Integration test case is available upstream.


      ( ) Code is reviewed and merged upstream.


      ( ) Preliminary testing is done.


      ( ) Upstream documentation is written in the upstream MR.


      ( ) Release notes text is written in the RHEL issue.


      ( ) A demo is recorded

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given Interface eth1 exists with primary name 'eth1' and alt-names ['port1', 'longlongalt-name'] and interface eth2 exists with primary name 'port1' (no alt-names), When a sysadmin applies state with: interfaces: - name: longlongalt-name state: up ipv4: enabled: false interfaces: - name: port1 state: up interfaces: - name: eth1 state: up Then, nmstate resolves names correctly: 'longlongalt-name' with eth1, 'port1' with eth2 (primary precedence), 'eth1' with eth1, applies configuration successfully, and nmstatectl show <interface> reflects the applied state with exit code 0 — Given interface eth1 exists with primary name 'eth1' and alt-names ['port1'] and interface eth2 exists with primary name 'eth2' and alt-names ['port1'] and no interface named 'nonexistent' exists and no alt-name 'nonexistent' exists, When a sysadmin applies state with: interfaces: - name: port1 state: up interfaces: - name: nonexistent, state: up Then nmstate exits with code 1 and error message indicating: For 'port1': alt-name is ambiguous (used by multiple interfaces: eth1 and eth2) For 'nonexistent': interface not found by name or alt-name ( ) Integration test case is available upstream. ( ) Code is reviewed and merged upstream. ( ) Preliminary testing is done. ( ) Upstream documentation is written in the upstream MR. ( ) Release notes text is written in the RHEL issue. ( ) A demo is recorded
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Goal

      • Support referring alt-name directly in 'name' parameter

      Example:

      interfaces:
      - name: longlongalt-name
        state: up
        ipv4:
          enabled: false 

              nm-team Network Management Team
              carlosgoncalves Carlos Goncalves
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: