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

Allow for VLAN name to be used for IP address allocation in host add. #150

Open
terjekv opened this issue Sep 3, 2021 · 2 comments
Open

Comments

@terjekv
Copy link
Collaborator

terjekv commented Sep 3, 2021

For both maintenance of IP ranges and ease of use, being able to do host add -ip my-network -mac xx:xx:xx:xx:xx myboks.dns would be really nice.

@oyvindkolbu oyvindkolbu transferred this issue from unioslo/mreg Sep 3, 2021
@oyvindkolbu
Copy link
Collaborator

Possible better with a -vlan name or -vlanid 1234? What about vlan with both ipv4 and ipv6? Assign both? Vlan with multiple ipv4/ipv6-networks could just give an error and ask to be more explicit?

The actual coding is pretty trivial.

@terjekv
Copy link
Collaborator Author

terjekv commented Sep 3, 2021

If the VLAN IDs are duplicated between networks for both IPv4 and IPv6, one possible set of semantics are:

-vlanid 200, -vlanid 200:ipv4, and -vlanid 200:ipv6. The first one returns both addresses. -vlan name is certainly also cleaner than reusing -ip.

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

2 participants