-
Notifications
You must be signed in to change notification settings - Fork 380
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
Comments
Out-of-curiosity, why did you close this? It looks like a serious issue
that should be fixed (although I won't have time to look into this in
the next few weeks, I'd be happy to review a pull request).
|
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! |
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!
It would still be better if we managed to handle bridges aliases correctly too. Does that work with the newer version? If it is not doable, we should at least add a comment warning against aliases for bridges in the sample UCI file (there is nothing about it currently).
|
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. |
I'm not sure I follow you: we call network_get_device in babeld.init.
https://github.com/openwrt-routing/packages/blob/master/babeld/files/babeld.init#L178
And we claim to support aliases:
https://github.com/openwrt-routing/packages/blob/master/babeld/files/babeld.config#L31
Maybe zorun@ can provide more inisght into this?
|
I've just checked with config/network:
and config/babeld:
Does not work and writes "interface wan" to the generated config file. |
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. |
It is not possible to use a bridge as an interface in babeld (when configured using UCI).
A simple
will resolve
wan
to the first interface of that bridge (in my caseeth0
) as opposed tobr-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:
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?The text was updated successfully, but these errors were encountered: