Skip to content

Commit

Permalink
moved testcase to todo and modifed for #231 list ips
Browse files Browse the repository at this point in the history
  • Loading branch information
miesi-ionos committed Apr 7, 2022
1 parent 195ed74 commit 34acebe
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ ip status ptr_target comment
10.0.0.7 Available
10.0.0.8 Available
10.0.0.9 Available

$ ndcli list ips 10.0.0.0/24
INFO - Result for list ips 10.0.0.0/24
WARNING - More results available
Expand All @@ -113,6 +114,36 @@ ip status ptr_target comment layer3domain
10.0.0.4 Available default
10.0.0.4 Available two

$ ndcli list ips 10.0.0.0/24 -a ip,status,pool,layer3domain
INFO - Result for list ips 10.0.0.0/24
WARNING - More results available
ip status pool layer3domain
10.0.0.0 Reserved p default
10.0.0.0 Reserved p2 two
10.0.0.1 Available p default
10.0.0.1 Available p2 two
10.0.0.2 Available p default
10.0.0.2 Static p2 two
10.0.0.3 Available p default
10.0.0.3 Available p2 two
10.0.0.4 Available p default
10.0.0.4 Available p2 two

$ ndcli list ips 10.0.0.0/24 -a status,pool
INFO - Result for list ips 10.0.0.0/24
WARNING - More results available
status pool
Reserved p
Reserved p2
Available p
Available p2
Available p
Static p2
Available p
Available p2
Available p
Available p2

$ ndcli list ips 10.0.0.0/24 layer3domain default
INFO - Result for list ips 10.0.0.0/24
WARNING - More results available
Expand All @@ -127,3 +158,11 @@ ip status ptr_target comment
10.0.0.7 Available
10.0.0.8 Available
10.0.0.9 Available

$ ndcli modify pool p2 remove subnet 10.0.0.0/24 -f -c q
$ ndcli delete pool p2 -q
$ ndcli delete container 10.0.0.0/8 layer3domain two -q
$ ndcli delete layer3domain two -q
$ ndcli modify pool p remove subnet 10.0.0.0/24 -f -c -q
$ ndcli delete pool p -q
$ ndcli delete container 10.0.0.0/8 -q

0 comments on commit 34acebe

Please sign in to comment.