Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSP to DIM #230

Closed
miesi opened this issue Apr 5, 2022 · 2 comments
Closed

GSP to DIM #230

miesi opened this issue Apr 5, 2022 · 2 comments

Comments

@miesi
Copy link
Contributor

miesi commented Apr 5, 2022

GSP wants to use DIM as a source for which company "owns" which IP Space for user rights validation.

So for public IPs (CIDR not listed in LAYER3DOMAIN in dim.cfg) a "all" would help.

ndcli show ip 87.106.1.1 layer3domain all

This should show

created:2006-01-21 18:09:09
domain:0x003005g83022
ip:87.106.1.1
layer3domain:default
mask:255.255.255.0
modified:2012-05-08 11:16:30
modified_by:u
pool:MORE-BAP-HOLDING
reverse_zone:1.106.87.in-addr.arpa
status:Static
subnet:87.106.1.0/24
test:our 761 ping box

For possibly overlapping space an error needs to be returned.

alternatively the syntax for multiple ips returned could read


$ ndcli list ips 87.106.1.1/32 -t ip,status,pool,layer3domain
INFO - Result for list ips 87.106.1.1/32
ip         status    pool             layer3domain
87.106.1.1 Available                  51862-global
87.106.1.1 Available                  6724-global
87.106.1.1 Static    MORE-BAP-HOLDING default
87.106.1.1 Available                  dummy

@miesi
Copy link
Contributor Author

miesi commented Apr 5, 2022

Already works

$ ndcli list ips 87.106.1.1/32 -a ip,status,pool,layer3domain
INFO - Result for list ips 87.106.1.1/32
ip         status    pool             layer3domain layer3domain
87.106.1.1 Available                  51862-global 51862-global
87.106.1.1 Available                  6724-global  6724-global
87.106.1.1 Static    MORE-BAP-HOLDING default      default
87.106.1.1 Available                  dummy        dummy

@miesi
Copy link
Contributor Author

miesi commented Apr 7, 2022

Beautification of columns printed tracked in #231

@miesi miesi closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant