mirror_frr/lib
Philippe Guibert 0c2bac3880 lib: a vrf is searched first by its name, than its vrf id
Because at startup, remote daemons attempt to create default VRF,
the VRF_ID may be set to unknown. In that case, an event will be
triggered later by zebra to inform remote daemon that the vrf id of that
VRF has changed to valid value. In that case, two instances of default
VRF must not be created. By looking first at vrf name, this avoids
having two instances.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2018-04-13 16:40:32 +02:00
..
.gitignore *: globally ignore clippy-generated source 2018-03-09 17:52:15 -05:00
agentx.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
bfd.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
bfd.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
bitfield.h *: reindent 2017-07-17 14:04:07 +02:00
buffer.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
buffer.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
checksum.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
checksum.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
clippy.c *: reindent 2017-07-17 14:04:07 +02:00
clippy.h lib: clippy the assistant 2017-06-14 19:29:23 +02:00
command_graph.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
command_graph.h lib: add CLI token for 48-bit mac addresses 2017-08-11 12:42:01 -04:00
command_lex.l lib: fix more warnings on *BSD 2018-02-02 16:31:20 -02:00
command_match.c lib, bgpd: fixup use of of CMD_ARGC_MAX 2018-01-11 11:31:45 -05:00
command_match.h *: reindent 2017-07-17 14:04:07 +02:00
command_parse.y lib: add CLI token for 48-bit mac addresses 2017-08-11 12:42:01 -04:00
command_py.c lib: Fix small memory leak when using command_py.c 2017-10-17 09:22:41 -04:00
command.c pbrd: Add PBR to FRR 2018-04-06 13:22:43 -04:00
command.h Merge pull request #1989 from qlyoung/defpy-hidden 2018-04-11 20:12:25 -04:00
compiler.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
csv.c lib: Fix gcc 7 warning 'error: ‘fld’ may be used uninitialized in this function' 2017-12-05 00:30:29 -08:00
csv.h *: reindent 2017-07-17 14:04:07 +02:00
debug.c lib: add mt-safe debugging facilities 2018-03-01 15:01:25 -05:00
debug.h lib: add convenience debugging macros 2018-03-12 11:17:02 -04:00
defun_lex.l lib, python: DEFPY_ATTR, DEFPY_HIDDEN 2018-04-10 12:19:03 -04:00
distribute.c *: reindent 2017-07-17 14:04:07 +02:00
distribute.h *: reindent 2017-07-17 14:04:07 +02:00
event_counter.c *: reindent 2017-07-17 14:04:07 +02:00
event_counter.h *: reindent 2017-07-17 14:04:07 +02:00
ferr.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
ferr.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
fifo.h *: reindent 2017-07-17 14:04:07 +02:00
filter.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
filter.h *: reindent 2017-07-17 14:04:07 +02:00
freebsd-queue.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
frr_pthread.c lib: frr_pthread int size nits 2018-03-09 11:20:53 -05:00
frr_pthread.h lib: frr_pthread int size nits 2018-03-09 11:20:53 -05:00
frr_zmq.c lib: Address ZMQ lib TODOs 2017-11-23 12:50:27 +01:00
frr_zmq.h lib: Address ZMQ lib TODOs 2017-11-23 12:50:27 +01:00
frratomic.h lib: add atomic bitwise OR, AND 2018-02-28 16:50:49 -05:00
getopt1.c *: reindent 2017-07-17 14:04:07 +02:00
getopt.c Revert "*: reindent pt. 2" 2017-07-22 14:52:33 +02:00
getopt.h *: reindent 2017-07-17 14:04:07 +02:00
gitversion.pl build: make gitversion more useful 2017-08-02 02:59:51 +02:00
grammar_sandbox_main.c lib/bgpd: provide/use API to get hostname/domainname 2017-08-24 16:37:16 -07:00
grammar_sandbox.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
graph.c lib: add graph_find_node 2018-04-06 17:59:39 -04:00
graph.h lib: add graph_find_node 2018-04-06 17:59:39 -04:00
hash.c *: fix coverity warnings - resource leaks 2017-10-24 19:30:30 -02:00
hash.h lib: use load factor as hash expansion trigger 2017-08-09 13:53:11 -04:00
hook.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
hook.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
if_rmap.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
if_rmap.h *: reindent 2017-07-17 14:04:07 +02:00
if.c ospfd: Treat vrf interface as loopback type 2018-03-08 13:15:58 -08:00
if.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
imsg-buffer.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
imsg.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
imsg.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ipaddr.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
jhash.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
jhash.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
json.c *: reindent 2017-07-17 14:04:07 +02:00
json.h ospfd: show ip ospf route json support 2017-11-26 09:18:19 -08:00
keychain.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
keychain.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
libfrr.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
libfrr.h lib: add -N/--pathspace option 2017-08-28 23:50:42 +02:00
libospf.h ospf: Fix segfault if compiled with DEBUG 2017-08-09 12:07:58 +02:00
linklist.c *: Convert list_free usage to list_delete 2017-10-05 10:53:17 -04:00
linklist.h *: Only test CONFDATE when VERSION_TYPE_DEV defined 2018-04-03 13:47:50 -04:00
log_int.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
log.c lib: add framework for allocating routing table identifier IDs 2018-03-29 09:19:52 +02:00
log.h lib: plug logging hole during startup 2017-08-02 23:36:42 +02:00
logicalrouter.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
logicalrouter.h lib: split logicalrouter and vrf netns feature 2018-02-27 11:11:24 +01:00
Makefile build: convert lib/ to non-recursive build 2017-07-31 23:03:27 +02:00
md5.c *: Remove cvs control points 2017-12-05 17:28:12 -05:00
md5.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
memory_vty.c *: reindent 2017-07-17 14:04:07 +02:00
memory_vty.h *: reindent 2017-07-17 14:04:07 +02:00
memory.c lib: prefix support for flowspec 2018-03-30 14:00:47 +02:00
memory.h lib: prefix support for flowspec 2018-03-30 14:00:47 +02:00
module.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
module.h *: reindent 2017-07-17 14:04:07 +02:00
monotime.h *: Define the number of seconds in a Day, Week and year 2017-08-08 09:06:22 -04:00
mpls.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
netns_linux.c lib: Namespaces should only complain about failure if we have it 2018-03-31 15:08:14 -04:00
netns_other.c lib: split logicalrouter and vrf netns feature 2018-02-27 11:11:24 +01:00
network.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
network.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
nexthop_group.c lib: dont break display of nexthop-groups themselves 2018-04-06 13:22:43 -04:00
nexthop_group.h lib: Add the ability for other people to call a nexthop write line 2018-03-14 08:32:39 -04:00
nexthop.c lib: Add hash and use const a bit more intelligently 2018-04-06 13:22:43 -04:00
nexthop.h lib: Add hash and use const a bit more intelligently 2018-04-06 13:22:43 -04:00
ns.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
openbsd-queue.h *: reindent 2017-07-17 14:04:07 +02:00
openbsd-tree.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
openbsd-tree.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
pid_output.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
plist_int.h *: reindent 2017-07-17 14:04:07 +02:00
plist.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
plist.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
pqueue.c *: reindent 2017-07-17 14:04:07 +02:00
pqueue.h *: reindent 2017-07-17 14:04:07 +02:00
prefix.c lib/prefix.[ch]: add family2str() 2018-04-04 09:24:17 -07:00
prefix.h lib/prefix.[ch]: add family2str() 2018-04-04 09:24:17 -07:00
privs.c lib: terminate capabilities only if initialized 2017-08-21 21:53:46 +02:00
privs.h lib: privs: make uid/gid accessible before setuid 2017-08-02 23:36:39 +02:00
ptm_lib.c *: silence '-Wchar-subscripts' warnings on NetBSD 2018-02-02 16:31:20 -02:00
ptm_lib.h lib: Allow memory to be cleaned up for error cases in ptm 2017-12-04 18:59:47 -05:00
pw.h ldpd: integrate with the pseudowire manager in zebra 2017-08-09 12:35:16 +02:00
qobj.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
qobj.h *: reindent 2017-07-17 14:04:07 +02:00
queue.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
ringbuf.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
ringbuf.h lib: add ringbuf_copy() 2018-01-03 14:04:43 -05:00
route_types.pl *: remove VTYNL, part 6 of 6 2017-07-14 10:20:03 +02:00
route_types.txt pbrd: Add PBR to FRR 2018-04-06 13:22:43 -04:00
routemap.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
routemap.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
sbuf.c lib: add sbuf 2017-08-03 11:34:01 +02:00
sbuf.h *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
sha256.c lib: Fix memset usage 2017-10-03 12:03:56 -04:00
sha256.h *: reindent 2017-07-17 14:04:07 +02:00
sigevent.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
sigevent.h *: reindent 2017-07-17 14:04:07 +02:00
skiplist.c *: fix be32 reading / 24-bit left shift 2017-09-09 19:50:58 +02:00
skiplist.h *: reindent 2017-07-17 14:04:07 +02:00
smux.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
smux.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
snmp.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
sockopt.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
sockopt.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
sockunion.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
sockunion.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
spf_backoff.c *: conform with COMMUNITY.md formatting rules, via 'make indent' 2018-03-06 14:04:32 -05:00
spf_backoff.h *: reindent 2017-07-17 14:04:07 +02:00
srcdest_table.c *: reindent 2017-07-17 14:04:07 +02:00
srcdest_table.h *: reindent 2017-07-17 14:04:07 +02:00
stream.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
stream.h *: Only test CONFDATE when VERSION_TYPE_DEV defined 2018-04-03 13:47:50 -04:00
strlcat.c lib: Fixup strlcat and strlcpy to be a bit more descriptive 2018-03-14 08:43:17 -04:00
strlcpy.c lib: Fixup strlcat and strlcpy to be a bit more descriptive 2018-03-14 08:43:17 -04:00
subdir.am lib, vtysh: Start cli for nexthop-group 2018-03-09 11:07:41 -05:00
systemd.c *: reindent 2017-07-17 14:04:07 +02:00
systemd.h *: reindent 2017-07-17 14:04:07 +02:00
table.c lib: prefix support for flowspec 2018-03-30 14:00:47 +02:00
table.h lib: fix const-check in route_node 2017-08-22 15:27:08 +02:00
termtable.c *: fix compiler warnings 2017-08-26 01:46:40 +02:00
termtable.h *: reindent 2017-07-17 14:04:07 +02:00
thread.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
thread.h lib: some frr_pthread fixes 2018-03-05 18:04:54 -05:00
vector.c *: reindent 2017-07-17 14:04:07 +02:00
vector.h *: reindent 2017-07-17 14:04:07 +02:00
version.h.in Rename: FreeRangeRouting FRRouting 2017-03-30 14:22:35 -04:00
vlan.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
vrf_int.h *: reindent 2017-07-17 14:04:07 +02:00
vrf.c lib: a vrf is searched first by its name, than its vrf id 2018-04-13 16:40:32 +02:00
vrf.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
vty.c pbrd: Add PBR to FRR 2018-04-06 13:22:43 -04:00
vty.h lib: Remove backwards compatiblity at 1 year 2018-03-28 16:20:02 -04:00
vxlan.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
wheel.c *: Convert list_delete(struct list *) to ** to allow nulling 2017-10-05 10:53:13 -04:00
wheel.h *: reindent 2017-07-17 14:04:07 +02:00
workqueue.c bgpd, lib, zebra: Switch to work_queue_free_and_null 2018-03-09 11:07:41 -05:00
workqueue.h *: Only test CONFDATE when VERSION_TYPE_DEV defined 2018-04-03 13:47:50 -04:00
zassert.h *: Remove cvs control points 2017-12-05 17:28:12 -05:00
zclient.c bgpd: nexthop tracking with labels for vrf-vpn leaking 2018-04-04 10:00:23 -07:00
zclient.h *: Only test CONFDATE when VERSION_TYPE_DEV defined 2018-04-03 13:47:50 -04:00
zebra.h bgpd, pim: remove undebug 2018-04-02 16:03:11 -04:00