summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-05 23:37:16 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-08 13:13:37 +0900
commit54c8d7e19c8c3ce2198a79b10dc04255e4d5e285 (patch)
treedeb09f1ad1fab9e9b23f819d16be9d00897fc404 /packet/bgp_test.go
parentd8dc45772cd1a384cb15917bea43cac5d2a04f10 (diff)
packet: add ADD_PATH capability
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp_test.go')
-rw-r--r--packet/bgp_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet/bgp_test.go b/packet/bgp_test.go
index 5b0e462c..22db55b2 100644
--- a/packet/bgp_test.go
+++ b/packet/bgp_test.go
@@ -32,8 +32,10 @@ func open() *BGPMessage {
[]CapGracefulRestartTuples{g})})
p4 := NewOptionParameterCapability(
[]ParameterCapabilityInterface{NewCapFourOctetASNumber(100000)})
+ p5 := NewOptionParameterCapability(
+ []ParameterCapabilityInterface{NewCapAddPath(RF_IPv4_UC, BGP_ADD_PATH_BOTH)})
return NewBGPOpenMessage(11033, 303, "100.4.10.3",
- []OptionParameterInterface{p1, p2, p3, p4})
+ []OptionParameterInterface{p1, p2, p3, p4, p5})
}
func update() *BGPMessage {