Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/sonic-yang-models/tests/yang_model_tests/tests/acl.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,8 @@
"ACL_RULE_L2_INVALID_ETHER": {
"desc": "Configure invalid MAC address format.",
"eStrKey" : "Pattern"
},
"ACL_PACKET_ACTION_VALIDATE_VALUE_ACCEPT": {
"desc": "Configure CTRLPLANE with proper action ACCEPT."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -789,5 +789,36 @@
]
}
}
},
"ACL_PACKET_ACTION_VALIDATE_VALUE_ACCEPT": {
"sonic-acl:sonic-acl": {
"sonic-acl:ACL_RULE": {
"ACL_RULE_LIST": [
{
"ACL_TABLE_NAME": "SNMP_ACL",
"DST_IP": "10.186.72.0/26",
"IP_TYPE": "IPv4ANY",
"PACKET_ACTION": "ACCEPT",
"PRIORITY": 999980,
"RULE_NAME": "Rule_20",
"SRC_IP": "10.176.0.0/15"
}
]
},

"sonic-acl:ACL_TABLE": {
"ACL_TABLE_LIST": [
{
"ACL_TABLE_NAME": "SNMP_ACL",
"policy_desc": "SNMP_ACL",
"services": [
"SNMP"
],
"stage": "ingress",
"type": "CTRLPLANE"
}
]
}
}
}
}
1 change: 1 addition & 0 deletions src/sonic-yang-models/yang-templates/sonic-types.yang.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module sonic-types {
typedef packet_action{
type enumeration {
enum DROP;
enum ACCEPT;
enum FORWARD;
enum REDIRECT;
enum DO_NOT_NAT;
Expand Down