Skip to content

LACP mode help text mixup #1031

@jovatn

Description

@jovatn

Current Behavior

This is a bug report originates from a comment to Infix 25.03.1 release

The help text for link aggregate LACP modes have mixed up active and passive mode.

admin@infix-ad-00-00:/config/interface/bond0/> set lag lacp mode <?>
  active   LACP passive mode.
  passive  LACP active mode
admin@infix-ad-00-00:/config/interface/bond0/> set lag lacp mode

The reason is found in the associated link aggregate infix-if-lag YANG model

  typedef lacp-mode {
    description "LACP mode values.";

    type enumeration {
      enum passive {
        description "LACP active mode";
      }
      enum active {
        description "LACP passive mode.";
      }
    }
  }

Expected Behavior

Update the text in the YANG model, such that the help text in CLI becomes the following:

admin@infix-ad-00-00:/config/interface/bond0/> set lag lacp mode <?>
  active   LACP active mode
  passive  LACP passive mode
admin@infix-ad-00-00:/config/interface/bond0/> set lag lacp mode

Steps To Reproduce

  1. Install Infix 25.03.0 or later
  2. In CLI, do "configure", "edit interface bond0", and "set lag lacp mode ?"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions