api: add GwAddress to EVPNIPPrefixRoute

This commit is contained in:
oc
2018-09-29 22:52:15 +08:00
parent 94e70ba60a
commit 329c2d316e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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:
+1
View File
@@ -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)