ICMP type-code is not set using CLI create SG rule
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Committed
|
Undecided
|
wingwj |
Bug Description
Version:
Using openstack CLI version: 3.8.1.
Problem: When create ICMP security group rule with type code = 0, the 'port_range_max' of the created rule is 'None'. The correct value should be '0' as the value of the type_code.
Steps:
Steps:
1. Create Security groups,
openstack security group create sg1
2. Associate rules to SG,
openstack security group rule create --ingress --protocol icmp --icmp-type 8 --icmp-code 0 sg1
openstack security group rule create --egress --protocol icmp --icmp-type 8 --icmp-code 0 sg1
Observation: Rule is created with port_range_max == Node.
+------
| Field | Value |
+------
| created_at | 2017-07-
| description | |
| direction | ingress |
| ether_type | IPv4 |
| id | d09f67e2-
| name | None |
| port_range_max | None |
| port_range_min | 8 |
| project_id | 8981c66499a24a0
| protocol | icmp |
| remote_group_id | None |
| remote_ip_prefix | 0.0.0.0/0 |
| revision_number | 1 |
| security_group_id | 5c11a4f0-
| updated_at | 2017-07-
+------
Expected: The port_range_max should be 0
Changed in python-openstackclient: | |
status: | New → In Progress |
assignee: | nobody → wingwj (wingwj) |
Patch Added here /review. openstack. org/#/c/ 505890/
https:/