Codota Logo
IpsecStaticPeerConfig$Builder.setLocalAddress
Code IndexAdd Codota to your IDE (free)

How to use
setLocalAddress
method
in
org.batfish.datamodel.IpsecStaticPeerConfig$Builder

Best Java code snippets using org.batfish.datamodel.IpsecStaticPeerConfig$Builder.setLocalAddress (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: batfish/batfish

} else {
 ipsecPeerConfigBuilder.setSourceInterface(externalInterface.getName());
 ipsecPeerConfigBuilder.setLocalAddress(localAddress);
origin: batfish/batfish

 ipsecStaticConfigBuilder.setLocalAddress(ikeGateway.getLocalAddress());
} else if (ikeGateway.getExternalInterface() != null
  && ikeGateway.getExternalInterface().getPrimaryAddress() != null) {
 ipsecStaticConfigBuilder.setLocalAddress(
   ikeGateway.getExternalInterface().getPrimaryAddress().getIp());
} else {
origin: batfish/batfish

.setIpsecPolicy(vpnId)
.setSourceInterface(externalInterfaceName)
.setLocalAddress(ipsecTunnel.getVgwOutsideAddress())
.setDestinationAddress(ipsecTunnel.getCgwOutsideAddress())
.build());
origin: batfish/batfish

/** Converts a {@link Tunnel} to an {@link IpsecPeerConfig} */
static IpsecPeerConfig toIpsecPeerConfig(
  Tunnel tunnel,
  String tunnelIfaceName,
  CiscoConfiguration oldConfig,
  Configuration newConfig) {
 IpsecStaticPeerConfig.Builder ipsecStaticPeerConfigBuilder =
   IpsecStaticPeerConfig.builder()
     .setTunnelInterface(tunnelIfaceName)
     .setDestinationAddress(tunnel.getDestination())
     .setLocalAddress(tunnel.getSourceAddress())
     .setSourceInterface(tunnel.getSourceInterfaceName())
     .setIpsecPolicy(tunnel.getIpsecProfileName());
 IpsecProfile ipsecProfile = null;
 if (tunnel.getIpsecProfileName() != null) {
  ipsecProfile = oldConfig.getIpsecProfiles().get(tunnel.getIpsecProfileName());
 }
 if (ipsecProfile != null && ipsecProfile.getIsakmpProfile() != null) {
  ipsecStaticPeerConfigBuilder.setIkePhase1Policy(ipsecProfile.getIsakmpProfile());
 } else {
  ipsecStaticPeerConfigBuilder.setIkePhase1Policy(
    getIkePhase1Policy(
      newConfig.getIkePhase1Policies(),
      tunnel.getDestination(),
      tunnel.getSourceInterfaceName()));
 }
 return ipsecStaticPeerConfigBuilder.build();
}
origin: batfish/batfish

_ipsecStaticPeerConfigBuilder
  .setSourceInterface("Test_interface")
  .setLocalAddress(Ip.parse("1.2.3.4"))
  .setTunnelInterface("Tunnel_interface");
_graph = ValueGraphBuilder.directed().allowsSelfLoops(false).build();
org.batfish.datamodelIpsecStaticPeerConfig$BuildersetLocalAddress

Popular methods of IpsecStaticPeerConfig$Builder

  • build
  • setSourceInterface
  • setTunnelInterface
  • <init>
  • setDestinationAddress
  • setIkePhase1Policy
  • setIpsecPolicy

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Reference (javax.naming)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now