mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
api: add GwAddress to EVPNIPPrefixRoute
This commit is contained in:
@@ -391,6 +391,7 @@ func MarshalNLRI(value bgp.AddrPrefixInterface) *any.Any {
|
||||
IpPrefix: r.IPPrefix.String(),
|
||||
IpPrefixLen: uint32(r.IPPrefixLength),
|
||||
Label: r.Label,
|
||||
GwAddress: r.GWIPAddress.String(),
|
||||
}
|
||||
}
|
||||
case *bgp.LabeledVPNIPAddrPrefix:
|
||||
|
||||
@@ -652,6 +652,7 @@ func Test_MpReachNLRIAttribute_EVPN_Prefix_Route(t *testing.T) {
|
||||
IpPrefixLen: 24,
|
||||
IpPrefix: "192.168.101.0",
|
||||
Label: 200,
|
||||
GwAddress: "172.16.101.1",
|
||||
})
|
||||
assert.Nil(err)
|
||||
nlris = append(nlris, a)
|
||||
|
||||
Reference in New Issue
Block a user