diff --git a/protocols/bgp/server/bgp_api_test.go b/protocols/bgp/server/bgp_api_test.go index 0fa97120d7d1653f5dd123281335f04416a92929..9793094eb66c6527d07ac9256283824d64623a93 100644 --- a/protocols/bgp/server/bgp_api_test.go +++ b/protocols/bgp/server/bgp_api_test.go @@ -120,11 +120,11 @@ func TestDumpRIBInOut(t *testing.T) { Paths: []*routeapi.Path{ { Type: routeapi.Path_BGP, - BGPPath: &routeapi.BGPPath{ + BgpPath: &routeapi.BGPPath{ OriginatorId: 1, NextHop: bnet.IPv4FromOctets(100, 100, 100, 100).ToProto(), Source: bnet.IPv4FromOctets(100, 100, 100, 100).ToProto(), - ASPath: nil, + AsPath: nil, Communities: nil, LargeCommunities: nil, UnknownAttributes: nil, @@ -203,16 +203,16 @@ func TestDumpRIBInOut(t *testing.T) { Paths: []*routeapi.Path{ { Type: routeapi.Path_BGP, - BGPPath: &routeapi.BGPPath{ + BgpPath: &routeapi.BGPPath{ OriginatorId: 1, LocalPref: 1000, - MED: 2000, + Med: 2000, NextHop: bnet.IPv4FromOctets(100, 100, 100, 100).ToProto(), Source: bnet.IPv4FromOctets(100, 100, 100, 100).ToProto(), - ASPath: []*routeapi.ASPathSegment{ + AsPath: []*routeapi.ASPathSegment{ { - ASSequence: true, - ASNs: []uint32{15169, 3320}, + AsSequence: true, + Asns: []uint32{15169, 3320}, }, }, Communities: []uint32{100, 200, 300}, diff --git a/route/bgp_path_test.go b/route/bgp_path_test.go index 618e8e50debdbbcb2eabac670421c36b47d2cf0f..9fa3318e15b2e2609a31ab3c2712945244d2d40d 100644 --- a/route/bgp_path_test.go +++ b/route/bgp_path_test.go @@ -14,18 +14,18 @@ func TestBGPPathFromProtoBGPPath(t *testing.T) { PathIdentifier: 100, NextHop: bnet.IPv4FromOctets(10, 0, 0, 1).ToProto(), LocalPref: 1000, - ASPath: []*api.ASPathSegment{ + AsPath: []*api.ASPathSegment{ { - ASSequence: true, - ASNs: []uint32{ + AsSequence: true, + Asns: []uint32{ 3320, 201701, }, }, }, Origin: 1, - EBGP: true, - BGPIdentifier: 123, + Ebgp: true, + BgpIdentifier: 123, Source: bnet.IPv4FromOctets(10, 0, 0, 2).ToProto(), Communities: []uint32{100, 200, 300}, LargeCommunities: []*api.LargeCommunity{