Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698388 - net-misc/netifrc: preup() function does not work on bridges as expected
Summary: net-misc/netifrc: preup() function does not work on bridges as expected
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-23 14:31 UTC by Stefan00
Modified: 2020-03-10 08:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan00 2019-10-23 14:31:13 UTC
It seems that within netifrc the preup() function does not work properly on bridges if the command issued within thre preup() function needs to address the bridge interface - it’s not existing (yet). 

non-working example:

#/etc/conf.d/net
config_br0="192.168.0.24 netmask 255.255.255.0 brd 192.168.0.255" 
...
preup() {
  ip token set ::24 dev br0
  return 0
}

Looking through the code of netirfc/net/bridge.sh I guess that may even be by design? It's not clear if it's a bug or not documented. 

It would be however nice to have that functionality.

Reproducible: Always
Comment 1 Sergey Popov gentoo-dev 2020-03-10 08:19:35 UTC
As i know, preup() works in such way for any non-physical interfaces - at least for VXLAN and L2TPv3 tunnel interfaces. If you need to tweak bridge properties, your best bet would be postup()