diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-08 17:36:04 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-11 00:46:50 +0900 |
commit | 34bd365bb4534f2321acea686996e2293727923c (patch) | |
tree | 0e19ad56f4d1e1b36c832f77ac28a708987dd6ed /server/peer.go | |
parent | bedb15304141ea7583e89dbdd2d39a93d50fbcfc (diff) |
test: add performance_test
currently only many-peer-connecting test (equivalent to hoofprints test T1)
is implemented.
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go index 81e7f1f8..ac3c2409 100644 --- a/server/peer.go +++ b/server/peer.go @@ -63,6 +63,14 @@ func NewPeer(g config.Global, conf config.Neighbor, loc *table.TableManager) *Pe return peer } +func (peer *Peer) Fsm() *FSM { + return peer.fsm +} + +func (peer *Peer) Outgoing() chan *bgp.BGPMessage { + return peer.outgoing +} + func (peer *Peer) isIBGPPeer() bool { return peer.conf.NeighborConfig.PeerAs == peer.gConf.GlobalConfig.As } |