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

Recognise Open vSwitch as a bridge #519

Open
0n-s opened this issue Jun 26, 2022 · 6 comments
Open

Recognise Open vSwitch as a bridge #519

0n-s opened this issue Jun 26, 2022 · 6 comments
Labels

Comments

@0n-s
Copy link

0n-s commented Jun 26, 2022

Bug description

Bridges made with Open vSwitch are not recognised as bridges in transmitted LLDPDUs.

Steps to reproduce the problem

  1. Create a bridge with Open vSwitch.
  2. Run lldpd on said bridge.

Expected outcome

lldpd should indicate that the interface is a bridge.

Current outcome

[lldpcli] # show interfaces
-------------------------------------------------------------------------------
LLDP interfaces:
-------------------------------------------------------------------------------
Interface:    br0
  Administrative status: RX and TX
  Chassis:
    ChassisID:    mac X
    SysName:      badam
    SysDescr:     Gentoo Linux
    MgmtIP:       X
    MgmtIface:    8
    MgmtIP:       X
    MgmtIface:    8
    Capability:   Bridge, off
    Capability:   Router, on
    Capability:   Wlan, off
    Capability:   Station, off
  Port:
    PortID:       mac X
    PortDescr:    br0
  TTL:          128
-------------------------------------------------------------------------------
@0n-s 0n-s added the bug label Jun 26, 2022
@vincentbernat
Copy link
Member

What's the output of ip -d l l dev br0?

@0n-s
Copy link
Author

0n-s commented Jul 8, 2022

7: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1024
    link/ether [redacted] brd ff:ff:ff:ff:ff:ff promiscuity 1 minmtu 68 maxmtu 65535
    openvswitch addrgenmode stable_secret numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 gro_max_size 65536

@vincentbernat
Copy link
Member

Does the bridge link works? It should display the links attached to br0.

@0n-s
Copy link
Author

0n-s commented Jul 8, 2022

No (empty output). Open vSwitch isn't a Linux bridge (bridge.ko), mostly works in userspace, & has an entirely different API than Linux bridges in terms of configuration (uses its own toolset & not iproute2). The one piece of Open vSwitch that is often* integrated into the OS is the datapath (hence br0 having type openvswitch).

* For the scope of this bug I'm not considering the userspace-only mode of Open vSwitch that is implemented with TAP devices, & hence probably much harder to properly detect

@vincentbernat
Copy link
Member

I remember that OpenvSwitch has a forked version of lldpd builtin. Is there a specific reason you do not rely on it?

@0n-s
Copy link
Author

0n-s commented Jul 8, 2022

AFAIK this is not a full implementation of LLDP & is merely focused on providing enough support for it to work with SPBM networks.

C.f. https://www.openvswitch.org/support/dist-docs-2.5/ovs-vswitchd.conf.db.5.html (section "AutoAttach TABLE").

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

No branches or pull requests

2 participants