]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/routemap.h
Merge pull request #1567 from donaldsharp/json_fixes
[mirror_frr.git] / lib / routemap.h
index b2db0927f2d9338bd9ddb96b48c5244232bceb31..8c00e8104c5d1a02d4f8e98e97ec539b66bc7b75 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef _ZEBRA_ROUTEMAP_H
@@ -100,8 +99,10 @@ struct route_map_rule_cmd {
 
 /* Route map apply error. */
 enum {
+       RMAP_COMPILE_SUCCESS,
+
        /* Route map rule is missing. */
-       RMAP_RULE_MISSING = 1,
+       RMAP_RULE_MISSING,
 
        /* Route map rule can't compile */
        RMAP_COMPILE_ERROR
@@ -193,7 +194,15 @@ extern int route_map_delete_set(struct route_map_index *index,
 /* Install rule command to the match list. */
 extern void route_map_install_match(struct route_map_rule_cmd *cmd);
 
-/* Install rule command to the set list. */
+/*
+ * Install rule command to the set list.
+ *
+ * When installing a particular item, Allow a difference of handling
+ * of bad cli inputted(return NULL) -vs- this particular daemon cannot use
+ * this form of the command(return a pointer and handle it appropriately
+ * in the apply command).  See 'set metric' command
+ * as it is handled in ripd/ripngd and ospfd.
+ */
 extern void route_map_install_set(struct route_map_rule_cmd *cmd);
 
 /* Lookup route map by name. */