diff options
author | Susant Sahani <susant@redhat.com> | 2014-11-15 08:47:16 +0530 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-04 11:13:32 +0100 |
commit | e1853b00ef7cb56cafd908327dd44b3ab48b402c (patch) | |
tree | 87b635162a3b23b09439f2d02ece5b8db3fc9ae9 /src/network/networkd.h | |
parent | 85a8eeee36b57c1ab382b0225fa9a87525bbeee9 (diff) |
networkd: Add bridge port path cost
This patch add support to specify path cost of the
bridge port to be configured via conf file.
Exampe: conf
file: br.netdev
[NetDev]
Name=br-test
Kind=bridge
file: br.network
[Match]
Name=em1
[Network]
Bridge=br-test
[BridgePort]
Cost=332
bridge link
2: em1 state UP : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master
br-test state disabled priority 32 cost 332
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index c0d32c4a6b..1297ef98a7 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -106,6 +106,8 @@ struct Network { bool dhcp_server; + unsigned cost; + LIST_HEAD(Address, static_addresses); LIST_HEAD(Route, static_routes); |