summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-02-19 15:40:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-29 15:59:42 -0800
commit0b78f57ccdf63591fd211ade0b571189e070f598 (patch)
tree0c92ff928bcd4aabb9735740f98da486686b051d /table
parent53c5bc0258cede44d3544270309b6dd2e83cf058 (diff)
config/server: support per-peer asn
you can override `global.config.as` by `neighbor.config.local-as` Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r--table/path.go2
1 files changed, 1 insertions, 1 deletions
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() {