Tests were not even compiling due to non updated API changes.
Additionally tests were core'ing after compile issue
because the vrf subsystem is being used now and it
needs to be initialized.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
master = thread_master_create ();
bgp_master_init ();
+ vrf_init ();
bgp_option_set (BGP_OPT_NO_LISTEN);
if (fileno (stdout) >= 0)
tty = isatty (fileno (stdout));
- if (bgp_get (&bgp, &asn, NULL))
+ if (bgp_get (&bgp, &asn, NULL, BGP_INSTANCE_TYPE_DEFAULT))
return -1;
peer = peer_create_accept (bgp);
master = thread_master_create ();
bgp_master_init ();
+ vrf_init ();
bgp_option_set (BGP_OPT_NO_LISTEN);
if (fileno (stdout) >= 0)
tty = isatty (fileno (stdout));
- if (bgp_get (&bgp, &asn, NULL))
+ if (bgp_get (&bgp, &asn, NULL, BGP_INSTANCE_TYPE_DEFAULT))
return -1;
peer = peer_create_accept (bgp);
master = thread_master_create ();
zclient = zclient_new(master);
bgp_master_init ();
+ vrf_init ();
bgp_option_set (BGP_OPT_NO_LISTEN);
if (fileno (stdout) >= 0)