summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/table/destination.go b/table/destination.go
index edcda695..f805d5e3 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -992,3 +992,16 @@ func (ipv4vpnd *IPv4VPNDestination) MarshalJSON() ([]byte, error) {
BestPathIdx: idx,
})
}
+
+type EVPNDestination struct {
+ *DestinationDefault
+ //need structure
+}
+
+func NewEVPNDestination(nlri bgp.AddrPrefixInterface) *EVPNDestination {
+ EVPNDestination := &EVPNDestination{}
+ EVPNDestination.DestinationDefault = NewDestinationDefault(nlri)
+ EVPNDestination.DestinationDefault.ROUTE_FAMILY = bgp.RF_EVPN
+ //need Processing
+ return EVPNDestination
+}