diff options
author | Susant Sahani <susant@redhat.com> | 2014-07-10 23:09:58 +0530 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-07-14 11:39:20 +0200 |
commit | 5d8e593dce074bff966fc0a46579c61b4f3bc33a (patch) | |
tree | 6e43e5a00d743b152da56080011f8333453325d4 /src/network/networkd.h | |
parent | 5bdd314cd9954b605542571490738326f007c46c (diff) |
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]
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 9132e70217..aca3b8dd24 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -467,6 +467,9 @@ int config_parse_destination(const char *unit, const char *filename, unsigned li const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); +int config_parse_route_priority(const char *unit, const char *filename, unsigned line, + const char *section, unsigned section_line, const char *lvalue, + int ltype, const char *rvalue, void *data, void *userdata); /* Address */ int address_new_static(Network *network, unsigned section, Address **ret); int address_new_dynamic(Address **ret); |