Class InterVpnLinkDataComposite
- java.lang.Object
-
- org.opendaylight.netvirt.vpnmanager.api.intervpnlink.InterVpnLinkDataComposite
-
public class InterVpnLinkDataComposite extends java.lang.Object
It holds all info about an InterVpnLink, combining both configurational and stateful.
-
-
Constructor Summary
Constructors Constructor Description InterVpnLinkDataComposite(InterVpnLinkState interVpnLinkState)
InterVpnLinkDataComposite(InterVpnLink interVpnLink)
InterVpnLinkDataComposite(InterVpnLink interVpnLink, InterVpnLinkState interVpnLinkState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<org.opendaylight.yangtools.yang.common.Uint64>
getEndpointDpnsByIpAddr(java.lang.String endpointIp)
java.util.List<org.opendaylight.yangtools.yang.common.Uint64>
getEndpointDpnsByVpnName(java.lang.String vpnUuid)
@Nullable java.lang.String
getEndpointIpAddr(java.lang.String vpnUuid)
java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32>
getEndpointLportTagByIpAddr(java.lang.String endpointIp)
java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32>
getEndpointLportTagByVpnName(java.lang.String vpnName)
java.util.List<org.opendaylight.yangtools.yang.common.Uint64>
getFirstEndpointDpns()
java.util.Optional<java.lang.String>
getFirstEndpointIpAddr()
java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32>
getFirstEndpointLportTag()
java.util.Optional<java.lang.String>
getFirstEndpointVpnUuid()
InterVpnLink
getInterVpnLinkConfig()
@Nullable java.lang.String
getInterVpnLinkName()
InterVpnLinkState
getInterVpnLinkState()
@Nullable java.lang.String
getOtherEndpoint(java.lang.String vpnUuid)
java.util.List<org.opendaylight.yangtools.yang.common.Uint64>
getOtherEndpointDpnsByIpAddr(java.lang.String endpointIp)
java.util.List<org.opendaylight.yangtools.yang.common.Uint64>
getOtherEndpointDpnsByVpnName(java.lang.String vpnUuid)
@Nullable java.lang.String
getOtherEndpointIpAddr(java.lang.String vpnUuid)
java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32>
getOtherEndpointLportTagByVpnName(java.lang.String vpnName)
@Nullable java.lang.String
getOtherVpnName(java.lang.String vpnName)
@Nullable java.lang.String
getOtherVpnNameByIpAddress(java.lang.String endpointIpAddr)
java.util.List<org.opendaylight.yangtools.yang.common.Uint64>
getSecondEndpointDpns()
java.util.Optional<java.lang.String>
getSecondEndpointIpAddr()
java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32>
getSecondEndpointLportTag()
java.util.Optional<java.lang.String>
getSecondEndpointVpnUuid()
java.util.Optional<InterVpnLinkState.State>
getState()
@Nullable java.lang.String
getVpnNameByIpAddress(java.lang.String endpointIpAddr)
int
hashCode()
boolean
isActive()
boolean
isBgpRoutesLeaking()
boolean
isComplete()
boolean
isConnectedRoutesLeaking()
boolean
isFirstEndpointIpAddr(java.lang.String endpointIp)
boolean
isFirstEndpointVpnName(java.lang.String vpnName)
boolean
isIpAddrTheOtherVpnEndpoint(java.lang.String ipAddr, java.lang.String vpnUuid)
boolean
isSecondEndpointIpAddr(java.lang.String endpointIp)
boolean
isSecondEndpointVpnName(java.lang.String vpnName)
boolean
isStaticRoutesLeaking()
boolean
isVpnLinked(java.lang.String vpnName)
void
setInterVpnLinkConfig(InterVpnLink interVpnLink)
void
setInterVpnLinkState(InterVpnLinkState interVpnLinkState)
boolean
stepsOnDpn(java.math.BigInteger dpnId)
java.lang.String
toString()
-
-
-
Constructor Detail
-
InterVpnLinkDataComposite
public InterVpnLinkDataComposite(InterVpnLink interVpnLink)
-
InterVpnLinkDataComposite
public InterVpnLinkDataComposite(InterVpnLinkState interVpnLinkState)
-
InterVpnLinkDataComposite
public InterVpnLinkDataComposite(InterVpnLink interVpnLink, InterVpnLinkState interVpnLinkState)
-
-
Method Detail
-
getInterVpnLinkConfig
public InterVpnLink getInterVpnLinkConfig()
-
setInterVpnLinkConfig
public void setInterVpnLinkConfig(InterVpnLink interVpnLink)
-
getInterVpnLinkState
public InterVpnLinkState getInterVpnLinkState()
-
setInterVpnLinkState
public void setInterVpnLinkState(InterVpnLinkState interVpnLinkState)
-
isComplete
public boolean isComplete()
-
getState
public java.util.Optional<InterVpnLinkState.State> getState()
-
isActive
public boolean isActive()
-
stepsOnDpn
public boolean stepsOnDpn(java.math.BigInteger dpnId)
-
isBgpRoutesLeaking
public boolean isBgpRoutesLeaking()
-
isStaticRoutesLeaking
public boolean isStaticRoutesLeaking()
-
isConnectedRoutesLeaking
public boolean isConnectedRoutesLeaking()
-
isFirstEndpointVpnName
public boolean isFirstEndpointVpnName(java.lang.String vpnName)
-
isSecondEndpointVpnName
public boolean isSecondEndpointVpnName(java.lang.String vpnName)
-
isVpnLinked
public boolean isVpnLinked(java.lang.String vpnName)
-
isFirstEndpointIpAddr
public boolean isFirstEndpointIpAddr(java.lang.String endpointIp)
-
isSecondEndpointIpAddr
public boolean isSecondEndpointIpAddr(java.lang.String endpointIp)
-
isIpAddrTheOtherVpnEndpoint
public boolean isIpAddrTheOtherVpnEndpoint(java.lang.String ipAddr, java.lang.String vpnUuid)
-
getInterVpnLinkName
public @Nullable java.lang.String getInterVpnLinkName()
-
getFirstEndpointVpnUuid
public java.util.Optional<java.lang.String> getFirstEndpointVpnUuid()
-
getFirstEndpointIpAddr
public java.util.Optional<java.lang.String> getFirstEndpointIpAddr()
-
getFirstEndpointLportTag
public java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32> getFirstEndpointLportTag()
-
getFirstEndpointDpns
public java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getFirstEndpointDpns()
-
getSecondEndpointVpnUuid
public java.util.Optional<java.lang.String> getSecondEndpointVpnUuid()
-
getSecondEndpointIpAddr
public java.util.Optional<java.lang.String> getSecondEndpointIpAddr()
-
getSecondEndpointLportTag
public java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32> getSecondEndpointLportTag()
-
getSecondEndpointDpns
public java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getSecondEndpointDpns()
-
getVpnNameByIpAddress
public @Nullable java.lang.String getVpnNameByIpAddress(java.lang.String endpointIpAddr)
-
getOtherEndpoint
public @Nullable java.lang.String getOtherEndpoint(java.lang.String vpnUuid)
-
getOtherVpnNameByIpAddress
public @Nullable java.lang.String getOtherVpnNameByIpAddress(java.lang.String endpointIpAddr)
-
getEndpointLportTagByVpnName
public java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32> getEndpointLportTagByVpnName(java.lang.String vpnName)
-
getEndpointLportTagByIpAddr
public java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32> getEndpointLportTagByIpAddr(java.lang.String endpointIp)
-
getOtherEndpointLportTagByVpnName
public java.util.Optional<org.opendaylight.yangtools.yang.common.Uint32> getOtherEndpointLportTagByVpnName(java.lang.String vpnName)
-
getOtherVpnName
public @Nullable java.lang.String getOtherVpnName(java.lang.String vpnName)
-
getOtherEndpointIpAddr
public @Nullable java.lang.String getOtherEndpointIpAddr(java.lang.String vpnUuid)
-
getEndpointIpAddr
public @Nullable java.lang.String getEndpointIpAddr(java.lang.String vpnUuid)
-
getEndpointDpnsByVpnName
public java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getEndpointDpnsByVpnName(java.lang.String vpnUuid)
-
getOtherEndpointDpnsByVpnName
public java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getOtherEndpointDpnsByVpnName(java.lang.String vpnUuid)
-
getEndpointDpnsByIpAddr
public java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getEndpointDpnsByIpAddr(java.lang.String endpointIp)
-
getOtherEndpointDpnsByIpAddr
public java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getOtherEndpointDpnsByIpAddr(java.lang.String endpointIp)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-