summaryrefslogtreecommitdiff
path: root/vtysh
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2008-07-02 13:40:33 +0000
committerPaul Jakma <paul.jakma@sun.com>2008-07-02 13:40:33 +0000
commit320da874d75acb7d0cb69c531ee6255e63fe0336 (patch)
tree063cceec70b3d71ef65a957956088f06d6b5bbe5 /vtysh
parentb608d5b5ac469d47072aedd573e5d3475f4d9cf4 (diff)
[vty] CMD_AS_RANGE accidently quoted and so not expanded in vty
2008-07-02 MIYAJIMA Mitsuharu <miyajima.mitsuharu@anchor.jp> * *.c: CMD_AS_RANGE was being used inside command strings, and thus not being expanded, fix by dequoting.
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/ChangeLog5
-rwxr-xr-xvtysh/extract.pl.in4
-rw-r--r--vtysh/vtysh.c3
3 files changed, 9 insertions, 3 deletions
diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog
index de62763c..c067b784 100644
--- a/vtysh/ChangeLog
+++ b/vtysh/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-02 MIYAJIMA Mitsuharu <miyajima.mitsuharu@anchor.jp>
+
+ * CMD_AS_RANGE was being used inside command strings, and thus
+ not being expanded, fix by dequoting.
+
2007-06-20 Nicolas Deffayet <nicolas@deffayet.com>
* vtysh.c: (vtysh_write_terminal) Write 'end' when done,
diff --git a/vtysh/extract.pl.in b/vtysh/extract.pl.in
index 789819c6..52a06f51 100755
--- a/vtysh/extract.pl.in
+++ b/vtysh/extract.pl.in
@@ -37,8 +37,8 @@ $ignore{'"router ripng"'} = "ignore";
$ignore{'"router ospf"'} = "ignore";
$ignore{'"router ospf <0-65535>"'} = "ignore";
$ignore{'"router ospf6"'} = "ignore";
-$ignore{'"router bgp CMD_AS_RANGE"'} = "ignore";
-$ignore{'"router bgp CMD_AS_RANGE view WORD"'} = "ignore";
+$ignore{'"router bgp <1-4294967295>"'} = "ignore";
+$ignore{'"router bgp <1-4294967295> view WORD"'} = "ignore";
$ignore{'"router isis WORD"'} = "ignore";
$ignore{'"router zebra"'} = "ignore";
$ignore{'"address-family ipv4"'} = "ignore";
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 9f47515d..b508749a 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -34,6 +34,7 @@
#include "memory.h"
#include "vtysh/vtysh.h"
#include "log.h"
+#include "bgpd/bgp_vty.h"
/* Struct VTY. */
struct vty *vty;
@@ -838,7 +839,7 @@ DEFUNSH (VTYSH_ALL,
DEFUNSH (VTYSH_BGPD,
router_bgp,
router_bgp_cmd,
- "router bgp CMD_AS_RANGE",
+ "router bgp " CMD_AS_RANGE,
ROUTER_STR
BGP_STR
AS_STR)