diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-02-21 14:10:29 +0900 |
---|---|---|
committer | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-02-21 14:57:30 +0900 |
commit | 82ce8fec0e3836aeedb1e15910181d4c29fbaee6 (patch) | |
tree | 98a2f1ed3040b9f7a909dfc699bde73006f17a9c /packet/bgp/bgp_test.go | |
parent | 0bc195ce7eb43c7403683171dc5700cd1599b8c9 (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.go | 2 |
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) |