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

Proposed New Getter: get_lag_interfaces #2027

Open
aj-cruz opened this issue Jan 27, 2024 · 2 comments
Open

Proposed New Getter: get_lag_interfaces #2027

aj-cruz opened this issue Jan 27, 2024 · 2 comments

Comments

@aj-cruz
Copy link

aj-cruz commented Jan 27, 2024

On a couple projects now I've had to get port-channel information from devices including a list of port-channel interfaces, their members, and the status of the member ports.

It appears none of the existing getters provide this so I've had to resort to using the Genie parser (they were all Cisco devices).

It looks like this can easily be done with NXOS, IOS, & EOS and get pretty standardized data, but I don't have a JUNOS device yet to check capabilities with.
My thoughts are output something like this:

'<lag_interface>': {
    'status': '<up/down>',
    'protocol': '<lag_protocol>',
    'members': {
        '<member_interface>': {
            'status': '<up/down>',
            'flags': [<all_interface_flags>]
        }
    }
}

Worth it or am I crazy?
I'd be happy to work on the project myself if I can figure out how to get this vJunos-switch going...

@mirceaulinic
Copy link
Member

@aj-cruz this sounds good to me and indeed a pretty simple win. If you implement this on NXOS, IOS, & EOS, I may be able to implement on Junos (and maybe on XR too) to have a decent coverage.

Any thoughts agsinst doing this @ktbyers @bewing?

@bewing
Copy link
Member

bewing commented Jul 16, 2024

Usual caveats: Is MLAG supported, what does the openconfig model for port-channels look like, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants