summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/bgp_test.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-02-21 14:10:29 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2018-02-21 14:57:30 +0900
commit82ce8fec0e3836aeedb1e15910181d4c29fbaee6 (patch)
tree98a2f1ed3040b9f7a909dfc699bde73006f17a9c /packet/bgp/bgp_test.go
parent0bc195ce7eb43c7403683171dc5700cd1599b8c9 (diff)
packet/bgp: Rename AigpTLV to AigpTLVInterface
The other interface types in "packet/bgp" package have "Interface" suffix. This patch fixes to follow this naming convention. Golang's naming convention recommends to use "er" suffix though. Also, this patch moves the AIGP TLVs definitions to the near of the PathAttributeAigp structure and defines NewAigpTLVDefault function. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'packet/bgp/bgp_test.go')
-rw-r--r--packet/bgp/bgp_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/bgp_test.go b/packet/bgp/bgp_test.go
index bb003bac..1b9df371 100644
--- a/packet/bgp/bgp_test.go
+++ b/packet/bgp/bgp_test.go
@@ -486,7 +486,7 @@ func Test_FlowSpecNlriv6(t *testing.T) {
func Test_Aigp(t *testing.T) {
assert := assert.New(t)
m := NewAigpTLVIgpMetric(1000)
- a1 := NewPathAttributeAigp([]AigpTLV{m})
+ a1 := NewPathAttributeAigp([]AigpTLVInterface{m})
buf1, err := a1.Serialize()
assert.Nil(err)
a2 := NewPathAttributeAigp(nil)