Code Monkey home page Code Monkey logo

bird's People

Contributors

gollux avatar marenamat avatar oerdnj avatar ondrej111 avatar pavelmachek avatar shaddeus avatar stintel avatar tmshlvck avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

bird's Issues

Allow shutdown communication through configuration

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.

shut a peer and send a shutdown communication

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.

show shutdown communication in syslog

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 'birdc show protocols all XXX' shut the last shutdown communication

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#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.