Firewall rule option 'protocol' does take None through CLI (though the API supports it)
Bug #1217212 reported by
Rajesh Mohan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Fix Released
|
High
|
Rajesh Mohan |
Bug Description
Fwaas firewall-
In the original design, None was implied (when protocol is not specified). During code-review, this field became mandatory. Since this is mandatory now, there should be a way to specify 'None'.
API already supports 'None'. Only the CLI needs to be updated.
The proposal is to add 'any' as one of the options and map this to 'None' in the backend.
affects: | neutron → python-neutronclient |
Changed in python-neutronclient: | |
importance: | Undecided → High |
Changed in python-neutronclient: | |
milestone: | none → 2.2.1 |
Changed in python-neutronclient: | |
milestone: | 2.2.1-2.2.6 → none |
Changed in python-neutronclient: | |
milestone: | none → 2.3.0-2.3.4 |
Changed in python-neutronclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
in neutron/ extensions/ firewall. py#L194
'is_visible' : True, 'default': None,
'convert_ to': convert_protocol,
'validate' : {'type:values': fw_valid_ protocol_ values} }, neutronclient/ neutronclient/ neutron/ v2_0/fw/ firewallrule. py#L104
parser. add_argument(
'- -protocol' , choices=['tcp', 'udp', 'icmp'],
required= True,
help= 'protocol for the firewall rule')
'protocol': {'allow_post': True, 'allow_put': True,
in python-