Manage LACP

Setting LACP Configuration

This example gNMI request sets LACP mode to active for aggregate ethernet interface 1.
gnmic -a 10.1.1.1:9339 set --update /lacp/interfaces/interface[name=ae1]/lacp-mode:::string:::ACTIVE -u admin -p password -e JSON_IETF --timeout 30s
A successful set request returns:
{ "timestamp": 1619038358429553698, "time": "2021-04-21T13:52:38.429553698-07:00", "results": [ { "operation": "UPDATE", "path": "lacp/interfaces/interface[name=ae1]/lacp-mode" } ] }

Retrieving LACP Configurations

This example gNMI request retrieves the previously enabled LACP configurations for aggregate ethernet interface 1. The rest of the settings are the default settings:
gnmic -a 10.1.1.1:9339 get --path /lacp -u admin -p password -e JSON_IETF --timeout 30s
A success Get response returns:
[ { "timestamp": 1619037631256141667, "time": "2021-04-21T13:40:31.256141667-07:00", "updates": [ { "Path": "lacp", "values": { "lacp": { "openconfig-lacp:interfaces": { "interface": [ { "config": { "interval": "SLOW", "lacp-mode": "ACTIVE", "name": "ae1", "system-priority": 32768 }, "members": { "member": [ { "interface": "ethernet1/22", "state": { "aggregatable": false, "counters": { "lacp-in-pkts": "0", "lacp-out-pkts": "0" }, "interface": "ethernet1/22", "oper-key": 16, "partner-id": "00:00:00:00:00:00", "partner-key": 0 } } ] }, "name": "ae1", "state": { "interval": "SLOW", "lacp-mode": "ACTIVE", "name": "ae1", "system-id-mac": "34:e5:ec:76:b8:01", "system-priority": 32768 } } ] }, "state": { "system-priority": 32678 } } } } ] } ]

Recommended For You