summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorYuji Oshima <yuji.oshima0x3fd@gmail.com>2015-03-21 08:08:43 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-21 08:08:43 +0900
commit28feabe1ef3961e05e0e109551021f0bc8902abe (patch)
tree5b055cd546c0561e4fd2ac1cdb70a07fc17d6f3e /table/destination.go
parent84f6e0b04cc48289d342d0b904c43ab19ba2a427 (diff)
table: add EVPN route family support
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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
+}