[YANG][ACL] Change LAG -> PORTCHANNEL in DB schema (#17062)
Orchagent uses PORTCHANNEL term when parsing this field. Change the YANG model to align to orchagent. - Why I did it When specifying PORTCHANNEL in ACL_TABLE_TYPE table YAGN model validation does not pass, when using term LAG orchagent does not accept such table type. Fix it by aligning YANG model to orchagent. - How I did it Fix in YANG model. - How to verify it Create custom ACL table type. Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
This commit is contained in:
parent
f233a26686
commit
fd10ce1f8b
@ -341,7 +341,7 @@ and migration plan
|
|||||||
],
|
],
|
||||||
"BIND_POINTS": [
|
"BIND_POINTS": [
|
||||||
"PORT",
|
"PORT",
|
||||||
"LAG"
|
"PORTCHANNEL"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2315,7 +2315,7 @@
|
|||||||
],
|
],
|
||||||
"BIND_POINTS": [
|
"BIND_POINTS": [
|
||||||
"PORT",
|
"PORT",
|
||||||
"LAG"
|
"PORTCHANNEL"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -731,7 +731,8 @@
|
|||||||
"PACKET_ACTION"
|
"PACKET_ACTION"
|
||||||
],
|
],
|
||||||
"BIND_POINTS": [
|
"BIND_POINTS": [
|
||||||
"PORT"
|
"PORT",
|
||||||
|
"PORTCHANNEL"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -308,7 +308,7 @@ module sonic-acl {
|
|||||||
leaf-list BIND_POINTS {
|
leaf-list BIND_POINTS {
|
||||||
type enumeration {
|
type enumeration {
|
||||||
enum PORT;
|
enum PORT;
|
||||||
enum LAG;
|
enum PORTCHANNEL;
|
||||||
}
|
}
|
||||||
min-elements 1;
|
min-elements 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user