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

Need proper error message for invalid use case on setting priority on balance-rr bond

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.6.z
    • nmstate
    • No
    • Low
    • rhel-sst-network-management
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

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

      The priority cannot be set on bond with balance-rr mode. Instead of InvalidArgument error, nmstate raise verification error on when applying this incorrect YAML.

      ---
      interfaces: 
      - name: bond99
        type: bond
        state: up
        link-aggregation: 
          mode: balance-rr
          ports-config: 
          - name: eth1
            priority: 15
      
      

      What is the impact of this issue to you?

      This is cosmatic

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

      nmstate-2.2.38-1.el9

      How reproducible is this bug?:

      100%

      Steps to reproduce

      Apply above YAML via nmstatectl apply

      Expected results

      Got InvalidArgument error complaining priority cannot be set to bond holding balance-rr mode

      Actual results

      NmstateError: VerificationError: Verification failure: bond99.interface.link-aggregation.ports-config[0].priority desire '15', current '0'

              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:
              7 Start watching this issue

                Created:
                Updated: