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

[RFE] Safeguard from defining two hosts with the same data #444

Open
kambiz-aghaiepour opened this issue Aug 21, 2023 · 0 comments
Open

Comments

@kambiz-aghaiepour
Copy link
Contributor

kambiz-aghaiepour commented Aug 21, 2023

For all versions, I don't believe there is currently anything that would prohibit from having the following conditions met:

quads-cli --host host1.example.com --interface-name em1 --interface-mac <MAC1> --interface-ip <IP1> --interface-port <PORT1>

and

quads-cli --host host2.example.com --interface-name em1 --interface-mac <MAC2> --interface-ip <IP2> --interface-port <PORT2>

The following conditions need to be met:

When defining interface-mac for host2, ensure MAC2 has not been previously associated with another interface (i.e. if MAC2 == MAC1 for all other interfaces across all existing hosts, report an error and disallow defining the interface where the MAC address is currently defined elsewhere.

Ensure that the IP2+PORT2 combination is unique and has not been previously used for another host (two interfaces cannot be connected to the same switch port).

@sadsfae sadsfae added this to To Do in 1.1 and 2.0 Series via automation Sep 13, 2023
@sadsfae sadsfae added this to the 2.0 Series - Bowie milestone Sep 13, 2023
@sadsfae sadsfae changed the title Safeguard from defining two hosts with the same data [RFE] Safeguard from defining two hosts with the same data Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants