@Service public class RoutingConfigurationImpl extends Object implements RoutingConfigurationService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.config.NetworkConfigService |
configService |
protected org.onosproject.core.CoreService |
coreService |
protected InterfaceService |
interfaceService |
protected org.onosproject.net.config.NetworkConfigRegistry |
registry |
CONFIG_CLASS, REACTIVE_ROUTING_APP_ID| Constructor and Description |
|---|
RoutingConfigurationImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
Set<org.onosproject.net.ConnectPoint> |
getBgpPeerConnectPoints()
Retrieves the entire set of connect points connected to BGP peers in the
network.
|
org.onlab.packet.MacAddress |
getVirtualGatewayMacAddress() |
boolean |
isIpAddressLocal(org.onlab.packet.IpAddress ipAddress)
Evaluates whether an IP address belongs to local SDN network.
|
boolean |
isIpPrefixLocal(org.onlab.packet.IpPrefix ipPrefix)
Evaluates whether an IP prefix belongs to local SDN network.
|
boolean |
isVirtualGatewayIpAddress(org.onlab.packet.IpAddress ipAddress)
Evaluates whether an IP address is a virtual gateway IP address.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigRegistry registry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigService configService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected InterfaceService interfaceService
@Activate public void activate()
@Deactivate public void deactivate()
public boolean isIpAddressLocal(org.onlab.packet.IpAddress ipAddress)
RoutingConfigurationServiceisIpAddressLocal in interface RoutingConfigurationServiceipAddress - the IP address to evaluatepublic boolean isIpPrefixLocal(org.onlab.packet.IpPrefix ipPrefix)
RoutingConfigurationServiceisIpPrefixLocal in interface RoutingConfigurationServiceipPrefix - the IP prefix to evaluatepublic boolean isVirtualGatewayIpAddress(org.onlab.packet.IpAddress ipAddress)
RoutingConfigurationServiceisVirtualGatewayIpAddress in interface RoutingConfigurationServiceipAddress - the IP address to evaluatepublic org.onlab.packet.MacAddress getVirtualGatewayMacAddress()
getVirtualGatewayMacAddress in interface RoutingConfigurationServicepublic Set<org.onosproject.net.ConnectPoint> getBgpPeerConnectPoints()
RoutingConfigurationServicegetBgpPeerConnectPoints in interface RoutingConfigurationService