]> git.puffer.fish Git - mirror/frr.git/commitdiff
eigrpd, vtysh: add dummy route-map cli 837/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 20 Jul 2017 15:48:52 +0000 (11:48 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 20 Jul 2017 16:51:57 +0000 (12:51 -0400)
eigrpd will successfully accept `(conf)# route-map foo ...` because it
is not sent to eigrpd from vtysh, but of course, this is the classic
node sync syndrome.

Since eigrpd apparently doesn't support proper routemaps yet just add
the cli so we can suppress the vtysh errors.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
eigrpd/eigrp_main.c
vtysh/vtysh.h

index d593f5ceea2769ba27ba704773171613014a0f5e..e7532778a9257e995756fcbc9837048dcbb84fe0 100644 (file)
@@ -50,7 +50,7 @@
 #include "keychain.h"
 #include "distribute.h"
 #include "libfrr.h"
-//#include "routemap.h"
+#include "routemap.h"
 //#include "if_rmap.h"
 
 #include "eigrpd/eigrp_structs.h"
@@ -194,6 +194,11 @@ int main(int argc, char **argv, char **envp)
        prefix_list_add_hook(eigrp_distribute_update_all);
        prefix_list_delete_hook(eigrp_distribute_update_all);
 
+       /*
+        * XXX: This is just to get the CLI installed to suppress VTYSH errors.
+        * Routemaps in EIGRP are not yet functional.
+        */
+       route_map_init();
        /*eigrp_route_map_init();
          route_map_add_hook (eigrp_rmap_update);
          route_map_delete_hook (eigrp_rmap_update);*/
index 67ee8898c98e779fb660c7542c55a1b5cf131003..bef4b82d3fb3f336f2bb0c48ca60284163973c61 100644 (file)
@@ -44,7 +44,7 @@ DECLARE_MGROUP(MVTYSH)
  * run on it (logging & co. should stay in a fixed/frozen config, and
  * things like prefix lists are not even initialised) */
 #define VTYSH_ALL        VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_LDPD|VTYSH_BGPD|VTYSH_ISISD|VTYSH_PIMD|VTYSH_NHRPD|VTYSH_EIGRPD|VTYSH_BABELD
-#define VTYSH_RMAP       VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_BGPD|VTYSH_PIMD
+#define VTYSH_RMAP       VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_BGPD|VTYSH_PIMD|VTYSH_EIGRPD
 #define VTYSH_INTERFACE          VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_ISISD|VTYSH_PIMD|VTYSH_NHRPD|VTYSH_EIGRPD|VTYSH_BABELD
 #define VTYSH_NS          VTYSH_ZEBRA
 #define VTYSH_VRF        VTYSH_ZEBRA