From dcc0a0d117bb83baa260a5a54a2788b51e60bcc0 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Tue, 11 Jul 2017 08:48:57 -0400 Subject: [PATCH] vty: add some defines for backwards compatibility Signed-off-by: Lou Berger --- lib/vty.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/vty.h b/lib/vty.h index a76b9f5a17..61d6504edb 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