Problem description
Use the aliyun
and -ipprotocolicmp
parameters of the -portrange-1/-1
command to add an ICMP Security Group rule. The following error is returned:
ERROR: parse failed not support flag form -1/-1
Cause
Run the aliyun
command to call the AuthorizeSecurityGroup interface and add the format error of the ICMP Security Group rule.
Solution
When you use the PortRange parameter of the aliyun
command, an equal sign (=) must be added after the parameter. That is, --PortRange=-1/-1
.
Scope
- Elastic Compute Service