dropbox / nsot

Network Source of Truth is an open source IPAM and network inventory database
https://nsot.readthedocs.io
Other
399 stars 66 forks source link

Host names restrictions #348

Open mmarin11 opened 5 years ago

mmarin11 commented 5 years ago

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 commented 5 years ago

Currently it looks like NSoT supports alphanumeric with dashes between.

e.g: https://github.com/dropbox/nsot/blob/62f5a498b8c5a3424c380dcc130936735e1afb47/nsot/conf/settings.py#L398