[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:
DavidZagury 2021-05-08 01:35:58 +03:00 committed by GitHub
parent 67f293912f
commit 0a8023bbfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 3 deletions

View File

@ -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": {

View File

@ -25,6 +25,7 @@
],
"min_links": "1",
"mtu": "9100",
"lacp_key": "auto",
"name": "PortChannel0001"
}
]

View File

@ -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 */