On 2013-05-22 3:57 AM, Ken Bantoft (SI) wrote: > > * Note: Posted on the forum, but no replies after a few days so asking > here * > > > I'm in the process of adding support for ISDN data (via capi), and have a > question about netifd. > > Since it's ppp over CAPI, all the lower level stuff works fine (I can call > pppd from CLI and it connects nicely) however I'm trying to integrate it > into OpenWRT nicely. LuCI stuff is completed, and I've modified > /lib/netifd/proto/ppp.sh to handle _pppoi_ calls similar to _pppoe_. My > problem is I can't bring the interfaces up with ifup/ifdown." > > > ubus call network.interface.ISDN status reports: > > "errors": [ > { > "subsystem": "interface", > "code": "NO_DEVICE" > } > ] > > When using ISDN with the CAPI drivers, we have /dev/capi as a device, but > nothing else - setting that as the device: > > config interface 'ISDN' > option proto 'pppoi' > option username 'ispuser' > option password 'isppassword' > option number '408#######' > option device '/dev/capi' > > doesn't seem to help. Can someone point me at the right direction as to > what else I need to change? I've looking through the 3g and pppoe code, > but those both have an underlying physical interface (/dev/ttyUSB# or > eth0), whereas CAPI doesn't really have the equivalent. The same is also needed by the plain ppp protocol which uses a serial interface. To get netifd to stop looking for a physical device, this is done in the init_config callback:
proto_ppp_init_config() { proto_config_add_string "device" ppp_generic_init_config no_device=1 available=1 } Did you set no_device=1 and available=1 in your callback? - Felix _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel