diff options
Diffstat (limited to 'table/destination.go')
-rw-r--r-- | table/destination.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/table/destination.go b/table/destination.go index cfd411ce..ead4797a 100644 --- a/table/destination.go +++ b/table/destination.go @@ -1041,3 +1041,15 @@ func (evpnd *EVPNDestination) MarshalJSON() ([]byte, error) { BestPathIdx: idx, }) } + +type EncapDestination struct { + *DestinationDefault +} + +func NewEncapDestination(nlri bgp.AddrPrefixInterface) *EncapDestination { + d := NewDestinationDefault(nlri) + d.ROUTE_FAMILY = bgp.RF_ENCAP + return &EncapDestination{ + DestinationDefault: d, + } +} |