alcor icon indicating copy to clipboard operation
alcor copied to clipboard

[subnet] update subnet from horizon will remove default gateway of the subnet

Open cj-chung opened this issue 5 years ago • 2 comments

Reproduce steps:

  1. Create a subnet with default gateway (without clicking on "Disable Gateway")
  2. Edit a created subnet from OpenStack Horizon, change the subnet's name only then submit.
  3. The default gateway is gone in the list.
  4. 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.

cj-chung avatar Nov 16 '20 17:11 cj-chung

The input in the scenario of disabled gateway and no input value for gateway appears to be no difference for Java. Need more investigation.

xieus avatar Dec 09 '20 18:12 xieus

@chenpiaoping add this annotation before the method.

@JsonInclude(JsonInclude.Include.NON_ABSENT)

@kevin-zhonghao, maybe we can try this in the subnet entity.

cj-chung avatar Dec 17 '20 23:12 cj-chung