Adding ACE to an Existing IPv4 ACL (deny)
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys/acl/ipv4.json
{ "ipv4aclAF": { "children": [ { "ipv4aclACL": { "attributes": { "name": "acl_tcp" }, "children": [ { "ipv4aclACE": { "attributes": { "action": "deny", "dstPrefix": "13.235.46.97", "dstPrefixLength": "9", "protocol": "udp", "seqNum": "2", "srcPrefix": "12.234.56.97", "srcPrefixLength": "13", "userSetBit": "1" }}}]}}]}}
Response
{ imdata": [] }
Copy
<System> <acl-items> <ipv4-items> <name-items> <ACL-list> <name>acl_tcp</name> <seq-items> <ACE-list> <seqNum>2</seqNum> <action>deny</action> <dstPrefix>13.235.46.97</dstPrefix> <dstPrefixLength>9</dstPrefixLength> <protocol>udp</protocol> <srcPrefix>12.234.56.97</srcPrefix> <srcPrefixLength>13</srcPrefixLength> <userSetBit>1</userSetBit> </ACE-list> </seq-items> </ACL-list> </name-items> </ipv4-items> </acl-items> </System>