}
}
+#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
/* Label values are good. */
return 1;
}
-
+#endif /* HAVE_CUMULUS */
/*
* Add static LSP entry. This may be the first entry for this incoming label
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
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
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))
VTY_NEWLINE);
return CMD_WARNING;
}
+#endif /* HAVE_CUMULUS */
ret = zebra_mpls_static_lsp_add (zvrf, in_label, out_label, gtype,
&gate, NULL, 0);