ó ¡ôXc@sŽddlZddlmZmZddlmZddlmZmZdefd„ƒYZ de fd„ƒYZ d e fd „ƒYZ dS( iÿÿÿÿN(tArgtMutuallyExclusiveArgList(t ArgumentError(t EC2Requestt parse_portst_ModifyNetworkAclEntrycBsaeZdZedddddƒedddd dd d ed edd ƒeedddddddddƒedddddddddƒƒjƒeddddddd eddƒeddddd d!dd"ƒed#dd$dd%dd&ƒed'd(dd)dd*d+d5dd,ƒed-d.dd/dd0d+d5dd1ƒgZ d2„Z d3„Z d4„Z RS(6s Modify a network ACL entry This is not an actual EC2 request -- see euca-create-network-acl-entry(1) or euca-replace-network-acl-entry(1) for something usable.t NetworkAclIdtmetavartNACLthelps4ID of the network ACL to add the entry to (required)s-ns --rule-numbertdestt RuleNumbertINTtrequiredttypes(rule number for the new entry (required)s--allowt RuleActiontactiont store_consttconsttallows/make the new entry allow the traffic it matchess--denytdenys/make the new entry block the traffic it matchess-rs--cidrt CidrBlocktCIDRs5CIDR address range the entry should affect (required)s-Ps --protocoltProtocoltdefaults-1s1protocol the entry should apply to (default: all)s--egresstEgresst store_truestmake the entry affect outgoing (egress) network traffic (default: affect incoming (ingress) traffic)s-ps --port-ranget port_rangetRANGEtroute_tosjrange of ports (specified as "from-to") or a single port number (required for tcp and udp)s-ts--icmp-type-codeticmp_type_codes TYPE:CODEsQICMP type and code (specified as "type:code") (required for icmp)cCs|jƒdS(N(tprocess_port_cli_args(tself((sP/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifynetworkaclentry.pytprocess_cli_argsCscCsXtj|ƒ|jjdƒs/t|jd(((sP/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifynetworkaclentry.pyR"s:     tCreateNetworkAclEntrycBseZdZRS(s'Create a new entry in a VPC network ACL(R?R@RA(((sP/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifynetworkaclentry.pyREsstReplaceNetworkAclEntrycBseZdZRS(s%Replace an entry in a VPC network ACL(R?R@RA(((sP/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifynetworkaclentry.pyRFws( R+trequestbuilderRRtrequestbuilder.exceptionsRteuca2ools.commands.ec2RRRRERF(((sP/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifynetworkaclentry.pyts Q