diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2016-02-26 19:55:28 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-02-27 03:47:00 -0800 |
commit | a53d1945056b6c43c1de5dcaafc5ef92fcd33614 (patch) | |
tree | 318edb562c31ec11708fea1282cb8cded6ea870d /server/zclient_test.go | |
parent | b334dd4185bc91afd405ba326a03c09cfe9a9623 (diff) |
ops: fix and integration the attribute name that indicates the route received from an external resource
Diffstat (limited to 'server/zclient_test.go')
-rw-r--r-- | server/zclient_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/zclient_test.go b/server/zclient_test.go index 2fbd7554..a09b59e6 100644 --- a/server/zclient_test.go +++ b/server/zclient_test.go @@ -59,7 +59,7 @@ func Test_createPathFromIPRouteMessage(t *testing.T) { assert.NotEqual(nil, p) assert.Equal("0.0.0.0", p.GetNexthop().String()) assert.Equal("192.168.100.0/24", p.GetNlri().String()) - assert.True(p.IsFromZebra()) + assert.True(p.IsFromExternal()) assert.False(p.IsWithdraw) // withdraw @@ -71,7 +71,7 @@ func Test_createPathFromIPRouteMessage(t *testing.T) { assert.Equal("192.168.100.0/24", p.GetNlri().String()) med, _ := p.GetMed() assert.Equal(uint32(100), med) - assert.True(p.IsFromZebra()) + assert.True(p.IsFromExternal()) assert.True(p.IsWithdraw) // IPv6 @@ -88,7 +88,7 @@ func Test_createPathFromIPRouteMessage(t *testing.T) { assert.Equal("2001:db8:0:f101::/64", p.GetNlri().String()) med, _ = p.GetMed() assert.Equal(uint32(100), med) - assert.True(p.IsFromZebra()) + assert.True(p.IsFromExternal()) assert.False(p.IsWithdraw) // withdraw @@ -98,7 +98,7 @@ func Test_createPathFromIPRouteMessage(t *testing.T) { assert.NotEqual(nil, p) assert.Equal("::", p.GetNexthop().String()) assert.Equal("2001:db8:0:f101::/64", p.GetNlri().String()) - assert.True(p.IsFromZebra()) + assert.True(p.IsFromExternal()) assert.True(p.IsWithdraw) } |