diff options
author | Yuji Oshima <yuji.oshima0x3fd@gmail.com> | 2015-03-21 08:08:43 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-21 08:08:43 +0900 |
commit | 28feabe1ef3961e05e0e109551021f0bc8902abe (patch) | |
tree | 5b055cd546c0561e4fd2ac1cdb70a07fc17d6f3e /table/destination.go | |
parent | 84f6e0b04cc48289d342d0b904c43ab19ba2a427 (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.go | 13 |
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 +} |