Versions Compared

Key

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

...

The changes will be atomic.
before removing any range we need to check if any of the vlans in the range are in use. The operation will fail if some vlans in the remove range are in use.
i.e. if E=100-200 (existing) U(used)=101,121,131
and remove=100-201 we do not remove this range as 101,121, and 131 are being used.
if the admin wants to remove the reset of the range leaving the used ones he can say
remove 100-100, 102-120, etc

Note: If remove fails Add will also fail.

execution flow for the adding a vlan range.
1.)check if the vlan already exists.
2.)check if it overlaps any existing vlan ranges. If it overlaps extend the existing range.
E= 100-200 Add=200-300, in this case we extend the existing vlan to 100-300.
3.)if it dose not overlap add the new vlan
range.

...