summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-11-22 11:37:26 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-11-22 11:37:26 +0000
commit9f7362ac1c12b1c54bcafe0722250b9effa94b3e (patch)
tree2ef5b7c0e01826c04df46b7e4f3ec77b5a6cf0c8 /usr.sbin/bgpd
parent274e8872f6104f36457a940c1640764df97d9f2b (diff)
add "demote", was missing. noticed by camield@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/printconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index fe5231fad6a..005e722905e 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.64 2007/05/28 17:26:33 henning Exp $ */
+/* $OpenBSD: printconf.c,v 1.65 2007/11/22 11:37:25 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -316,6 +316,8 @@ print_peer(struct peer_config *p, struct bgpd_config *conf, const char *c)
inet_ntoa(ina));
}
}
+ if (p->demote_group[0])
+ printf("%s\tdemote %s\n", c, p->demote_group);
if (p->if_depend[0])
printf("%s\tdepend on \"%s\"\n", c, p->if_depend);