Protocol Name Variables

Jason Kopacko jason at kopacko.com
Tue Apr 11 04:40:06 CEST 2017


I am in the initial build stages of a BIRD deployment for route control and
black holing.

I built a couple functions that display the protocol info, etc.

When I add a route in the Ubuntu command line, I get this:

[ UBUNTU CLI ]

$ sudo ip route add blackhole x.x.x.x/32 protocol LOCAL realm 1020 scope
Internet table 120

[ SYSLOG - KERNEL IMPORT ]

 =`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
 ** Kernel || Import **
 ** Protocol:             kernel_TEST
 ** Distribution:         Local
 ** Control Type:         Internet
 ** Realm Name:           Test Lab
 =`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
 =`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
 ** Source:               RTS_INHERIT
 ** Destination:          RTD_BLACKHOLE
 ** Scope:                SCOPE_UNIVERSE
 ** Cast:                 RTC_UNICAST
 ** Network:              x.x.x.x/32
 ** Network Length:       32
 ** Preference:           10
 ** From:                 x.x.x.x
 ** Gateway:              0.0.0.0
 ** Protocol:             kernel_TEST
 ** ifname:
 ** ifindex:              0
 ** Metric:               (void)
 =`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
 =`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
 ** krt_source:           200
 ** krt_metric:           0
 ** krt_prefsrc:          (void)
 ** krt_realm:            1020
 ** krt_scope:            111
 =`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=

​[ SYSLOG - BGP EXPORT ]

=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
** BGP || Export **
** Protocol:             kernel_TEST
** Control Type:         Internet
=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
** Source:               RTS_INHERIT
** Destination:          RTD_BLACKHOLE
** Scope:                SCOPE_UNIVERSE
** Cast:                 RTC_UNICAST
** Network:              x.x.x.x/32
** Network Length:       32
** Preference:           10
** From:                 x.x.x.x
** Gateway:              0.0.0.0
** Protocol:             kernel_TEST
** ifname:
** ifindex:              0
** Metric:               (void)
=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=
** bgp_path:             (path 65499)
** bgp_path: [FIRST]     65499
** bgp_path: [LAST]      65499
** bgp_local_pref:       100
** bgp_med:              (void)
** bgp_origin:           0
** bgp_next_hop:         x.x.x.x
** bgp_atomic_aggr:      (void)
** bgp_community:        (clist (65499,999))
** bgp_ext_community:    (eclist )
** bgp_large_community:  (lclist )
** bgp_originator_id:    x.x.x.x
** bgp_cluster_list:     (clist )
=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=`=​

​Why doesn't the protocol variable update to the name of the BGP protocol
in my config?​

Sent from my Verizon Wireless 4G LTE Droid Turbo 2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20170410/9bb30053/attachment.html>


More information about the Bird-users mailing list