Lucas Ratusznei Fonseca 334170f842 Add semantic check for bootstrap address version in subcloud-add
This change adds a semantic check to subcloud-add to ensure that the
provided bootstrap IP is the same version as the system controller's
primary OAM address pool. Both bootstrap-address from CLI and
bootstrap_address from INSTALL_VALUES are checked.

Test plan

Setup: IPv4 DX System Controller

[PASS] Add subcloud using IPv4 --bootstrap-address in CLI, check that
       command succeeds.
[PASS] Add subcloud using IPv6 --bootstrap-address in CLI, check that
       command fails.
[PASS] Add subcloud using IPv4 bootstrap_address in INSTALL_VALUES,
       check that command succeeds.
[PASS] Add subcloud using IPv6 bootstrap_address in INSTALL_VALUES,
       check that command fails.

Story: 2011027
Task: 50650
Change-Id: If75bd681c92818234914061b1e123a93ea6cab08
Signed-off-by: Lucas Ratusznei Fonseca <lucas.ratuszneifonseca@windriver.com>
2024-07-29 09:43:58 -03:00
..
2024-07-03 15:52:22 -03:00

controllers

API request processing

root.py:

API root request

subclouds.py

Controller for all the subcloud related requests

restcomm.py:

common functionality used in API