]> git.puffer.fish Git - matthieu/frr.git/commitdiff
MPLS: ignore hardware restrictions when --enable-cumulus is not given.
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 14 Sep 2016 18:27:21 +0000 (15:27 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 13:31:19 +0000 (09:31 -0400)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_mpls.c
zebra/zebra_mpls.h
zebra/zebra_vty.c

index 6b032707ac4c071ecd1b48d9b3d8af6c0eef2e64..07b69eccd6a124745cb68e35d874e6d532a6b84e 100644 (file)
@@ -1520,6 +1520,7 @@ mpls_ldp_ftn_uninstall_all (struct zebra_vrf *zvrf, int afi)
     }
 }
 
+#if defined(HAVE_CUMULUS)
 /*
  * Check that the label values used in LSP creation are consistent. The
  * main criteria is that if there is ECMP, the label operation must still
@@ -1575,7 +1576,7 @@ zebra_mpls_lsp_label_consistent (struct zebra_vrf *zvrf, mpls_label_t in_label,
   /* Label values are good. */
   return 1;
 }
-
+#endif /* HAVE_CUMULUS */
 
 /*
  * Add static LSP entry. This may be the first entry for this incoming label
index 7c672fa43398a089ff0d8c424f29d7b288964eda..becef524fd6b069bedaacda694415683fd160761 100644 (file)
@@ -205,6 +205,7 @@ mpls_ldp_lsp_uninstall_all (struct hash_backet *backet, void *ctxt);
 void
 mpls_ldp_ftn_uninstall_all (struct zebra_vrf *zvrf, int afi);
 
+#if defined(HAVE_CUMULUS)
 /*
  * Check that the label values used in LSP creation are consistent. The
  * main criteria is that if there is ECMP, the label operation must still
@@ -215,6 +216,7 @@ int
 zebra_mpls_lsp_label_consistent (struct zebra_vrf *zvrf, mpls_label_t in_label,
                      mpls_label_t out_label, enum nexthop_types_t gtype,
                      union g_addr *gate, char *ifname, ifindex_t ifindex);
+#endif /* HAVE_CUMULUS */
 
 /*
  * Add static LSP entry. This may be the first entry for this incoming label
index 14f8f18540b658660c92762370676a83ddcbd612..aa3da71ce554605a3f37980f59c243909b5b4e25 100644 (file)
@@ -2100,6 +2100,7 @@ zebra_mpls_transit_lsp (struct vty *vty, int add_cmd, const char *inlabel_str,
 
   if (add_cmd)
     {
+#if defined(HAVE_CUMULUS)
       /* Check that label value is consistent. */
       if (!zebra_mpls_lsp_label_consistent (zvrf, in_label, out_label, gtype,
                                             &gate, NULL, 0))
@@ -2108,6 +2109,7 @@ zebra_mpls_transit_lsp (struct vty *vty, int add_cmd, const char *inlabel_str,
                    VTY_NEWLINE);
           return CMD_WARNING;
         }
+#endif /* HAVE_CUMULUS */
 
       ret = zebra_mpls_static_lsp_add (zvrf, in_label, out_label, gtype,
                                        &gate, NULL, 0);