Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter Name

Description

required

podID

specifies the id of the pod to which the new range is added

true

IpaddressStart

starting address of the IP range

true

IpaddressEnd

ending address of the IP range. use the entire cidr if not specified.

false

Netmask

Netmask of the subnet

true

Gateway

Gateway of the subnet

true

allocation state

allocation state of the pod

false

remove

if remove is set to true it will try to remove the given IP range or subnet. this defaults to false.

false

(remove is the new parameter that we are going to add.)

validation.
#1 We use checkpodAttributes function in configurationManagerImpl.

execution flow.
#1 validate the input.(This will be done using the checkpodAttributes function of the configureationManagerImpl).
#2 #3 Add the new range.

removing the the guest IPs from the Basic zone.

we intend to use the deleteVlanRange API to delete the IP ranges. The operations will be atomic. this will fail if any IP form the remove range is being used. While removing we acquire a lock on the valn that is being removed.

Removing of Management (pod) IPs for Advanced and Basic Zone.

...

We do this by setting the remove parameter of the Updatepod API to true.
example
Existing: 10.147.28.20 to 10.147.28.147.40 used: 10.147.28.22
Remove: 10.10.147.28.20 to 10.147.28.147.40
this will fail as 10.147.28.22 is in use.

...