ionos-cloud / dim

DNS and IP Management
MIT License
48 stars 30 forks source link

[L3D] layer3domain argument position in list containers/ show container confusing #130

Open miesi opened 3 years ago

miesi commented 3 years ago
ndcli show container 10.0.0.0/8 layer3domain default
ndcli list containers layer3domain default 10.0.0.0/8

The command lines in router OSes always have the vrf as last argument.

Please change list containers to

ndcli show container 10.0.0.0/8 layer3domain default
ndcli list containers 10.0.0.0/8 layer3domain default
Srudush commented 2 years ago

This is something we can't fix. The subnet in list containers is an optional argument whereas the layer3domain isn't. Sadly it has to be kept that way. What we could do is introduce ndcli show layer3domain default container 10.0.0.0/8 or ndcli list layer3domain default containers or something like.

miesi commented 2 years ago

Thanks for the analysis... This should make it into a FAQ document "why it is how it is"