]> git.proxmox.com Git - mirror_frr.git/blobdiff - sharpd/sharp_main.c
lib,sharpd: support labelled nexthop-groups in sharpd
[mirror_frr.git] / sharpd / sharp_main.c
index c389b0bc362f584581138845f019eaaa023c8cdb..a00106d686bff0bda98fe3cd99262437bc0140fb 100644 (file)
@@ -48,9 +48,7 @@
 #include "sharp_vty.h"
 #include "sharp_globals.h"
 
-uint32_t total_routes = 0;
-uint32_t installed_routes = 0;
-uint32_t removed_routes = 0;
+DEFINE_MGROUP(SHARPD, "sharpd")
 
 zebra_capabilities_t _caps_p[] = {
 };
@@ -113,7 +111,7 @@ struct quagga_signal_t sharp_signals[] = {
 
 #define SHARP_VTY_PORT 2614
 
-static const struct frr_yang_module_info *sharpd_yang_modules[] = {
+static const struct frr_yang_module_info *const sharpd_yang_modules[] = {
 };
 
 FRR_DAEMON_INFO(sharpd, SHARP, .vty_port = SHARP_VTY_PORT,
@@ -131,6 +129,7 @@ struct sharp_global sg;
 static void sharp_global_init(void)
 {
        memset(&sg, 0, sizeof(sg));
+       sg.nhs = list_new();
 }
 
 int main(int argc, char **argv, char **envp)