summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2017-07-11 14:48:57 +0200
committerLou Berger <lberger@labn.net>2017-07-11 14:48:57 +0200
commitdcc0a0d117bb83baa260a5a54a2788b51e60bcc0 (patch)
tree7154d1df4e3983cbbd11bedb410a792e6bd07b7d /lib
parentbgpd: have labeled unicast print consistent with other safis (diff)
downloadfrr-dcc0a0d117bb83baa260a5a54a2788b51e60bcc0.tar.xz
frr-dcc0a0d117bb83baa260a5a54a2788b51e60bcc0.zip
vty: add some defines for backwards compatibility
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/vty.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/vty.h b/lib/vty.h
index a76b9f5a1..61d6504ed 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -182,6 +182,11 @@ struct vty_arg
/* Small macro to determine newline is newline only or linefeed needed. */
#define VTYNL ((vty->type == VTY_TERM) ? "\r\n" : "\n")
+/* for compatibility */
+#define VTY_NEWLINE VTYNL
+#define VTY_GET_INTEGER(desc,v,str) {(v)=strtoul ((str), NULL, 10);}
+#define VTY_GET_INTEGER_RANGE(desc,v,str,min,max) {(v)=strtoul ((str), NULL, 10);}
+
/* Default time out value */
#define VTY_TIMEOUT_DEFAULT 600