job / bird Goto Github PK
View Code? Open in Web Editor NEWBIRD dev branches
BIRD dev branches
root@scarlett:/home/job# cat /etc/bird/bird.conf | tail -n 7
protocol bgp kali1 {
local as 15562;
neighbor 165.254.255.17 as 15562;
source address 165.254.255.1;
import none;
export none;
disabled "hello darkness my old friend";
}
BIRD allows you to shutdown a session (or keep it down) by setting disabled
in the configuration stanza. The new feature should be that if you enter a string after the keyword disabled
, that the string is considered the content of the shutdown communication.
If the string is too long, an error should be generated when bird is attempting to boot, or its configuration is reloaded through birdc configure
.
If the session is already down (in case BIRD is running or booting), nothing needs to be done (like today with disabled
). If the session is up, and BIRD's new config contains disabled 'herp';
then the session should be torn down and the shutdown communication send.
BIRD allows you to shutdown a peer from the command line, the trailing string should be considered the shutdown communication if presented:
root@scarlett:/home/job# birdc disable kali "hello darkness my old friend"
BIRD 1.6.0 ready.
syntax error
("hello darkness my old friend" is the shutdown communication)
If the string is too long, a useful error should be provided to the user. If there is no string, no shutdown communication should be sent.
Currently if BIRD receives a Cease Administrative shutdown (6, 2)
it dumps the hex, what it should do is dump the UTF-8:
Dec 13 15:48:01 scarlett bird: kali1: Received: Administrative shutdown: 27706d61636374207265636569766564
should be:
Dec 13 15:48:01 scarlett bird: kali1: Received: Administrative shutdown: "pmacct received SIGINT - shutting down"
in this overview, the shutdown communication should be displayed after Received: Administrative shutdown
root@scarlett:/home/job# birdc show protocols all kali1
BIRD 1.6.0 ready.
name proto table state since info
kali1 BGP master start 16:21:24 Active Received: Administrative shutdown
Preference: 100
Input filter: REJECT
Output filter: REJECT
Routes: 0 imported, 0 exported, 0 preferred
Route change stats: received rejected filtered ignored accepted
Import updates: 0 0 0 0 0
Import withdraws: 0 0 --- 0 0
Export updates: 0 0 0 --- 0
Export withdraws: 0 --- --- --- 0
BGP state: Active
Neighbor address: 165.254.255.17
Neighbor AS: 15562
Connect delay: 2/5
Last error: Received: Administrative shutdown
root@scarlett:/home/job#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.