Last active
September 7, 2025 20:09
-
-
Save tonusoo/55e43b2b4373b93de818a787823187b2 to your computer and use it in GitHub Desktop.
NANOG mailing list thread: https://lists.nanog.org/archives/list/[email protected]/thread/CS25Q74D72EUV3MVHOMT3GNZ5HGRZWGV/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Configures Juniper router to inject a 0x0b control character to | |
| # "Shutdown Communication" field(RFC 9003) of a BGP cease NOTIFICATION message. | |
| # | |
| # Usage example: | |
| # ./shutdown-bgp-session.bash | ssh [email protected] -p 830 -s netconf | |
| vertical_tab=$'\v' | |
| cat << EOF | |
| <rpc> | |
| <edit-config> | |
| <target> | |
| <candidate/> | |
| </target> | |
| <default-operation>merge</default-operation> | |
| <config> | |
| <configuration> | |
| <protocols> | |
| <bgp> | |
| <group> | |
| <name>bgp-notif-msg-test</name> | |
| <shutdown operation="create"> | |
| <notify-message>${vertical_tab}maintenance</notify-message> | |
| </shutdown> | |
| </group> | |
| </bgp> | |
| </protocols> | |
| </configuration> | |
| </config> | |
| </edit-config> | |
| </rpc> | |
| ]]>]]> | |
| <rpc> | |
| <commit/> | |
| </rpc> | |
| ]]>]]> | |
| <rpc> | |
| <close-session/> | |
| </rpc> | |
| ]]>]]> | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment