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

[ENHANCEMENT] Add jail interface(s) name to host ifconfig description #817

Open
2Belette opened this issue Jan 17, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@2Belette
Copy link

Is your feature request related to a problem? Please describe.
Related to the long conversation here #786 , @tschettervictor is working on adding a PR for adding description on host ifconfig to provide related jail name. This is particularly important if -n is not used as this would leave the default "epair" name so the context would be lost without doing some manual correlation between jail.conf and host ifconfig.
Adding the description is already planned with or without the future -n option.
This enhancement request is to enhance the future description feature.

Describe the solution you'd like
It would be nice to add the interface name of the jail (jail side) to the description.
This is particularly interesting for jails with multiple interfaces.
Description should be simple and easily grepable/used into scripts.
As an example (to be discussed) : description: interface vnet0 from jail test
Another interface from the same test jail would be : description: interface vnet1 from jail test

I don't know if it is feasible, but if the user is changing the interface name (from jail.conf, like exec.prestart += "ifconfig epair10b up name vlan100"; or directly from the jail rc.conf with ifconfig_e10b_test_name="vlan100") to something else after the jail creation it would be nice to reflect that to the description like : description interface vlan100 from jail test

Describe alternatives you've considered
N/A

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant