]> git.proxmox.com Git - mirror_frr.git/commit - ripd/rip_routemap.c
lib, ospfd, ripd, ripngd: Fix 'set metric'
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 29 Aug 2017 18:47:35 +0000 (14:47 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 29 Aug 2017 19:08:13 +0000 (15:08 -0400)
commit6a74c5f9db107b7c71705a691b82830a658a91fb
tree390f681cc05e872667e33f3d5247d59f56725b75
parent458d8cd2571d9b37d162e327128d71b148bd5438
lib, ospfd, ripd, ripngd:  Fix 'set metric'

There are a variety of cli's associated with the
'set metric ...' command.  The problem that we
are experiencing is that not all the daemons
support all the varieties of the set metric
and the returned of NULL during the XXX_compile
phase for these unsupported commands is causing
issues.  Modify the code base to only return
NULL if we encounter a true parsing issue.
Else we need to keep track if this metric
applies to us or not.

In the case of rip or ripngd if the metric
passed to us is greater than 16 just turn
it internally into a MAX_METRIC.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/routemap.h
ospfd/ospf_routemap.c
ripd/rip_routemap.c
ripngd/ripng_routemap.c