summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/config
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-24 20:45:53 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-25 20:15:04 +0900
commit7ec6a96962637d0c6f525ec6e8dd517f785842c7 (patch)
tree9a0b2f65e7221be2e01cb7e152c48fa5cb8f32f5 /internal/pkg/config
parentae52d609352a4e0211c5ae2e3104703cdb94eb50 (diff)
api: move RouterId to PeerState from PeerConf
It's not configuration. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'internal/pkg/config')
-rw-r--r--internal/pkg/config/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go
index a8a49ca9..5090a3b8 100644
--- a/internal/pkg/config/util.go
+++ b/internal/pkg/config/util.go
@@ -452,7 +452,6 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer {
ApplyPolicy: newApplyPolicyFromConfigStruct(&pconf.ApplyPolicy),
Conf: &api.PeerConf{
NeighborAddress: pconf.Config.NeighborAddress,
- Id: s.RemoteRouterId,
PeerAs: pconf.Config.PeerAs,
LocalAs: pconf.Config.LocalAs,
PeerType: uint32(pconf.Config.PeerType.ToInt()),
@@ -499,6 +498,7 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer {
Queues: &api.Queues{},
RemoteCap: remoteCap,
LocalCap: localCap,
+ RouterId: s.RemoteRouterId,
},
EbgpMultihop: &api.EbgpMultihop{
Enabled: pconf.EbgpMultihop.Config.Enabled,