interface: support "device" attribute and deprecate "ifname"
authorRafał Miłecki <rafal@milecki.pl>
Tue, 25 May 2021 15:17:26 +0000 (17:17 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Wed, 26 May 2021 05:52:27 +0000 (07:52 +0200)
commit899c2a4520526d43113f73cf673f20e2486a40fb
tree9c4b0824f4ecaf814d0b6ccdc3cc458caadc487a
parent62e3cb52941032e13a8ad421454b9bc93382ef75
interface: support "device" attribute and deprecate "ifname"

Interfaces need to be assigned to devices. For that purpose a "device"
option should be more accurate than "ifname" one.

For backward compatibility old option remains supported too.

Config example:

config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'

config interface 'lan'
option device 'br-lan'
option proto 'static'

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
interface.c
interface.h