summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-09-20 13:48:59 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-09-20 13:48:59 +0000
commit23873096e1de1f932862d014cd0a7456bf7239e2 (patch)
tree7e460a06b0e13aaa0e0221b9db24031f46acd9e0
parent5d5b2942c5716668a2188f9d2b4d9e78015c2f6d (diff)
for consistency, make "show network" and alias for "network show"
-rw-r--r--usr.sbin/bgpctl/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index 9b11018bcf6..4dfe6ca584c 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.19 2005/09/20 13:47:08 henning Exp $ */
+/* $OpenBSD: parser.c,v 1.20 2005/09/20 13:48:58 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -92,6 +92,7 @@ static const struct token t_show[] = {
{ KEYWORD, "fib", SHOW_FIB, t_show_fib},
{ KEYWORD, "interfaces", SHOW_INTERFACE, NULL},
{ KEYWORD, "neighbor", SHOW_NEIGHBOR, t_show_neighbor},
+ { KEYWORD, "network", NETWORK_SHOW, t_network_show},
{ KEYWORD, "nexthop", SHOW_NEXTHOP, NULL},
{ KEYWORD, "rib", SHOW_RIB, t_show_rib},
{ KEYWORD, "ip", NONE, t_show_ip},