summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_clist.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2017-09-05 15:20:49 +0200
committerGitHub <noreply@github.com>2017-09-05 15:20:49 +0200
commit5ba345ccb231bb747bfe80dda952320e8cc18c7c (patch)
tree5c4b4377786b10a6d70c9d6eb846e2390e38ab27 /bgpd/bgp_clist.c
parentMerge pull request #1020 from opensourcerouting/ferr (diff)
parentMerge branch 'master' of https://github.com/dwalton76/frr into bgpd-draft-iet... (diff)
downloadfrr-5ba345ccb231bb747bfe80dda952320e8cc18c7c.tar.xz
frr-5ba345ccb231bb747bfe80dda952320e8cc18c7c.zip
Merge pull request #1047 from dwalton76/bgpd-draft-ietf-grow-bgp-gshut-10
bgpd: implement draft-ietf-grow-bgp-gshut-10
Diffstat (limited to 'bgpd/bgp_clist.c')
-rw-r--r--bgpd/bgp_clist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bgpd/bgp_clist.c b/bgpd/bgp_clist.c
index 886de9e50..b62a0a540 100644
--- a/bgpd/bgp_clist.c
+++ b/bgpd/bgp_clist.c
@@ -355,6 +355,9 @@ static char *community_str_get(struct community *com, int i)
case COMMUNITY_LOCAL_AS:
len = strlen(" local-AS");
break;
+ case COMMUNITY_GSHUT:
+ len = strlen(" graceful-shutdown");
+ break;
default:
len = strlen(" 65536:65535");
break;
@@ -380,6 +383,10 @@ static char *community_str_get(struct community *com, int i)
strcpy(pnt, "local-AS");
pnt += strlen("local-AS");
break;
+ case COMMUNITY_GSHUT:
+ strcpy(pnt, "graceful-shutdown");
+ pnt += strlen("graceful-shutdown");
+ break;
default:
as = (comval >> 16) & 0xFFFF;
val = comval & 0xFFFF;