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

Add config option to strip domain part from host/vm name #29

Closed
adambarnett52 opened this issue Jan 25, 2021 · 6 comments
Closed

Add config option to strip domain part from host/vm name #29

adambarnett52 opened this issue Jan 25, 2021 · 6 comments
Labels
awaiting reply Awaiting reply from issue owner
Milestone

Comments

@adambarnett52
Copy link

Hi,

is there a way to drop the FQDN of a device, for example device1.blah.com becomes devcie1

Thanks
Adam

@bb-Ricardo
Copy link
Owner

Hi Adam,

sure, but why not rename the devices in VMWare if the name doesn't fit?

@adambarnett52
Copy link
Author

adambarnett52 commented Jan 25, 2021 via email

@bb-Ricardo
Copy link
Owner

We could add config options like

strip_vm_domain_name = True
strip_host_domain_name = True

Then you would be able to switch it on/off. But this would apply for all objects synced from this source.

@adambarnett52
Copy link
Author

adambarnett52 commented Jan 25, 2021 via email

@bb-Ricardo bb-Ricardo changed the title Drop FQDN Add config option to strip domain part from host/vm name Feb 2, 2021
@bb-Ricardo
Copy link
Owner

can you test the branch "feature/strip-domain-from-name" and see if this works now?

You need to add/set the config option in your current config:

# strip domain part from host name before syncing device to NetBox
#strip_host_domain_name = False
# strip domain part from VM name before syncing VM to NetBox
#strip_vm_domain_name = False

@bb-Ricardo bb-Ricardo added the awaiting reply Awaiting reply from issue owner label Feb 4, 2021
@adambarnett52
Copy link
Author

perfect thanks

@bb-Ricardo bb-Ricardo added this to the 1.1.0 milestone Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reply Awaiting reply from issue owner
Projects
None yet
Development

No branches or pull requests

2 participants