Hi Wataru,
Excellent job!, MED it's working fine:
extreme@ubuntu:~/go/src/github.com/osrg/gobgp/gobgp$ gobgp neighbor
10.10.10.101 adj-out
Network Next Hop AS_PATH Attrs
1.1.1.0/24 10.10.10.102 [{*Med:
200*} {Origin: ?} {LocalPref: 100}]
But the local-pref path attribute still not being advertise:
extreme@ubuntu:~/go/src/github.com/osrg/gobgp/gobgp$ gobgp global rib add
1.1.2.0/24 med 200 local-pref 200
extreme@ubuntu:~/go/src/github.com/osrg/gobgp/gobgp$ gobgp neighbor
10.10.10.101 adj-out
Network Next Hop AS_PATH Attrs
1.1.1.0/24 10.10.10.102 [{Med:
200} {Origin: ?} {LocalPref: *100*}]
1.1.2.0/24 10.10.10.102 [{Med:
200} {LocalPref: *100*} {Origin: ?}]
Thank you for all your help it is highly appreciated.
Regards
On Sun, Nov 8, 2015 at 5:31 PM, Wataru Ishida <ishida.wat...@lab.ntt.co.jp>
wrote:
> Hi
>
> Sorry for the incomplete fix.
>
>
> https://github.com/osrg/gobgp/commit/2db916a4d3e5783ae3ac68bb436722fea0bbe925
>
> I think this fixes the problem.
>
> Thanks,
> Wataru
>
> > On Nov 6, 2015, at 6:29 PM, Angel Lopez Delgado <a...@ignis-software.com>
> wrote:
> >
> > Hi Wataru,
> >
> > Thanks! for your quick reply, when I added the prefix to the global rib
> it applies the local-pref correctly:
> >
> > gobgp global rib add 10.33.0.0/24 local-pref 1000
> >
> > extreme@ubuntu:~$ gobgp global rib
> > Network Next Hop AS_PATH Age
> Attrs
> > *> 10.33.0.0/24 0.0.0.0
> 00:00:14 [{LocalPref: 1000} {Origin: ?}]
> >
> >
> > But when it is advertised to the bgp neighbor the configured local-pref
> is reset back to the original and not the one in the global rib
> >
> > ~$ gobgp neighbor 10.10.10.101 adj-out
> > Network Next Hop AS_PATH Attrs
> > 10.33.0.0/24 10.10.10.102
> [{LocalPref: 100} {Origin: ?}]
> >
> >
> > R1#show ip bgp
> > BGP table version is 1, local router ID is 10.10.10.101
> > Status codes: s suppressed, d damped, h history, * valid, > best, i -
> internal,
> > r RIB-failure, S Stale
> > Origin codes: i - IGP, e - EGP, ? - incomplete
> >
> > Network Next Hop Metric LocPrf Weight Path
> > * i10.33.0.0/24 8.8.8.8 100 0 ?
> >
> > Am I missing something?
> >
> > Thank you very much.
> >
> > Regards.
> >
> >
> >
> > On Thu, Nov 5, 2015 at 10:45 PM, Wataru Ishida <
> ishida.wat...@lab.ntt.co.jp> wrote:
> > Hi
> >
> > Thanks for finding and trying GoBGP!
> >
> >
> https://github.com/osrg/gobgp/commit/1460ef0ba46d0a0836fc5314d5e5c23ba76fd047
> >
> > just added the feature to set local preference
> >
> > $ gobgp global rib add 10.33.0.0/24 local-pref 100
> >
> > Thanks
> > Wataru
> >
> > > On Nov 6, 2015, at 1:25 PM, Angel Lopez Delgado <
> a...@ignis-software.com> wrote:
> > >
> > > Hi GoBGP Team,
> > >
> > > Thanks for this awesome! software, I have a question regarding the
> local preference attribute, I'm trying to set a local preference for a
> specific prefix but i can't find the way to do that, in ExaBGP you can do
> that like this:
> > >
> > >
> > > route 200.94.181.11/32 next-hop 213.248.72.129 local-preference 600
> community 32098:5254;
> > >
> > > Is there a way to set the local preference in GoBGP ? I see that you
> can add the nexthop with:
> > >
> > > gobgp global rib add 10.33.0.0/24 nexthop 11.22.33.44 -a ipv4
> > >
> > > And also you can set the community and as_path using the Policies:
> > >
> > > gobgp policy as-path add <aspath set name> <as path>
> > > gobgp policy community add <community set name> <community>
> > >
> > >
> > > Thank you very much!.
> > >
> > > Regards
> > > Angel Adrián López Delgado
> > > Director Network Engineer
> > >
> > >
> > >
> > >
> > >
> > >
> > > +52 656 150 44 53 | a...@ignis-software.com | Ciudad Juárez,
> Chihuahua, México |
> > >
> > > This e-mail message may contain confidential or legally privileged
> information and is intended only for the use of the intended recipient(s).
> Any unauthorized disclosure, dissemination, distribution, copying or the
> taking of any action in reliance on the information herein is prohibited.
> E-mails are not secure and cannot be guaranteed to be error free as they
> can be intercepted, amended, or contain viruses. Anyone who communicates
> with us by e-mail is deemed to have accepted these risks. Company Name is
> not responsible for errors or omissions in this message and denies any
> responsibility for any damage arising from the use of e-mail. Any opinion
> and other statement contained in this message and any attachment are solely
> those of the author and do not necessarily represent those of the company.
> > >
> ------------------------------------------------------------------------------
> > > _______________________________________________
> > > gobgp-devel mailing list
> > > gobgp-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gobgp-devel
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > _______________________________________________
> > gobgp-devel mailing list
> > gobgp-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gobgp-devel
>
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
gobgp-devel mailing list
gobgp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gobgp-devel