You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use GCU to apply this patch: sudo config apply-patch patch.json
Describe the results you received:
Got below error message at step 2:
$ sudo config apply-patch patch.json
Patch Applier: Patch application starting.
Patch Applier: Patch: [{"op": "add", "path": "/ACL_TABLE_TYPE", "value": {"BMCDATA": {"MATCHES": ["SRC_IP", "DST_IP", "ETHER_TYPE", "IP_TYPE", "IP_PROTOCOL", "IN_PORTS", "L4_SRC_PORT", "L4_DST_PORT", "L4_SRC_PORT_RANGE", "L4_DST_PORT_RANGE"], "ACTIONS": ["PACKET_ACTION", "COUNTER"], "BIND_POINTS": ["PORT"]}, "BMCDATAV6": {"MATCHES": ["SRC_IPV6", "DST_IPV6", "ETHER_TYPE", "IP_TYPE", "IP_PROTOCOL", "IN_PORTS", "L4_SRC_PORT", "L4_DST_PORT", "L4_SRC_PORT_RANGE", "L4_DST_PORT_RANGE"], "ACTIONS": ["PACKET_ACTION", "COUNTER"], "BIND_POINTS": ["PORT"]}}}]
Patch Applier: Getting current config db.
Patch Applier: Simulating the target full config after applying the patch.
Patch Applier: Validating all JsonPatch operations are permitted on the specified fields
Patch Applier: Validating target config does not have empty tables, since they do not show up in ConfigDb.
Patch Applier: Sorting patch updates.
Failed to apply patch
Usage: config apply-patch [OPTIONS] PATCH_FILE_PATH
Try "config apply-patch -h" for help.
Error: Given patch will produce invalid config. Error: Data Loading Failed
All Keys are not parsed in ACL_TABLE_TYPE
dict_keys(['BMCDATA', 'BMCDATAV6'])
exceptionList:["'MATCHES'", "'MATCHES'"]
Describe the results you expected:
Expect the custom ACL table types can be created in config DB.
Output of show version:
Can repro this issue on 202205 image.
Output of show techsupport:
(paste your output here or download and attach the file here )
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered:
Description
The definition of
ACL_TABLE_TYPE
in sonic-acl.yang.j2#290 is incorrect.According to ACL-Table-Type-HLD, key
MATCHES
,ACTIONS
andBIND_POINTS
should be uppercase. But they are written as lowercase in sonic-acl.yang.j2#290.Steps to reproduce the issue:
patch.json
on DUT:sudo config apply-patch patch.json
Describe the results you received:
Got below error message at step 2:
Describe the results you expected:
Expect the custom ACL table types can be created in config DB.
Output of
show version
:Can repro this issue on
202205
image.Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: