[SFC-135] Fail to create ACL Created: 25/Jan/16  Updated: 23/Feb/16  Resolved: 23/Feb/16

Status: Resolved
Project: sfc
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Ruijing Guo Assignee: Ruijing Guo
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5072

 Description   

fail to create ACL as:

{"errors":{"error":[{"error-type":"application","error-tag":"operation-failed","error-message":"canCommit encountered an unexpected failure","error-info":"java.lang.IllegalArgumentException: Node (urn:ietf:params:xml:ns:yang:ietf-access-control-list?revision=2015-03-17)ace-type is missing mandatory descendant /(urn:ietf:params:xml:ns:yang:ietf-access-control-list?revision=2015-03-17)destination-port-range/lower-port\n\tat com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.MandatoryLeafEnforcer$Strict.enforceOnTreeNode(MandatoryLeafEnforcer.java:58)\n\tat org.opendaylight.yangtools.yang.data.impl.schema.tree.CaseEnforcer.enforceOnTreeNode(CaseEnforcer.java:60)



 Comments   
Comment by Ruijing Guo [ 25/Jan/16 ]

Root-Cause:

source-port-range & destination-port-range is mandatory as:

{
"acl-name": "ACL1",
"access-list-entries": {
"ace": [
{
"rule-name": "ACE1",
"actions":

{ "service-function-acl:rendered-service-path": "RSP1" }

,
"matches": {
"destination-ipv4-network": "192.168.2.0/24",
"source-ipv4-network": "192.168.2.0/24",
"protocol": "6",
"source-port-range":

{ "lower-port": 0 }

,
"destination-port-range":

{ "lower-port": 80 }

}
}
]
}
},

Generated at Wed Feb 07 20:38:43 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.