From 34acebed04e521c0fa2adba5371b06ac192d0078 Mon Sep 17 00:00:00 2001 From: Thomas Mieslinger Date: Thu, 7 Apr 2022 16:21:51 +0200 Subject: [PATCH] moved testcase to todo and modifed for #231 list ips --- .../t/{ => todo}/layer3domain-list-ips.t | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) rename dim-testsuite/t/{ => todo}/layer3domain-list-ips.t (77%) diff --git a/dim-testsuite/t/layer3domain-list-ips.t b/dim-testsuite/t/todo/layer3domain-list-ips.t similarity index 77% rename from dim-testsuite/t/layer3domain-list-ips.t rename to dim-testsuite/t/todo/layer3domain-list-ips.t index 230fdf09..0158518d 100644 --- a/dim-testsuite/t/layer3domain-list-ips.t +++ b/dim-testsuite/t/todo/layer3domain-list-ips.t @@ -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 @@ -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 @@ -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