Class NatUtil


  • public final class NatUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addFlow​(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yangtools.yang.common.Uint64 dpId, short tableId, java.lang.String flowId, int priority, java.lang.String flowName, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<? extends org.opendaylight.genius.mdsalutil.MatchInfoBase> matches, java.util.List<org.opendaylight.genius.mdsalutil.InstructionInfo> instructions)  
      static void addPrefixToBGP​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, IBgpManager bgpManager, IFibManager fibManager, java.lang.String vpnName, java.lang.String rd, java.lang.String prefix, java.lang.String nextHopIp, @Nullable java.lang.String parentVpnRd, @Nullable java.lang.String macAddress, org.opendaylight.yangtools.yang.common.Uint32 label, org.opendaylight.yangtools.yang.common.Uint32 l3vni, RouteOrigin origin, org.opendaylight.yangtools.yang.common.Uint64 dpId)  
      static void addPseudoPortToElanDpn​(java.lang.String elanInstanceName, java.lang.String pseudoPortId, org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      static void addToDpnRoutersMap​(java.lang.String routerName, java.lang.String interfaceName, org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)  
      static void addToNeutronRouterDpnsMap​(java.lang.String routerName, java.lang.String interfaceName, org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)  
      static org.opendaylight.genius.mdsalutil.FlowEntity buildFlowEntity​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, java.lang.String flowId)  
      static org.opendaylight.genius.mdsalutil.FlowEntity buildFlowEntity​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.lang.String flowId)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<RouterToNaptSwitch> buildNaptSwitchIdentifier​(java.lang.String routerId)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<RouterToNaptSwitch> buildNaptSwitchRouterIdentifier​(java.lang.String routerId)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IpPort> buildSnatIntIpPortIdentifier​(java.lang.Long routerId, java.lang.String internalIpAddress)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IntIpProtoType> buildSnatIntIpPortIdentifier​(org.opendaylight.yangtools.yang.common.Uint32 routerId, java.lang.String internalIpAddress, ProtocolTypes protocolType)  
      static boolean checkForRoutersWithSameExtNetAndNaptSwitch​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId, java.lang.String routerName, org.opendaylight.yangtools.yang.common.Uint64 dpnId)  
      static boolean checkForRoutersWithSameExtSubnetAndNaptSwitch​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid externalSubnetId, java.lang.String routerName, org.opendaylight.yangtools.yang.common.Uint64 dpnId)  
      static void createGroupIdPool​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager)  
      static void deletePrefixToInterface​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String ipPrefix)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation extractBridgeAugmentation​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)  
      static com.google.common.base.Optional<NaptSwitches> getAllPrimaryNaptSwitches​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker)  
      static @Nullable java.lang.String getAssociatedVPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)  
      static @Nullable java.lang.String getAssociatedVPN​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)  
      static org.opendaylight.yangtools.yang.common.Uint32 getBgpVpnId​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.String routerName)  
      static com.google.common.base.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> getBridgeRefInfo​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      static org.opendaylight.yangtools.yang.common.Uint64 getCookieNaptFlow​(org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      static org.opendaylight.yangtools.yang.common.Uint64 getCookieSnatFlow​(long routerId)  
      static java.lang.String getDefaultFibRouteToSNATForSubnetJobKey​(java.lang.String subnetName, org.opendaylight.yangtools.yang.common.Uint64 dpnId)  
      static org.opendaylight.yangtools.yang.common.Uint64 getDpIdFromInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)  
      static org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManagerRpcService, java.lang.String ifName)  
      static @Nullable java.lang.String getDpnFromNodeConnectorId​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)  
      static java.lang.String getDpnFromNodeRef​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef node)  
      static @NonNull java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getDpnsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.String routerUuid)  
      static @NonNull java.util.List<org.opendaylight.genius.mdsalutil.ActionInfo> getEgressActionsForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService odlInterfaceRpcService, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService, org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager, java.lang.String ifName, @Nullable org.opendaylight.yangtools.yang.common.Uint32 tunnelKey, int pos, boolean internalTunnelInterface)  
      static @NonNull java.util.List<org.opendaylight.genius.mdsalutil.ActionInfo> getEgressActionsForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService odlInterfaceRpcService, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService, org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager, java.lang.String ifName, org.opendaylight.yangtools.yang.common.Uint32 tunnelKey, boolean internalTunnelInterface)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<DpnInterfaces> getElanDpnInterfaceOperationalDataPath​(java.lang.String elanInstanceName, org.opendaylight.yangtools.yang.common.Uint64 dpId)  
      static @Nullable ElanInstance getElanInstanceByName​(java.lang.String elanInstanceName, org.opendaylight.controller.md.sal.binding.api.DataBroker broker)  
      static @Nullable ElanInstance getElanInstanceByName​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, java.lang.String elanInstanceName)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance> getElanInstanceConfigurationDataPath​(java.lang.String elanInstanceName)  
      static @Nullable java.lang.String getElanInstancePhysicalNetwok​(java.lang.String elanInstanceName, org.opendaylight.controller.md.sal.binding.api.DataBroker broker)  
      static @Nullable java.lang.String getEndpointIpAddressForDPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint64 dpnId)  
      static java.lang.String[] getExternalIpAndPrefix​(java.lang.String leastLoadedExtIpAddr)  
      static @Nullable IpPortExternal getExternalIpPortMap​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 routerId, java.lang.String internalIpAddress, java.lang.String internalPort, NAPTEntryEvent.Protocol protocol)  
      static @NonNull java.util.List<java.lang.String> getExternalIpsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.String routerName)  
      static @NonNull java.util.Collection<java.lang.String> getExternalIpsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      static @NonNull java.util.Map<java.lang.String,​org.opendaylight.yangtools.yang.common.Uint32> getExternalIpsLabelForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      protected static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getExternalSubnetForRouterExternalIp​(java.lang.String externalIpAddress, Routers router)  
      static @NonNull java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getExternalSubnetIdsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, @Nullable java.lang.String routerName)  
      static @NonNull java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getExternalSubnetIdsFromExternalIps​(@Nullable java.util.List<ExternalIps> externalIps)  
      static ExternalSubnets getExternalSubnets​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      protected static org.opendaylight.yangtools.yang.common.Uint32 getExternalSubnetVpnId​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)  
      protected static org.opendaylight.yangtools.yang.common.Uint32 getExternalSubnetVpnId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)  
      protected static org.opendaylight.yangtools.yang.common.Uint32 getExternalSubnetVpnIdForRouterExternalIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.String externalIpAddress, Routers router)  
      static org.opendaylight.yangtools.yang.common.Uint32 getExternalVpnIdForExtNetwork​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid externalNwUuid)  
      protected static @Nullable java.lang.String getFloatingIpPortMacFromFloatingIpId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid floatingIpId)  
      protected static @Nullable java.lang.String getFloatingIpPortMacFromFloatingIpId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid floatingIpId)  
      static @NonNull java.util.List<Ports> getFloatingIpPortsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid routerUuid)  
      protected static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getFloatingIpPortSubnetIdFromFloatingIpId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid floatingIpId)  
      protected static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getFloatingIpPortSubnetIdFromFloatingIpId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid floatingIpId)  
      static java.lang.String getFlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, java.net.InetAddress destPrefix, org.opendaylight.yangtools.yang.common.Uint32 vpnId)  
      static java.lang.String getFlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, org.opendaylight.yangtools.yang.common.Uint32 routerID, java.lang.String ip)  
      static java.lang.String getGroupIdKey​(java.lang.String routerName)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> getGroupInstanceId​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 groupId)  
      static @Nullable IpPort getInternalIpPortInfo​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.Long routerId, java.lang.String internalIpAddress)  
      static @NonNull java.util.List<org.opendaylight.yangtools.yang.common.Uint16> getInternalIpPortListInfo​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yangtools.yang.common.Uint32 routerId, java.lang.String internalIpAddress, ProtocolTypes protocolType)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IpMapping> getIpMappingBuilder​(org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      static @Nullable IpPortMapping getIportMapping​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IpPortMapping> getIportMappingIdentifier​(org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      static java.lang.String getIpv6FlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, org.opendaylight.yangtools.yang.common.Uint32 routerID)  
      static @Nullable LearntVpnVipToPortData getLearntVpnVipToPortData​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<LearntVpnVipToPortData> getLearntVpnVipToPortDataId()  
      static @Nullable java.lang.String getLeastLoadedExternalIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yangtools.yang.common.Uint32 segmentId)  
      static @NonNull java.util.List<java.lang.String> getListOfRdsFromVpnInstance​(VpnInstance vpnInstance)  
      static java.util.Map<java.lang.String,​java.lang.String> getMultiValueMap​(java.lang.String multiKeyValueStr)  
      static java.lang.String getNaptFlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, java.lang.String routerID, java.lang.String ip, int port, java.lang.String protocol)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NaptSwitches> getNaptSwitchesIdentifier()  
      static org.opendaylight.yangtools.yang.common.Uint32 getNetworkVpnIdFromRouterId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port getNeutronPortForIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress targetIP, java.lang.String deviceType)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port getNeutronPortForRouterGetewayIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress targetIP)  
      static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port> getNeutronPorts​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker)  
      static @Nullable java.lang.String getNeutronRouterNamebyUuid​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid routerUuid)  
      static java.util.Map<java.lang.String,​java.lang.String> getOpenvswitchOtherConfigMap​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      static @Nullable java.lang.String getOpenvswitchOtherConfigs​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node, java.lang.String key, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      protected static @NonNull com.google.common.base.Optional<Subnets> getOptionalExternalSubnets​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)  
      protected static @NonNull com.google.common.base.Optional<Subnets> getOptionalExternalSubnets​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)  
      static @Nullable org.opendaylight.yangtools.yang.common.Uint64 getPrimaryNaptfromRouterId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      static @Nullable org.opendaylight.yangtools.yang.common.Uint64 getPrimaryNaptfromRouterName​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String routerName)  
      static @Nullable java.lang.String getPrimaryRd​(@Nullable VpnInstance vpnInstance)  
      static @Nullable java.lang.String getPrimaryRd​(java.lang.String vpnName, org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx)  
      static ProtocolTypes getProtocolType​(NAPTEntryEvent.Protocol protocol)  
      static @Nullable java.lang.String getProviderMappings​(org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      static @Nullable ProviderTypes getProviderTypefromNetworkId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)  
      static @Nullable ProviderTypes getProviderTypefromNetworkId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)  
      static @Nullable java.lang.String getRouterIdfromVpnInstance​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String vpnName, java.lang.String ipAddress)  
      static @Nullable java.lang.String getRouterName​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 routerId)  
      static @Nullable Routers getRoutersFromConfigDS​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, java.lang.String routerName)  
      static @Nullable Routers getRoutersFromConfigDS​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, java.lang.String routerName)  
      static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getRouterUuIdsForVpn​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid vpnUuid)  
      static @Nullable java.lang.String getSubnetGwMac​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId, java.lang.String vpnName)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getSubnetIdForFloatingIp​(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port port, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress targetIP)  
      static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getSubnetIdsFromNetworkId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)  
      static @Nullable java.lang.String getSubnetIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)  
      static @NonNull java.lang.String[] getSubnetIpAndPrefix​(java.lang.String subnetString)  
      static @Nullable java.lang.String[] getSubnetIpAndPrefix​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)  
      static @Nullable Subnetmap getSubnetMap​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)  
      static boolean getSwitchStatus​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint64 switchId)  
      static org.opendaylight.yangtools.yang.common.Uint64 getTunnelIdForNonNaptToNaptFlow​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, NatOverVxlanUtil natOverVxlanUtil, IElanService elanManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, org.opendaylight.yangtools.yang.common.Uint32 routerId, java.lang.String routerName)  
      static java.lang.String getTunnelInterfaceName​(org.opendaylight.yangtools.yang.common.Uint64 srcDpId, org.opendaylight.yangtools.yang.common.Uint64 dstDpId, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmManager)  
      static org.opendaylight.yangtools.yang.common.Uint32 getUniqueId​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, java.lang.String poolName, java.lang.String idKey)  
      static org.opendaylight.yangtools.yang.common.Uint32 getVpnId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, @Nullable java.lang.String vpnName)  
      static org.opendaylight.yangtools.yang.common.Uint32 getVpnId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, java.lang.String vpnName)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getVpnIdfromNetworkId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getVpnIdfromNetworkId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)  
      static VpnInstance getVpnIdToVpnInstance​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String vpnName)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VpnInstance> getVpnInstanceIdentifier​(java.lang.String vpnName)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VpnInstance> getVpnInstanceToVpnIdIdentifier​(java.lang.String vpnName)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VpnInterfaceOpDataEntry> getVpnInterfaceOpDataEntryIdentifier​(java.lang.String vpnInterfaceName, java.lang.String vpnName)  
      static @Nullable java.lang.String getVpnRd​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String vpnName)  
      static @Nullable java.lang.String getVpnRd​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, java.lang.String vpnName)  
      static void handleSNATForDPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, NaptSwitchHA naptSwitchHA, org.opendaylight.yangtools.yang.common.Uint64 dpnId, Routers extRouters, org.opendaylight.yangtools.yang.common.Uint32 routerId, org.opendaylight.yangtools.yang.common.Uint32 routerVpnId, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, ProviderTypes extNwProvType, org.opendaylight.serviceutils.upgrade.UpgradeState upgradeState)  
      static void installRouterGwFlows​(org.opendaylight.genius.infra.ManagedNewTransactionRunner txRunner, IVpnManager vpnManager, Routers router, org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId, int addOrRemove)  
      static boolean isExternalNetwork​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)  
      static boolean isFloatingIpPresentForDpn​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String rd, java.lang.String vpnName, java.lang.String externalIp, java.lang.Boolean isMoreThanOneFipCheckOnDpn)  
      static boolean isIpInSubnet​(java.lang.String ipAddress, java.lang.String start, java.lang.String end)  
      static boolean isIPv6Subnet​(java.lang.String prefix)  
      static boolean isLastExternalRouter​(java.lang.String networkid, java.lang.String routerName, NatDataUtil natDataUtil)  
      static java.lang.Boolean isOpenStackVniSemanticsEnforcedForGreAndVxlan​(IElanService elanManager, ProviderTypes extNwProvType)  
      static java.lang.Boolean isRouterInterfacePort​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String ifaceName)  
      static void makePreDnatToSnatTableEntry​(org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yangtools.yang.common.Uint64 naptDpnId, short tableId, org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)  
      static @NonNull com.google.common.base.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> readOvsdbNode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node bridgeNode, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      static org.opendaylight.yangtools.yang.common.Uint32 releaseId​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, java.lang.String poolName, java.lang.String idKey)  
      static void removeFlow​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yangtools.yang.common.Uint64 dpId, short tableId, java.lang.String flowId)  
      static void removeFromDpnRoutersMap​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String routerName, java.lang.String vpnInterfaceName, org.opendaylight.yangtools.yang.common.Uint64 curDpnId, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService ifaceMgrRpcService, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)  
      static void removeFromNeutronRouterDpnsMap​(java.lang.String routerName, java.lang.String vpnInterfaceName, org.opendaylight.yangtools.yang.common.Uint64 dpId, @NonNull org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)  
      static void removeFromNeutronRouterDpnsMap​(java.lang.String routerName, org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)  
      static void removePreDnatToSnatTableEntry​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yangtools.yang.common.Uint64 naptDpnId)  
      static void removePrefixFromBGP​(IBgpManager bgpManager, IFibManager fibManager, java.lang.String rd, java.lang.String prefix, java.lang.String vpnName)  
      static void removePseudoPortFromElanDpn​(java.lang.String elanInstanceName, java.lang.String pseudoPortId, org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)  
      static void removeSnatEntriesForPort​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, NaptManager naptManager, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, NeutronvpnService neutronVpnService, java.lang.String interfaceName, java.lang.String routerName)  
      static void removeSNATFromDPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, NaptSwitchHA naptSwitchHA, org.opendaylight.yangtools.yang.common.Uint64 dpnId, Routers extRouter, org.opendaylight.yangtools.yang.common.Uint32 routerId, org.opendaylight.yangtools.yang.common.Uint32 routerVpnId, java.lang.String externalVpnName, ProviderTypes extNwProvType, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)  
      static java.lang.String validateAndAddNetworkMask​(java.lang.String ipAddress)  
      static java.lang.Boolean validateIsIntefacePartofRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String routerName, java.lang.String interfaceName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCookieSnatFlow

        public static org.opendaylight.yangtools.yang.common.Uint64 getCookieSnatFlow​(long routerId)
      • getCookieNaptFlow

        public static org.opendaylight.yangtools.yang.common.Uint64 getCookieNaptFlow​(org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • getVpnId

        public static org.opendaylight.yangtools.yang.common.Uint32 getVpnId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                             @Nullable java.lang.String vpnName)
      • getVpnId

        public static org.opendaylight.yangtools.yang.common.Uint32 getVpnId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                                                             java.lang.String vpnName)
      • getNetworkVpnIdFromRouterId

        public static org.opendaylight.yangtools.yang.common.Uint32 getNetworkVpnIdFromRouterId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • validateIsIntefacePartofRouter

        public static java.lang.Boolean validateIsIntefacePartofRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                       java.lang.String routerName,
                                                                       java.lang.String interfaceName)
      • getVpnInstanceToVpnIdIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VpnInstance> getVpnInstanceToVpnIdIdentifier​(java.lang.String vpnName)
      • getFlowRef

        public static java.lang.String getFlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                  short tableId,
                                                  org.opendaylight.yangtools.yang.common.Uint32 routerID,
                                                  java.lang.String ip)
      • getFlowRef

        public static java.lang.String getFlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                  short tableId,
                                                  java.net.InetAddress destPrefix,
                                                  org.opendaylight.yangtools.yang.common.Uint32 vpnId)
      • getNaptFlowRef

        public static java.lang.String getNaptFlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                      short tableId,
                                                      java.lang.String routerID,
                                                      java.lang.String ip,
                                                      int port,
                                                      java.lang.String protocol)
      • getVpnIdfromNetworkId

        public static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getVpnIdfromNetworkId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                                                              org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)
      • getVpnIdfromNetworkId

        public static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getVpnIdfromNetworkId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx,
                                                                                                                                              org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)
      • getProviderTypefromNetworkId

        public static @Nullable ProviderTypes getProviderTypefromNetworkId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                           org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)
      • getProviderTypefromNetworkId

        public static @Nullable ProviderTypes getProviderTypefromNetworkId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx,
                                                                           org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)
      • getPrimaryNaptfromRouterId

        public static @Nullable org.opendaylight.yangtools.yang.common.Uint64 getPrimaryNaptfromRouterId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                         org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • getPrimaryNaptfromRouterName

        public static @Nullable org.opendaylight.yangtools.yang.common.Uint64 getPrimaryNaptfromRouterName​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                           java.lang.String routerName)
      • buildNaptSwitchIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<RouterToNaptSwitch> buildNaptSwitchIdentifier​(java.lang.String routerId)
      • getAllPrimaryNaptSwitches

        public static com.google.common.base.Optional<NaptSwitches> getAllPrimaryNaptSwitches​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
      • getRouterName

        public static @Nullable java.lang.String getRouterName​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                               org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • buildFlowEntity

        public static org.opendaylight.genius.mdsalutil.FlowEntity buildFlowEntity​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                                                   short tableId,
                                                                                   org.opendaylight.yangtools.yang.common.Uint64 cookie,
                                                                                   java.lang.String flowId)
      • buildFlowEntity

        public static org.opendaylight.genius.mdsalutil.FlowEntity buildFlowEntity​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                                                   short tableId,
                                                                                   java.lang.String flowId)
      • getEndpointIpAddressForDPN

        public static @Nullable java.lang.String getEndpointIpAddressForDPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                            org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      • getVpnRd

        public static @Nullable java.lang.String getVpnRd​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                          java.lang.String vpnName)
      • getVpnRd

        public static @Nullable java.lang.String getVpnRd​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx,
                                                          java.lang.String vpnName)
      • getExternalIpPortMap

        public static @Nullable IpPortExternal getExternalIpPortMap​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                    org.opendaylight.yangtools.yang.common.Uint32 routerId,
                                                                    java.lang.String internalIpAddress,
                                                                    java.lang.String internalPort,
                                                                    NAPTEntryEvent.Protocol protocol)
      • getDpnFromNodeConnectorId

        public static @Nullable java.lang.String getDpnFromNodeConnectorId​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)
      • getDpIdFromInterface

        public static org.opendaylight.yangtools.yang.common.Uint64 getDpIdFromInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)
      • getRouterIdfromVpnInstance

        public static @Nullable java.lang.String getRouterIdfromVpnInstance​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                            java.lang.String vpnName,
                                                                            java.lang.String ipAddress)
      • getAssociatedVPN

        public static @Nullable java.lang.String getAssociatedVPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                  org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)
      • getAssociatedVPN

        public static @Nullable java.lang.String getAssociatedVPN​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx,
                                                                  org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)
      • addPrefixToBGP

        public static void addPrefixToBGP​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                          IBgpManager bgpManager,
                                          IFibManager fibManager,
                                          java.lang.String vpnName,
                                          java.lang.String rd,
                                          java.lang.String prefix,
                                          java.lang.String nextHopIp,
                                          @Nullable java.lang.String parentVpnRd,
                                          @Nullable java.lang.String macAddress,
                                          org.opendaylight.yangtools.yang.common.Uint32 label,
                                          org.opendaylight.yangtools.yang.common.Uint32 l3vni,
                                          RouteOrigin origin,
                                          org.opendaylight.yangtools.yang.common.Uint64 dpId)
      • deletePrefixToInterface

        public static void deletePrefixToInterface​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                   org.opendaylight.yangtools.yang.common.Uint32 vpnId,
                                                   java.lang.String ipPrefix)
      • getInternalIpPortListInfo

        public static @NonNull java.util.List<org.opendaylight.yangtools.yang.common.Uint16> getInternalIpPortListInfo​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                                       org.opendaylight.yangtools.yang.common.Uint32 routerId,
                                                                                                                       java.lang.String internalIpAddress,
                                                                                                                       ProtocolTypes protocolType)
      • buildSnatIntIpPortIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IntIpProtoType> buildSnatIntIpPortIdentifier​(org.opendaylight.yangtools.yang.common.Uint32 routerId,
                                                                                                                              java.lang.String internalIpAddress,
                                                                                                                              ProtocolTypes protocolType)
      • buildSnatIntIpPortIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IpPort> buildSnatIntIpPortIdentifier​(java.lang.Long routerId,
                                                                                                                      java.lang.String internalIpAddress)
      • getInternalIpPortInfo

        public static @Nullable IpPort getInternalIpPortInfo​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                             java.lang.Long routerId,
                                                             java.lang.String internalIpAddress)
      • getNaptSwitchesIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NaptSwitches> getNaptSwitchesIdentifier()
      • buildNaptSwitchRouterIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<RouterToNaptSwitch> buildNaptSwitchRouterIdentifier​(java.lang.String routerId)
      • getGroupIdKey

        public static java.lang.String getGroupIdKey​(java.lang.String routerName)
      • getUniqueId

        public static org.opendaylight.yangtools.yang.common.Uint32 getUniqueId​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager,
                                                                                java.lang.String poolName,
                                                                                java.lang.String idKey)
      • releaseId

        public static org.opendaylight.yangtools.yang.common.Uint32 releaseId​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager,
                                                                              java.lang.String poolName,
                                                                              java.lang.String idKey)
      • removePrefixFromBGP

        public static void removePrefixFromBGP​(IBgpManager bgpManager,
                                               IFibManager fibManager,
                                               java.lang.String rd,
                                               java.lang.String prefix,
                                               java.lang.String vpnName)
      • getIportMapping

        public static @Nullable IpPortMapping getIportMapping​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                              org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • getIportMappingIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IpPortMapping> getIportMappingIdentifier​(org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • getIpMappingBuilder

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IpMapping> getIpMappingBuilder​(org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • getExternalIpsForRouter

        public static @NonNull java.util.Collection<java.lang.String> getExternalIpsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                              org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • getExternalIpsForRouter

        public static @NonNull java.util.List<java.lang.String> getExternalIpsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                        java.lang.String routerName)
      • getExternalIpsLabelForRouter

        public static @NonNull java.util.Map<java.lang.String,​org.opendaylight.yangtools.yang.common.Uint32> getExternalIpsLabelForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                                                                org.opendaylight.yangtools.yang.common.Uint32 routerId)
      • getLeastLoadedExternalIp

        public static @Nullable java.lang.String getLeastLoadedExternalIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                          org.opendaylight.yangtools.yang.common.Uint32 segmentId)
      • getSubnetIpAndPrefix

        public static @Nullable java.lang.String[] getSubnetIpAndPrefix​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)
      • getSubnetIpAndPrefix

        public static @NonNull java.lang.String[] getSubnetIpAndPrefix​(java.lang.String subnetString)
      • getSubnetIp

        public static @Nullable java.lang.String getSubnetIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                             org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)
      • getExternalIpAndPrefix

        public static java.lang.String[] getExternalIpAndPrefix​(java.lang.String leastLoadedExtIpAddr)
      • getDpnsForRouter

        public static @NonNull java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getDpnsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                              java.lang.String routerUuid)
      • getBgpVpnId

        public static org.opendaylight.yangtools.yang.common.Uint32 getBgpVpnId​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                java.lang.String routerName)
      • addToNeutronRouterDpnsMap

        public static void addToNeutronRouterDpnsMap​(java.lang.String routerName,
                                                     java.lang.String interfaceName,
                                                     org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                     org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)
                                              throws java.util.concurrent.ExecutionException,
                                                     java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • addToDpnRoutersMap

        public static void addToDpnRoutersMap​(java.lang.String routerName,
                                              java.lang.String interfaceName,
                                              org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                              org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)
                                       throws java.util.concurrent.ExecutionException,
                                              java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • removeFromNeutronRouterDpnsMap

        public static void removeFromNeutronRouterDpnsMap​(java.lang.String routerName,
                                                          org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                          org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)
                                                   throws java.util.concurrent.ExecutionException,
                                                          java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • removeFromNeutronRouterDpnsMap

        public static void removeFromNeutronRouterDpnsMap​(java.lang.String routerName,
                                                          java.lang.String vpnInterfaceName,
                                                          org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                          @NonNull org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)
      • removeFromDpnRoutersMap

        public static void removeFromDpnRoutersMap​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                   java.lang.String routerName,
                                                   java.lang.String vpnInterfaceName,
                                                   org.opendaylight.yangtools.yang.common.Uint64 curDpnId,
                                                   org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService ifaceMgrRpcService,
                                                   org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Operational> operTx)
                                            throws java.util.concurrent.ExecutionException,
                                                   java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getDpnForInterface

        public static org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManagerRpcService,
                                                                                       java.lang.String ifName)
      • getEgressActionsForInterface

        public static @NonNull java.util.List<org.opendaylight.genius.mdsalutil.ActionInfo> getEgressActionsForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService odlInterfaceRpcService,
                                                                                                                         org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService,
                                                                                                                         org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager,
                                                                                                                         java.lang.String ifName,
                                                                                                                         org.opendaylight.yangtools.yang.common.Uint32 tunnelKey,
                                                                                                                         boolean internalTunnelInterface)
      • getEgressActionsForInterface

        public static @NonNull java.util.List<org.opendaylight.genius.mdsalutil.ActionInfo> getEgressActionsForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService odlInterfaceRpcService,
                                                                                                                         org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService,
                                                                                                                         org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager,
                                                                                                                         java.lang.String ifName,
                                                                                                                         @Nullable org.opendaylight.yangtools.yang.common.Uint32 tunnelKey,
                                                                                                                         int pos,
                                                                                                                         boolean internalTunnelInterface)
      • getNeutronPortForRouterGetewayIp

        public static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port getNeutronPortForRouterGetewayIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                                                                                   org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress targetIP)
      • getNeutronPorts

        public static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port> getNeutronPorts​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
      • getNeutronPortForIp

        public static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port getNeutronPortForIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                                                                      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress targetIP,
                                                                                                                                                      java.lang.String deviceType)
      • getSubnetIdForFloatingIp

        public static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getSubnetIdForFloatingIp​(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port port,
                                                                                                                                                 org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress targetIP)
      • getSubnetMap

        public static @Nullable Subnetmap getSubnetMap​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                       org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)
      • getSubnetIdsFromNetworkId

        public static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getSubnetIdsFromNetworkId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                                                                                 org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)
      • getSubnetGwMac

        public static @Nullable java.lang.String getSubnetGwMac​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId,
                                                                java.lang.String vpnName)
      • isIPv6Subnet

        public static boolean isIPv6Subnet​(java.lang.String prefix)
      • getFloatingIpPortMacFromFloatingIpId

        protected static @Nullable java.lang.String getFloatingIpPortMacFromFloatingIpId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                         org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid floatingIpId)
      • getFloatingIpPortMacFromFloatingIpId

        protected static @Nullable java.lang.String getFloatingIpPortMacFromFloatingIpId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                                                                         org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid floatingIpId)
      • getFloatingIpPortSubnetIdFromFloatingIpId

        protected static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getFloatingIpPortSubnetIdFromFloatingIpId​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                                                                                     org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid floatingIpId)
      • getFloatingIpPortSubnetIdFromFloatingIpId

        protected static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getFloatingIpPortSubnetIdFromFloatingIpId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                                                                                                                                                     org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid floatingIpId)
      • getRoutersFromConfigDS

        public static @Nullable Routers getRoutersFromConfigDS​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                               java.lang.String routerName)
      • getRoutersFromConfigDS

        public static @Nullable Routers getRoutersFromConfigDS​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                                               java.lang.String routerName)
      • getNeutronRouterNamebyUuid

        public static @Nullable java.lang.String getNeutronRouterNamebyUuid​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                            org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid routerUuid)
      • getFloatingIpPortsForRouter

        public static @NonNull java.util.List<Ports> getFloatingIpPortsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                 org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid routerUuid)
      • getRouterUuIdsForVpn

        public static @NonNull java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getRouterUuIdsForVpn​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                                                                            org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid vpnUuid)
      • isIpInSubnet

        public static boolean isIpInSubnet​(java.lang.String ipAddress,
                                           java.lang.String start,
                                           java.lang.String end)
      • getExternalSubnetIdsFromExternalIps

        public static @NonNull java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getExternalSubnetIdsFromExternalIps​(@Nullable java.util.List<ExternalIps> externalIps)
      • getExternalSubnetIdsForRouter

        public static @NonNull java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getExternalSubnetIdsForRouter​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                                                                                           @Nullable java.lang.String routerName)
      • getOptionalExternalSubnets

        protected static @NonNull com.google.common.base.Optional<Subnets> getOptionalExternalSubnets​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)
      • getOptionalExternalSubnets

        protected static @NonNull com.google.common.base.Optional<Subnets> getOptionalExternalSubnets​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx,
                                                                                                      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)
      • getExternalSubnetVpnId

        protected static org.opendaylight.yangtools.yang.common.Uint32 getExternalSubnetVpnId​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                              org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)
      • getExternalSubnetVpnId

        protected static org.opendaylight.yangtools.yang.common.Uint32 getExternalSubnetVpnId​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx,
                                                                                              org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid subnetId)
      • getExternalSubnetVpnIdForRouterExternalIp

        protected static org.opendaylight.yangtools.yang.common.Uint32 getExternalSubnetVpnIdForRouterExternalIp​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                                 java.lang.String externalIpAddress,
                                                                                                                 Routers router)
      • getExternalSubnetForRouterExternalIp

        protected static @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getExternalSubnetForRouterExternalIp​(java.lang.String externalIpAddress,
                                                                                                                                                                Routers router)
      • getElanInstanceByName

        public static @Nullable ElanInstance getElanInstanceByName​(java.lang.String elanInstanceName,
                                                                   org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
      • getElanInstanceByName

        public static @Nullable ElanInstance getElanInstanceByName​(org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx,
                                                                   java.lang.String elanInstanceName)
      • getElanInstanceConfigurationDataPath

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance> getElanInstanceConfigurationDataPath​(java.lang.String elanInstanceName)
      • getTunnelIdForNonNaptToNaptFlow

        public static org.opendaylight.yangtools.yang.common.Uint64 getTunnelIdForNonNaptToNaptFlow​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                                                                    NatOverVxlanUtil natOverVxlanUtil,
                                                                                                    IElanService elanManager,
                                                                                                    org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager,
                                                                                                    org.opendaylight.yangtools.yang.common.Uint32 routerId,
                                                                                                    java.lang.String routerName)
      • makePreDnatToSnatTableEntry

        public static void makePreDnatToSnatTableEntry​(org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager,
                                                       org.opendaylight.yangtools.yang.common.Uint64 naptDpnId,
                                                       short tableId,
                                                       org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)
      • removePreDnatToSnatTableEntry

        public static void removePreDnatToSnatTableEntry​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                                         org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager,
                                                         org.opendaylight.yangtools.yang.common.Uint64 naptDpnId)
                                                  throws java.util.concurrent.ExecutionException,
                                                         java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • isFloatingIpPresentForDpn

        public static boolean isFloatingIpPresentForDpn​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                        org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                        java.lang.String rd,
                                                        java.lang.String vpnName,
                                                        java.lang.String externalIp,
                                                        java.lang.Boolean isMoreThanOneFipCheckOnDpn)
      • getPrimaryRd

        public static @Nullable java.lang.String getPrimaryRd​(java.lang.String vpnName,
                                                              org.opendaylight.genius.infra.TypedReadTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx)
                                                       throws java.util.concurrent.ExecutionException,
                                                              java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getPrimaryRd

        public static @Nullable java.lang.String getPrimaryRd​(@Nullable VpnInstance vpnInstance)
      • getVpnInstanceIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VpnInstance> getVpnInstanceIdentifier​(java.lang.String vpnName)
      • getListOfRdsFromVpnInstance

        public static @NonNull java.util.List<java.lang.String> getListOfRdsFromVpnInstance​(VpnInstance vpnInstance)
      • validateAndAddNetworkMask

        public static java.lang.String validateAndAddNetworkMask​(java.lang.String ipAddress)
      • getVpnInterfaceOpDataEntryIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VpnInterfaceOpDataEntry> getVpnInterfaceOpDataEntryIdentifier​(java.lang.String vpnInterfaceName,
                                                                                                                                               java.lang.String vpnName)
      • checkForRoutersWithSameExtNetAndNaptSwitch

        public static boolean checkForRoutersWithSameExtNetAndNaptSwitch​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                         org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId,
                                                                         java.lang.String routerName,
                                                                         org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      • checkForRoutersWithSameExtSubnetAndNaptSwitch

        public static boolean checkForRoutersWithSameExtSubnetAndNaptSwitch​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                            org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid externalSubnetId,
                                                                            java.lang.String routerName,
                                                                            org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      • installRouterGwFlows

        public static void installRouterGwFlows​(org.opendaylight.genius.infra.ManagedNewTransactionRunner txRunner,
                                                IVpnManager vpnManager,
                                                Routers router,
                                                org.opendaylight.yangtools.yang.common.Uint64 primarySwitchId,
                                                int addOrRemove)
      • handleSNATForDPN

        public static void handleSNATForDPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                            org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager,
                                            org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager,
                                            NaptSwitchHA naptSwitchHA,
                                            org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                            Routers extRouters,
                                            org.opendaylight.yangtools.yang.common.Uint32 routerId,
                                            org.opendaylight.yangtools.yang.common.Uint32 routerVpnId,
                                            org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                            ProviderTypes extNwProvType,
                                            org.opendaylight.serviceutils.upgrade.UpgradeState upgradeState)
      • removeSNATFromDPN

        public static void removeSNATFromDPN​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                             org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager,
                                             org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager,
                                             NaptSwitchHA naptSwitchHA,
                                             org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                             Routers extRouter,
                                             org.opendaylight.yangtools.yang.common.Uint32 routerId,
                                             org.opendaylight.yangtools.yang.common.Uint32 routerVpnId,
                                             java.lang.String externalVpnName,
                                             ProviderTypes extNwProvType,
                                             org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)
                                      throws java.util.concurrent.ExecutionException,
                                             java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • isOpenStackVniSemanticsEnforcedForGreAndVxlan

        public static java.lang.Boolean isOpenStackVniSemanticsEnforcedForGreAndVxlan​(IElanService elanManager,
                                                                                      ProviderTypes extNwProvType)
      • addPseudoPortToElanDpn

        public static void addPseudoPortToElanDpn​(java.lang.String elanInstanceName,
                                                  java.lang.String pseudoPortId,
                                                  org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                  org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • removePseudoPortFromElanDpn

        public static void removePseudoPortFromElanDpn​(java.lang.String elanInstanceName,
                                                       java.lang.String pseudoPortId,
                                                       org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                       org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • isLastExternalRouter

        public static boolean isLastExternalRouter​(java.lang.String networkid,
                                                   java.lang.String routerName,
                                                   NatDataUtil natDataUtil)
      • getLearntVpnVipToPortData

        public static @Nullable LearntVpnVipToPortData getLearntVpnVipToPortData​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • getLearntVpnVipToPortDataId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<LearntVpnVipToPortData> getLearntVpnVipToPortDataId()
      • getElanDpnInterfaceOperationalDataPath

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<DpnInterfaces> getElanDpnInterfaceOperationalDataPath​(java.lang.String elanInstanceName,
                                                                                                                                       org.opendaylight.yangtools.yang.common.Uint64 dpId)
      • getGroupInstanceId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> getGroupInstanceId​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                                                                                                                                                      org.opendaylight.yangtools.yang.common.Uint32 groupId)
      • createGroupIdPool

        public static void createGroupIdPool​(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager)
      • getSwitchStatus

        public static boolean getSwitchStatus​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                              org.opendaylight.yangtools.yang.common.Uint64 switchId)
      • isExternalNetwork

        public static boolean isExternalNetwork​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId)
      • getElanInstancePhysicalNetwok

        public static @Nullable java.lang.String getElanInstancePhysicalNetwok​(java.lang.String elanInstanceName,
                                                                               org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
      • getOpenvswitchOtherConfigMap

        public static java.util.Map<java.lang.String,​java.lang.String> getOpenvswitchOtherConfigMap​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                                                                          org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • getMultiValueMap

        public static java.util.Map<java.lang.String,​java.lang.String> getMultiValueMap​(java.lang.String multiKeyValueStr)
      • getBridgeRefInfo

        public static com.google.common.base.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> getBridgeRefInfo​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                                                                                                                                                          org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • getProviderMappings

        public static @Nullable java.lang.String getProviderMappings​(org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                                     org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • getOpenvswitchOtherConfigs

        public static @Nullable java.lang.String getOpenvswitchOtherConfigs​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node,
                                                                            java.lang.String key,
                                                                            org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • readOvsdbNode

        public static @NonNull com.google.common.base.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> readOvsdbNode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node bridgeNode,
                                                                                                                                                                                                org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • extractBridgeAugmentation

        public static @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation extractBridgeAugmentation​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
      • getDefaultFibRouteToSNATForSubnetJobKey

        public static java.lang.String getDefaultFibRouteToSNATForSubnetJobKey​(java.lang.String subnetName,
                                                                               org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      • getExternalSubnets

        public static ExternalSubnets getExternalSubnets​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
      • addFlow

        public static void addFlow​(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                   org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager,
                                   org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                   short tableId,
                                   java.lang.String flowId,
                                   int priority,
                                   java.lang.String flowName,
                                   org.opendaylight.yangtools.yang.common.Uint64 cookie,
                                   java.util.List<? extends org.opendaylight.genius.mdsalutil.MatchInfoBase> matches,
                                   java.util.List<org.opendaylight.genius.mdsalutil.InstructionInfo> instructions)
      • removeFlow

        public static void removeFlow​(org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx,
                                      org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager,
                                      org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                      short tableId,
                                      java.lang.String flowId)
                               throws java.util.concurrent.ExecutionException,
                                      java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getIpv6FlowRef

        public static java.lang.String getIpv6FlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                      short tableId,
                                                      org.opendaylight.yangtools.yang.common.Uint32 routerID)
      • getTunnelInterfaceName

        public static java.lang.String getTunnelInterfaceName​(org.opendaylight.yangtools.yang.common.Uint64 srcDpId,
                                                              org.opendaylight.yangtools.yang.common.Uint64 dstDpId,
                                                              org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmManager)
      • isRouterInterfacePort

        public static java.lang.Boolean isRouterInterfacePort​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                              java.lang.String ifaceName)
      • getVpnIdToVpnInstance

        public static VpnInstance getVpnIdToVpnInstance​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                        java.lang.String vpnName)
      • getExternalVpnIdForExtNetwork

        public static org.opendaylight.yangtools.yang.common.Uint32 getExternalVpnIdForExtNetwork​(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
                                                                                                  org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid externalNwUuid)
      • removeSnatEntriesForPort

        public static void removeSnatEntriesForPort​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                                    NaptManager naptManager,
                                                    org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager,
                                                    NeutronvpnService neutronVpnService,
                                                    java.lang.String interfaceName,
                                                    java.lang.String routerName)
      • getDpnFromNodeRef

        public static java.lang.String getDpnFromNodeRef​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef node)