summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/parser.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2013-03-07 21:28:34 +0000
committerclaudio <claudio@openbsd.org>2013-03-07 21:28:34 +0000
commit07820ff6e33c99d2629d64dbb4482b7a3de2e4ec (patch)
tree48d602a02e7bf8d76c193a97132bcd4851dc5265 /usr.sbin/bgpctl/parser.c
parentImplements a few missing bits for better templates support: (diff)
downloadwireguard-openbsd-07820ff6e33c99d2629d64dbb4482b7a3de2e4ec.tar.xz
wireguard-openbsd-07820ff6e33c99d2629d64dbb4482b7a3de2e4ec.zip
Implement a bgpctl nei foo destroy that will remove the specified cloned
neighbor. The neighbor must be set down before calling this function. OK phessler
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
-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 a31074c9527..1f544f0942b 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.65 2012/05/27 18:53:50 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.66 2013/03/07 21:28:34 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -243,6 +243,7 @@ static const struct token t_neighbor_modifiers[] = {
{ KEYWORD, "down", NEIGHBOR_DOWN, NULL},
{ KEYWORD, "clear", NEIGHBOR_CLEAR, NULL},
{ KEYWORD, "refresh", NEIGHBOR_RREFRESH, NULL},
+ { KEYWORD, "destroy", NEIGHBOR_DESTROY, NULL},
{ ENDTOKEN, "", NONE, NULL}
};