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

Fix ifconfig parsing error #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jiuka
Copy link

@jiuka jiuka commented Oct 9, 2024

The output from ifconfig interprets the lagg options flags parameter as the interfaces flags. This leads to ignoring the lagg interfaces.

lagg0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4800028<VLAN_MTU,JUMBO_MTU,NOMAP>
        capabilities=4f507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,NETMAP,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
        ether f4:90:ea:01:25:ee
        inet6 fe80::f690:eaff:fe01:25ee%lagg0 prefixlen 64 scopeid 0x11
        laggproto lacp lagghash l2
        lagg options:
                flags=0<>
                flowid_shift: 16
        lagg statistics:
                active ports: 2
                flapping: 0
        lag id: [(8000,F4-90-EA-01-25-EE,0A28,0000,0000),
                 (1000,AA-AA-AA-AA-AA-AA,0023,0000,0000)]
        laggport: ice0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> state=3d<ACTIVITY,AGGREGATION,SYNC,COLLECTING,DISTRIBUTING>
                [(8000,F4-90-EA-01-25-EE,0A28,8000,0005),
                 (1000,AA-AA-AA-AA-AA-AA,0023,8000,0021)]
        laggport: ice1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> state=3d<ACTIVITY,AGGREGATION,SYNC,COLLECTING,DISTRIBUTING>
                [(8000,F4-90-EA-01-25-EE,0A28,8000,0006),
                 (1000,AA-AA-AA-AA-AA-AA,0023,8000,0041)]
        groups: lagg
        media: Ethernet autoselect
        status: active
        supported media:
                media autoselect
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>

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

Successfully merging this pull request may close these issues.

1 participant