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

Fetch interface type from ietf interface yang model #4

Open
frederic-loui opened this issue Apr 17, 2024 · 1 comment
Open

Fetch interface type from ietf interface yang model #4

frederic-loui opened this issue Apr 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@frederic-loui
Copy link
Member

Fetch interface type from ietf interface yang model

For now when we configure holo via holo-cli, interface type is mandatory and entered in a free form.
However, type seems to be a value from ietf-interfaces or ietf-if-extensions yang model

It would be ideal to be able to select interface type from a discrete list built from ietf-interfaces or ietf-if-extensions or other yang model

This will enforce interface configuration consistency

@rwestphal
Copy link
Member

Absolutely. It'd be awesome if we could use the TAB key to choose from different interface types.

This could be extended to all YANG leaves whose type is identityref (e.g. control-plane protocol types).

As a first step, we should investigate if libyang supports iterating over all identities of a specified type. Once confirmed, we can use this capability to generate auto-completion suggestions.

I'll transfer this issue to the holo-cli repo.

@rwestphal rwestphal added the enhancement New feature or request label Apr 18, 2024
@rwestphal rwestphal transferred this issue from holo-routing/holo Apr 18, 2024
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

2 participants