From 0b78f57ccdf63591fd211ade0b571189e070f598 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Fri, 19 Feb 2016 15:40:30 +0900 Subject: config/server: support per-peer asn you can override `global.config.as` by `neighbor.config.local-as` Signed-off-by: ISHIDA Wataru --- table/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'table') diff --git a/table/path.go b/table/path.go index 9d1b00b1..e48b7258 100644 --- a/table/path.go +++ b/table/path.go @@ -167,7 +167,7 @@ func (path *Path) UpdatePathAttrs(global *config.Global, peer *config.Neighbor) path.SetNexthop(localAddress) // AS_PATH handling - path.PrependAsn(global.Config.As, 1) + path.PrependAsn(peer.Config.LocalAs, 1) // MED Handling if med := path.getPathAttr(bgp.BGP_ATTR_TYPE_MULTI_EXIT_DISC); med != nil && !path.IsLocal() { -- cgit v1.2.3