Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

Unable to create SFC - ACL

Hi, I am using Opendaylight – Beryllium release. When I try to create ACL with the below JSON data, ACL not creating:

Request URL http://<odl-ip>:8181/restconf/config/ietf-access-control-list:access-lists/

NOT WORKING JSON Data:

{ 'acl': [ { 'acl-name': u'myclass', 'access-list-entries': { 'ace': [ {'matches': { 'destination-port-range': {'lower-port': 80, 'upper-port': 80}, 'protocol': 6}, 'actions': {'netvirt-sfc-acl:rsp-name': u'Path-mychain-Path-24'}, 'rule-name': u'myclass'} ] } } ] }

But, If I give ‘matches’ key value to ‘{}’, ACL is creating.

WORKING JSON Data:

{ 'acl': [ { 'acl-name': u'myclass', 'access-list-entries': { 'ace': [ {'matches': {}, 'actions': {'netvirt-sfc-acl:rsp-name': u'Path-mychain-Path-24'}, 'rule-name': u'myclass'} ] } } ] }

Can anyone let me know the correct JSON data format for ‘matches’?

Regards, Srikanth.