congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IpsecStaticPeerConfig$Builder.setLocalAddress
Code IndexAdd Tabnine 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)

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

_ipsecStaticPeerConfigBuilder
  .setSourceInterface("Test_interface")
  .setLocalAddress(Ip.parse("1.2.3.4"))
  .setTunnelInterface("Tunnel_interface");
_graph = ValueGraphBuilder.directed().allowsSelfLoops(false).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();
}
org.batfish.datamodelIpsecStaticPeerConfig$BuildersetLocalAddress

Popular methods of IpsecStaticPeerConfig$Builder

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now