You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Resources | addressContext | ipAccessControlList | rule

rule

Access Control List rule name. Each rule is defined with a precedence that is unique within an Address Context. This precedence value determines the order in which the rules are loaded and executed for each incoming packet. If an incoming packet matches two identical rules, the IP ACL rule with the highest precedence is applied for that incoming packet.

Configuration

ParameterPresenceTypeDefaultDescription
nameMstring The name of this access control list rule.
precedenceMuint32 The precedence of this access control list rule.
protocolOunionany The protocol to match or "any" to match any protocol.
ipInterfaceGroupOreference The name of a IP interface group to match.
ipInterfaceOreference The name of an IP interface to match.
mgmtIpInterfaceGroupOreference The name of a MGMT IP interface group to match.
mgmtIpInterfaceOreference The name of a MGMT IP interface to match.
sourceIpAddressOip-address0.0.0.0 The source IP address to match.
sourceAddressPrefixLengthOuint320 The length of source IP address prefix which must match.
destinationIpAddressOip-address0.0.0.0 The destination IP address prefix to match.
destinationAddressPrefixLengthOuint320 The length of destination IP address prefix which must match.
sourcePortOunionany The source port to match.
destinationPortOunionany The destination port to match.
actionOenumerationaccept The action to take when this rule is matched.
fillRateOunion50 The policing fill rate (in pkts/sec) set to 50 pkt/sec as default value i.e if not mentioned by operator.
bucketSizeOunion50 The policing bucket size (in pkts). Set to 50 pkt if not specified by operator.
stateOenumerationdisabled Administrative state of the IP access control list rule.
aggregatePolicerOstring name of aggregate policer associated with.
destTypeIpVersionOenumerationipV4 The IP Address version type when specifying the dest IP address using an interface name or SipSigPort index.
REST API: GET Example

curl -kisu 'admin:secret' -X GET https://{SBX-SERVER}/api/config/addressContext/{name}/ipAccessControlList/rule/{name}

REST API: POST Example

curl -kisu 'admin:secret' -X POST -H 'Content-Type: application/vnd.yang.data+xml' https://{SBX-SERVER}/api/config/addressContext/{name}/ipAccessControlList --data '
<rule>
     <name>{name}</name>
     <precedence>{precedence}</precedence>
</rule>
'

REST API: DELETE Example

curl -kisu 'admin:secret' -X DELETE https://{SBX-SERVER}/api/config/addressContext/{name}/ipAccessControlList/rule/{name}

  • No labels