gophercloud icon indicating copy to clipboard operation
gophercloud copied to clipboard

Fix name in protocolAny

Open HappyFX opened this issue 3 years ago • 0 comments

In documentation: valid value for openstack cli is 'any'. In fact it's converted in to None and then in null:

debug from openstack call:

openstack security group rule create --egress --remote-ip 8.8.8.8/32 --protocol 'any' eece1c60-baf3-4ea9-88bf-54cc40290720

REQ: curl -g -i -X POST http://test:9696/v2.0/security-group-rules -H "Content-Type: application/json" -H "User-Agent: openstacksdk/0.99.0 keystoneauth1/4.6.0 python-requests/2.28.1 CPython/3.9.13" -H "X-Auth-Token: {SHA256}547fc1809352d6d9431590520fb0923bbf92d25fbe73af21eb488e1b71e67e52" -d '{"security_group_rule": {"security_group_id": "eece1c60-baf3-4ea9-88bf-54cc40290720", "ethertype": "IPv4", "protocol": null, "direction": "egress", "remote_ip_prefix": "8.8.8.8/32"}}'

HappyFX avatar Jul 19 '22 16:07 HappyFX