diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-27 17:43:51 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-27 17:57:21 -0700 |
commit | 49a1b59f935674c35019c7f6bd8b8a5a83dd619c (patch) | |
tree | 0a66f31700edf8e5b802ad2594cc48f6ff4b218b /zebra/zebra_vty.c | |
parent | 8a97c5ec54c94c8dc75a576968fddf52fc5b2d1f (diff) | |
download | quagga-49a1b59f935674c35019c7f6bd8b8a5a83dd619c.tar.bz2 quagga-49a1b59f935674c35019c7f6bd8b8a5a83dd619c.tar.xz |
Allow recursive route with any nexthop
Bug 4228
Mark static routes as internal. By marking static routes as internal,
they get re-evaluated as possible recursive routes.
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r-- | zebra/zebra_vty.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index ecb5d10a..d4e3a4ae 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -87,6 +87,9 @@ zebra_static_ipv4 (struct vty *vty, int add_cmd, const char *dest_str, return CMD_SUCCESS; } + /* Mark static routes as internal so they get evaluated as recursive */ + SET_FLAG (flag, ZEBRA_FLAG_INTERNAL); + /* Route flags */ if (flag_str) { switch(flag_str[0]) { |