ionos-cloud/dim

history ipblock shows history over all layer3domains

Closed this issue · 1 comments

When viewing the history of a subnet, container or IP the history is shown from all layer3domains. When working with overlapping networks, this can cause some confusion.

timestamp                  user  tool   originating_ip objclass name        action
2022-01-18 12:12:46.628657 admin native 127.0.0.1      ipblock  10.0.5.0/24 set_attr pool=b in layer3domain b
2022-01-18 12:12:46.617930 admin native 127.0.0.1      ipblock  10.0.5.0/24 created in layer3domain b
2022-01-18 12:12:46.443855 admin native 127.0.0.1      ipblock  10.0.5.0/24 set_attr pool=a in layer3domain a
2022-01-18 12:12:46.428481 admin native 127.0.0.1      ipblock  10.0.5.0/24 created in layer3domain a

Steps to repproduce:

ndcli create layer3domain a type test
ndcli create layer3domain b type test
ndcli create container 10.0.0.0/8 layer3domain a
ndcli create container 10.0.0.0/8 layer3domain b
ndcli create pool a layer3domain a
ndcli create pool b layer3domain b
ndcli modify pool a add subnet 10.0.5.0/24
ndcli modify pool b add subnet 10.0.5.0/24 --allow-overlap

An optional argument layer3domain would be nice to limit the output to that single layer3domain.

This is fixed