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

Host names restrictions #348

Open
mmarin11 opened this issue Dec 14, 2018 · 1 comment
Open

Host names restrictions #348

mmarin11 opened this issue Dec 14, 2018 · 1 comment

Comments

@mmarin11
Copy link

Dear NSOT community. Im trying to add devices to NSOT and the hostname have a naming convention rules like

TIJ-S5320.36C.EI.28S.DC-SW00294

But the hostname is not accepted by NSOT and I get an 400 error back

400 - {"name":"Invalid name: u'TIJ-S5320.36C.EI.28S.DC-SW00294'."}

Is there a restriction regarding host names? The name does not contain any blanks or special characters

Thank you

@therouterninja
Copy link

Currently it looks like NSoT supports alphanumeric with dashes between.

e.g:

DEVICE_NAME = re.compile(r"^([A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]|[A-Za-z0-9])$")

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