kernelkit / infix

Linux :yellow_heart: NETCONF = Infix
https://kernelkit.org
GNU General Public License v2.0
46 stars 12 forks source link

Enable/disable LLDP per port #578

Open troglobit opened 3 weeks ago

troglobit commented 3 weeks ago

As of today, Infix can only enable/disable LLDP globally per switch. It is desirable to support more fine-grain control for enable/disable per port, and possibly also for the direction.

LLDP Yang contains an "admin-status" per-port setting for this purpose. The request here is to support this leaf with at least the "tx-and-rx" and "disabled" types, possibly also the "tx-only" and "rx-only" types.

      leaf admin-status {
        type enumeration {
          enum tx-only {
            value 1;
            description
              "Transmit LLDP frames only.";
          }
          enum rx-only {
            value 2;
            description
              "Receive LLDP frames only.";
          }
          enum tx-and-rx {
            value 3;
            description
              "Transmit and Receive LLDP frames.";
          }
          enum disabled {
            value 4;
            description
              "Do Not Transmit or Receive LLDP frames.";
          }
        }
        default "tx-and-rx";
        description
          "Administrative status of the local LLDP agent.";
        reference
          "9.2.5.1 of IEEE Std 802.1AB-2016";
      }
troglobit commented 3 weeks ago

Team decision: lower priority, not critical atm.