diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-04-30 16:06:17 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-04-30 16:06:17 +0900 |
commit | 6e1010776f9353573d747ee8c180b9b27e528fc7 (patch) | |
tree | 576fb5cb2691561ef3c54da5151672371deeea25 | |
parent | 483d37a1b4b5ea053ec7c95073b9f05a2152385f (diff) |
policy: use table.ProcessMessage()
-rw-r--r-- | policy/policy_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/policy/policy_test.go b/policy/policy_test.go index 1f27fd4c..ca006ddb 100644 --- a/policy/policy_test.go +++ b/policy/policy_test.go @@ -650,8 +650,7 @@ func TestAsPathLengthConditionEvaluate(t *testing.T) { withdrawnRoutes := []bgp.WithdrawnRoute{} updateMsg := bgp.NewBGPUpdateMessage(withdrawnRoutes, pathAttributes, nlri) table.UpdatePathAttrs4ByteAs(updateMsg.Body.(*bgp.BGPUpdate)) - msg := table.NewProcessMessage(updateMsg, peer) - path := msg.ToPathList()[0] + path := table.ProcessMessage(updateMsg, peer)[0] // create match condition asPathLength := config.AsPathLength{ @@ -701,8 +700,7 @@ func TestAsPathLengthConditionWithOtherCondition(t *testing.T) { withdrawnRoutes := []bgp.WithdrawnRoute{} updateMsg := bgp.NewBGPUpdateMessage(withdrawnRoutes, pathAttributes, nlri) table.UpdatePathAttrs4ByteAs(updateMsg.Body.(*bgp.BGPUpdate)) - msg := table.NewProcessMessage(updateMsg, peer) - path := msg.ToPathList()[0] + path := table.ProcessMessage(updateMsg, peer)[0] // create policy ps := config.PrefixSet{ |