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

babeld: unable to specify bridge as interface #131

Open
tcatm opened this issue Aug 14, 2015 · 7 comments
Open

babeld: unable to specify bridge as interface #131

tcatm opened this issue Aug 14, 2015 · 7 comments

Comments

@tcatm
Copy link
Contributor

tcatm commented Aug 14, 2015

It is not possible to use a bridge as an interface in babeld (when configured using UCI).

A simple

config interface 'wan'

will resolve wan to the first interface of that bridge (in my case eth0) as opposed to br-wan. This, obviously, breaks in funny ways.

The sample UCI config states to use the full interface name instead to avoid this mess, like this:

config interface 'br-wan'

Well, that doesn't work either. A dash is not allowed by UCI in section names.

Can we restructure the config to make ifname an option of the configuration section?

@tcatm tcatm closed this as completed Aug 16, 2015
@kerneis
Copy link
Contributor

kerneis commented Aug 17, 2015 via email

@tcatm
Copy link
Contributor Author

tcatm commented Aug 17, 2015

Oh, for some reason I was using a very old version of the babeld package. Newer versions do have this exact bug fixed in exactly the way I suggested. Sorry!

@kerneis
Copy link
Contributor

kerneis commented Aug 17, 2015 via email

@tcatm
Copy link
Contributor Author

tcatm commented Aug 17, 2015

The current init-script does not handle aliases at all and accepts raw interface names only. I'm not sure whether that's a good solution but it works fine with the way babeld handles interfaces.

@kerneis
Copy link
Contributor

kerneis commented Aug 17, 2015 via email

@tcatm
Copy link
Contributor Author

tcatm commented Aug 18, 2015

I've just checked with config/network:

config interface wan
   type bridge
   ifname eth0.1

and config/babeld:

config interface
    config ifname wan

Does not work and writes "interface wan" to the generated config file.

@zorun
Copy link
Contributor

zorun commented Aug 22, 2015

This looks related to #52 (comment)

AFAICT, logical interface name resolution never worked very reliably. We should either find a new method, or drop support for logical interface name altogether.

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

No branches or pull requests

3 participants