[DPB][YANG-models] Update portchannel yang model to have lacp_key (#7297)
To update the yang model to support the new key interduced in Azure/sonic-swss#1660
This commit is contained in:
parent
67f293912f
commit
0a8023bbfd
@ -11,7 +11,8 @@
|
||||
"members": [
|
||||
"Ethernet1"
|
||||
],
|
||||
"mtu": "9100"
|
||||
"mtu": "9100",
|
||||
"lacp_key": "auto"
|
||||
},
|
||||
"PortChannel0004": {
|
||||
"admin_status": "up",
|
||||
@ -19,7 +20,8 @@
|
||||
"members": [
|
||||
"Ethernet2"
|
||||
],
|
||||
"mtu": "9100"
|
||||
"mtu": "9100",
|
||||
"lacp_key": "auto"
|
||||
}
|
||||
},
|
||||
"PORTCHANNEL_INTERFACE": {
|
||||
|
@ -25,6 +25,7 @@
|
||||
],
|
||||
"min_links": "1",
|
||||
"mtu": "9100",
|
||||
"lacp_key": "auto",
|
||||
"name": "PortChannel0001"
|
||||
}
|
||||
]
|
||||
|
@ -95,7 +95,21 @@ module sonic-portchannel {
|
||||
mandatory true;
|
||||
type stypes:admin_status;
|
||||
}
|
||||
} /* end of list PORTCHANNEL_LIST */
|
||||
|
||||
leaf lacp_key {
|
||||
/* lacp key should be either auto or a integer in the range of 1 to 65535 */
|
||||
/* When lacp_key is set to 'auto' the lacp key would be set to be the number */
|
||||
/* on the end of the PortChannel name with a prefix of 1 */
|
||||
type union {
|
||||
type string {
|
||||
pattern "auto";
|
||||
}
|
||||
type uint16 {
|
||||
range 1..65535;
|
||||
}
|
||||
}
|
||||
}
|
||||
} /* end of list PORTCHANNEL_LIST */
|
||||
|
||||
} /* end of container PORTCHANNEL */
|
||||
|
||||
|
Reference in New Issue
Block a user