napalm
napalm copied to clipboard
Proposed New Getter: `get_lag_interfaces`
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...