Open miesi opened 3 years ago
It is possible to define the layer3domain when looking for free IPs.
INFO - Result for list ips 10.23.24.0/24
ip status ptr_target comment layer3domain
10.23.24.0 Available default
10.23.24.0 Available one
10.23.24.0 Available two
10.23.24.1 Available default
10.23.24.1 Available one
10.23.24.1 Available two
10.23.24.2 Available default
10.23.24.2 Available one
10.23.24.2 Available two
vs
# /tmp/venv/bin/ndcli list ips 10.23.24.0/24 layer3domain default
INFO - Result for list ips 10.23.24.0/24
ip status ptr_target comment
10.23.24.0 Available
10.23.24.1 Available
10.23.24.2 Available
Seeing how list containers
was changed in #125 to also list all containers on request, I would say that this is the correct behaviour.
With #159 being implemented and committed, this probably changes how the output is actually working. Per default you should now only see the IPs in your default layer3domain. If you haven't set any, then the output is still correct and shows everything.
But when setting the default layer3domain we should still be able to view the content of all layer3domains, therefore we should add the all keyword here too in the same way we did in #125. That way I can still view all IPs in all layer3domains, even though I have a default layer3domain set in the config.
Example: The following layer3domains are defined:
The following containers are defined
The current implementation of {{list ips <> status free}} reports this
this is unhandy.
3 different states of "free"
So {{list ips <> status usable}}
A pool column would be helpful.