chiark / gitweb /
networkd: make metric of routes configurable
authorSusant Sahani <susant@redhat.com>
Thu, 10 Jul 2014 17:39:58 +0000 (23:09 +0530)
committerTom Gundersen <teg@jklm.no>
Mon, 14 Jul 2014 09:39:20 +0000 (11:39 +0200)
commit5d8e593dce074bff966fc0a46579c61b4f3bc33a
tree6e43e5a00d743b152da56080011f8333453325d4
parent5bdd314cd9954b605542571490738326f007c46c
networkd: make metric of routes configurable

Now route metric can be configuted via conf file:

example conf:

[Match]
Name=em1

[Route]
Gateway=192.168.1.12
Metric=10

Test:
ip route output
default via 192.168.1.12 dev em1 metric 10

[tomegun: squash TODO update and reword man page a bit]
TODO
man/systemd.network.xml
src/network/networkd-network-gperf.gperf
src/network/networkd-route.c
src/network/networkd.h