public class EvpnRoute extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EvpnRoute.Source
Source of the route.
|
| Constructor and Description |
|---|
EvpnRoute(EvpnRoute.Source source,
org.onlab.packet.MacAddress prefixMac,
org.onlab.packet.IpPrefix prefix,
org.onlab.packet.IpAddress nextHop,
RouteDistinguisher rd,
List<VpnRouteTarget> importRtList,
List<VpnRouteTarget> exportRtList,
Label label)
Constructor to initialize the parameters.
|
EvpnRoute(EvpnRoute.Source source,
org.onlab.packet.MacAddress prefixMac,
org.onlab.packet.IpPrefix prefix,
org.onlab.packet.IpAddress nextHop,
String rdToString,
List<VpnRouteTarget> importRtList,
List<VpnRouteTarget> exportRtList,
int labelToInt)
Constructor to initialize the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
EvpnPrefix |
evpnPrefix()
Returns the IPv4 address.
|
List<VpnRouteTarget> |
exportRouteTarget()
Returns the Route targets.
|
int |
hashCode() |
List<VpnRouteTarget> |
importRouteTarget()
Returns the Route targets.
|
org.onlab.packet.IpAddress |
ipNextHop()
Returns the next hop IP address.
|
Label |
label()
Returns the label.
|
EvpnNextHop |
nextHop() |
org.onlab.packet.IpPrefix |
prefixIp()
Returns the IPv4 address.
|
org.onlab.packet.MacAddress |
prefixMac()
Returns the address.
|
RouteDistinguisher |
routeDistinguisher()
Returns the routeDistinguisher.
|
void |
setExportRtList(List<VpnRouteTarget> exportRtList)
Set export list.
|
void |
setImportRtList(List<VpnRouteTarget> importRtList)
Set import list.
|
EvpnRoute.Source |
source()
Returns the route source.
|
String |
toString() |
public EvpnRoute(EvpnRoute.Source source, org.onlab.packet.MacAddress prefixMac, org.onlab.packet.IpPrefix prefix, org.onlab.packet.IpAddress nextHop, RouteDistinguisher rd, List<VpnRouteTarget> importRtList, List<VpnRouteTarget> exportRtList, Label label)
source - route sourceprefixMac - mac addressprefix - ip addressnextHop - evpn nexthoprd - route distinguisherimportRtList - import route targetsexportRtList - export route targetslabel - evpn route labelpublic EvpnRoute(EvpnRoute.Source source, org.onlab.packet.MacAddress prefixMac, org.onlab.packet.IpPrefix prefix, org.onlab.packet.IpAddress nextHop, String rdToString, List<VpnRouteTarget> importRtList, List<VpnRouteTarget> exportRtList, int labelToInt)
source - route sourceprefixMac - mac addressprefix - ip addressnextHop - evpn nexthoprdToString - route distinguisherimportRtList - import route targetsexportRtList - export route targetslabelToInt - evpn route labelpublic EvpnRoute.Source source()
public org.onlab.packet.MacAddress prefixMac()
public org.onlab.packet.IpPrefix prefixIp()
public EvpnPrefix evpnPrefix()
public org.onlab.packet.IpAddress ipNextHop()
public EvpnNextHop nextHop()
public RouteDistinguisher routeDistinguisher()
public List<VpnRouteTarget> importRouteTarget()
public List<VpnRouteTarget> exportRouteTarget()
public void setImportRtList(List<VpnRouteTarget> importRtList)
importRtList - import listpublic void setExportRtList(List<VpnRouteTarget> exportRtList)
exportRtList - export listpublic Label label()