diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-01-18 13:28:46 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-02-03 22:47:34 -0800 |
commit | 1063bcab1ee22cac4c7e375aaf37589747bad133 (patch) | |
tree | 1045a331ace96926da8728915318e0084eb8c5c5 /packet/bgp/bgp.go | |
parent | 356c01a9d061b2b6bb4c3068a9888b56dc435600 (diff) |
cli: Communication on Administrative Shutdown NOTIFICATION
This patch enable to send an arbitrary message on the Cease NOTIFICATION
message with "Administrative Shutdown" and "Administrative Reset" subcodes
with "--reason" option.
Usage:
$ gobgp neighbor <neighbor address> shutdown --reason "some messages"
$ gobgp neighbor <neighbor address> reset --reason "some messages"
Reference: https://tools.ietf.org/html/draft-ietf-idr-shutdown-04
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'packet/bgp/bgp.go')
-rw-r--r-- | packet/bgp/bgp.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index 9b7dfc97..b10034c5 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -3927,6 +3927,11 @@ const ( BGP_ERROR_SUB_HARD_RESET //draft-ietf-idr-bgp-gr-notification-07 ) +// Constants for BGP_ERROR_SUB_ADMINISTRATIVE_SHUTDOWN and BGP_ERROR_SUB_ADMINISTRATIVE_RESET +const ( + BGP_ERROR_ADMINISTRATIVE_COMMUNICATION_MAX = 128 +) + // NOTIFICATION Error Subcode for BGP_ERROR_ROUTE_REFRESH const ( _ = iota |