alcor
alcor copied to clipboard
[subnet] update subnet from horizon will remove default gateway of the subnet
Reproduce steps:
- Create a subnet with default gateway (without clicking on "Disable Gateway")
- Edit a created subnet from OpenStack Horizon, change the subnet's name only then submit.
- The default gateway is gone in the list.
- Check the subnet again, you will see the "Disable Gateway" option is enabled.
The "Default Gateway" option in the Subnet's updating API is set to true when updating a subnet.
The input in the scenario of disabled gateway and no input value for gateway appears to be no difference for Java. Need more investigation.
@chenpiaoping add this annotation before the method.
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@kevin-zhonghao, maybe we can try this in the subnet entity.