summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/validate_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-03-19 23:36:38 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-07-04 09:53:14 +0900
commit1d46f58ff1df4d1195091a9f25e74a583801b39d (patch)
tree6a5cfdaff627edd737b01c892a78fc580c6742a3 /packet/bgp/validate_test.go
parent0ef496c3159f48df6018031c6079ce3a3b6043f1 (diff)
packet: support addpath decoding/encoding
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp/validate_test.go')
-rw-r--r--packet/bgp/validate_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/validate_test.go b/packet/bgp/validate_test.go
index 225f941d..bcb74809 100644
--- a/packet/bgp/validate_test.go
+++ b/packet/bgp/validate_test.go
@@ -372,7 +372,7 @@ func Test_Validate_flowspec(t *testing.T) {
cmp = append(cmp, NewFlowSpecComponent(FLOW_SPEC_TYPE_FRAGMENT, []*FlowSpecComponentItem{item7}))
n1 := NewFlowSpecIPv4Unicast(cmp)
a := NewPathAttributeMpReachNLRI("", []AddrPrefixInterface{n1})
- m := map[RouteFamily]bool{RF_FS_IPv4_UC: true}
+ m := map[RouteFamily]BGPAddPathMode{RF_FS_IPv4_UC: BGP_ADD_PATH_NONE}
_, err := ValidateAttribute(a, m, false)
assert.Nil(err)