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

[RFE] Support referring alt-name in `copy-mac-from` property

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • nmstate
    • None
    • 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.

      None


      ( ) 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. None ( ) 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

      What were you trying to do that didn't work?

      The `interface.copy-mac-from` property cannot referring to alternative name

      What is the impact of this issue to you?

      OCP use `copy-mac-from` to create OVS bridge inherit the MAC address of physical interface, so the DHCP address could be consistent.

      Please provide the package NVR for which the bug is seen:

      nmstate-2.2.57-1.el10

      How reproducible is this bug?:

      100%

      Steps to reproduce

      
      echo '
      ---
      interfaces:
        - name: port1
          type: ethernet
          identifier: mac-address
          mac-address: 52:54:00:15:17:63
          alt-names:
            - name: port1
            - name: primary' | sudo nmstatectl apply -
      
      
      echo '
      ---
      interfaces:
        - name: br0
          type: linux-bridge
          state: up
          copy-mac-from: primary
          bridge:
            port:
            - name: primary' | sudo nmstatectl apply -
      
      

      Expected results

      Nmstate create linux bridge using MAC address of 52:54:00:15:17:63

      Actual results

      NmstateError: InvalidArgument: Failed to find interface primary for copy-mac-from of iface br0

              nm-team Network Management Team
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: