BIRD-1.3.6 - show bgp summary command

Alexander Shikoff minotaur at crete.org.ua
Sat Feb 25 14:33:13 CET 2012


On Thu, Feb 23, 2012 at 04:48:00PM +0200, Dean Belev wrote:
> Hi there,
> 
> Is the patch for 1.3.4 
> (http://marc.info/?l=bird-users&m=132155489919052&w=2 
> <http://marc.info/?l=bird-users&m=132155489919052&w=2>) usable for 1.3.6 ?
> 
> We have a strange behavior when we tried to implement it for 1.3.6 - the 
> process stops right after the Enter is triggered.
> But the "?" function works correctly.

Old patch does not fit the source code and bird architecture as well.
I've changed it in order to more comply to a birdc syntax.

Two new patches for 1.3.6 version (bird and bird6) are attached.
They differ just in output format. Output for bird6 is two-line.




Examples:

# birdc6
BIRD 1.3.6 ready.
bird> show protocols
name     proto    table    state  since       info
device1  Device   master   up     2012-02-25 15:04:37
ITCONSULTING BGP      master   up     2012-02-25 15:15:52  Established
CITYNET  BGP      master   start  2012-02-25 15:04:37  Passive
bird> show protocols bgp
Peer
         AS Last state change   Prefixes rcvd/best   State/Last error
2001:7f8:63::11
      25372 2012-02-25 15:15:52 1/1                  Established
2001:7f8:63::39
      16066 2012-02-25 15:04:37 0/0                  Passive
bird> show protocols bgp CITYNET
Peer
         AS Last state change   Prefixes rcvd/best   State/Last error
2001:7f8:63::39
      16066 2012-02-25 15:04:37 0/0                  Passive





# birdc
BIRD 1.3.6 ready.
bird> show bgp summ
No such command. Press `?' for help.
bird> show protocols bgp
Peer                    AS Last state change   Prefixes rcvd/best   State/Last error
193.25.180.17        25372 2012-02-25 14:39:35 2/2                  Established


-- 
MINO-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-show-protocol-bgp.diff
Type: text/x-diff
Size: 7402 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20120225/cbfa1b23/attachment-0002.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-show-protocol-bgp6.diff
Type: text/x-diff
Size: 7392 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20120225/cbfa1b23/attachment-0003.diff>


More information about the Bird-users mailing list