-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Service Templates #1591
Comments
Shouldn't services be a discrete object class (like a Site or Device Type), attachable to a IP (or multiple/all IPs) on a device, instead of being defined on a device-by-device basis? It's a bit silly to keep defining "TCP/22" as "SSH" on multiple devices for instance... Interested in services due to integration with Nornir (https://github.com/nornir-automation/nornir) using Netbox as an inventory provider; Nornir wants a "port" (TCP port to connect to) defined as one of its host attributes. The thinking is that perhaps we can use Netbox service attachment to the default IP for this. |
It would be handy to implement the templates as generic service template, that we can assign to VMs, thus, enabling users to define the template services themselves, and attach them to the type of device later on. (VMs, switches, sd-wan appliances, etc.) |
A minor input but this should be assignable to anything with an IP. I currently have an integration issue as well. We use services to indicate application spaces hosts by nodes. NetBox inventory for ansible inventory currently uses the service name to group on. SInce this is a free-form field and not a slug or some other object, this means we're having to rely on strict enforcement of naming for service names. A service template should include a slug field for uniform grouping and filtering purposes. |
Services aren't defined this way because it quickly becomes burdensome when you need to run a service on a nonstandard port. For example, you might run HTTP on tcp/80, or tcp/8000, or tcp/8080, etc. |
Closes #1591: Service templates
Issue type
[x] Feature request
[ ] Bug report
[ ] Documentation
Environment
Description
Currently, you can assign a Service (TCP/UDP + Port Number) to a device/VM by hand.
It would be nice to have some sort of "Service Template" where you could assign a name to one (or more?) TCP/UDP ports and attach that to a VM. That would make sure that the name is the same for all VMs/devices and that no typos sneak in.
For example you could define a service template "iSCSI" with TCP Port 3260, and another one called "CIFS file services" with TCP Ports 139 and 445. Some predefined ones could also be nice ("HTTP", "HTTPS", "SSH", "NFS", "CIFS", ...?)
The text was updated successfully, but these errors were encountered: