Hi go team,
I am tring to use gobgp for just announcing l3vpn-ipv4-unicast routes stored in
database, some blackhole routes for different user profiles. Can you give me an
example how can I add some l3mpls vpn path like the one in the GoBGP as a Go
Native BGP library.
// add routes
attrs := []bgp.PathAttributeInterface{
bgp.NewPathAttributeOrigin(0),
bgp.NewPathAttributeNextHop("10.0.255.254"),
bgp.NewPathAttributeAsPath([]bgp.AsPathParamInterface{bgp.NewAs4PathParam(bgp.BGP_ASPATH_ATTR_TYPE_SEQ,
[]uint32{4000, 400000, 300000, 40001})}),
}
if _, err := s.AddPath("", []*table.Path{table.NewPath(nil,
bgp.NewIPAddrPrefix(24, "10.0.0.0"), false, attrs, time.Now(), false)}); err !=
nil {
log.Fatal(err)
}
[TurkNet]<https://turk.net/>
________________________________
Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi
tarafından alması amaçlanan yetkili gerçek ya da tüzel kişinin kullanımı
içindir. Eğer söz konusu yetkili alıcı değilseniz bu elektronik postanın
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle
yasaktır ve bu elektronik postayı derhal silmeniz gerekmektedir. TurkNet bu
mesajın içerdiği bilgilerin doğruluğu veya eksiksiz olduğu konusunda herhangi
bir garanti vermemektedir. Bu nedenle bu bilgilerin ne şekilde olursa olsun
içeriğinden, iletilmesinden, alınmasından ve saklanmasından sorumlu değildir.
Bu mesajdaki görüşler yalnızca gönderen kişiye aittir ve TurkNet'in görüşlerini
yansıtmayabilir. Bu e-posta bilinen bütün bilgisayar virüslerine karşı
taranmıştır.
________________________________________
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is strictly
prohibited, and the e-mail should immediately be deleted. TurkNet makes no
warranty as to the accuracy or completeness of any information contained in
this message and hereby excludes any liability of any kind for the information
contained therein or for the information transmission, reception, storage or
use of such in any way whatsoever. The opinions expressed in this message
belong to sender alone and may not necessarily reflect the opinions of TurkNet.
This e-mail has been scanned for all known computer viruses.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
gobgp-devel mailing list
gobgp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gobgp-devel