Skip to content
Snippets Groups Projects
Commit 4d6b9543 authored by takt's avatar takt
Browse files

Fix tests

parent 3af2649c
No related branches found
No related tags found
No related merge requests found
......@@ -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},
......
......@@ -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{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment