ironic client can not set portgroup mode as integer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-ironicclient |
Fix Released
|
Undecided
|
Kaifeng Wang |
Bug Description
According to [1], bonding mode can be represented as a string or number, e.g. active-backup or 1.
When using ironic cli to create a new port group, the mode parameter accepts a string or number:
# openstack --os-baremetal-
And after the port group is created, If we set mode to another mode number, ironic cli reports an error:
# openstack --os-baremetal-
Invalid input for field/attribute mode. Value: '1'. Wrong type. Expected '<type 'unicode'>', got '<type 'int'>' (HTTP 400)
This behaviour is not consistent nor conforms to [1].
The issue is caused by split_and_
[1] https:/
affects: | ironic → python-ironicclient |
Changed in python-ironicclient: | |
assignee: | nobody → Kaifeng Wang (kaifeng) |
Fix proposed to branch: master /review. openstack. org/537283
Review: https:/