Tabnine Logo
IpsecStaticPeerConfig$Builder.setTunnelInterface
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: batfish/batfish

  _c.getDefaultVrf().getInterfaces().get(bindInterfaceName);
if (newBindInterface != null) {
 ipsecPeerConfigBuilder.setTunnelInterface(newBindInterface.getName());
} else {
 _w.redFlag("Reference to undefined bind-interface: \"" + bindInterfaceName + "\"");
origin: batfish/batfish

@Nullable
private IpsecPeerConfig toIpsecPeerConfig(IpsecVpn ipsecVpn) {
 IpsecStaticPeerConfig.Builder ipsecStaticConfigBuilder = IpsecStaticPeerConfig.builder();
 ipsecStaticConfigBuilder.setTunnelInterface(ipsecVpn.getBindInterface().getName());
 IkeGateway ikeGateway = _masterLogicalSystem.getIkeGateways().get(ipsecVpn.getGateway());
origin: batfish/batfish

vpnId,
IpsecStaticPeerConfig.builder()
  .setTunnelInterface(vpnInterfaceName)
  .setIkePhase1Policy(vpnId)
  .setIpsecPolicy(vpnId)
origin: batfish/batfish

  IpsecStaticPeerConfig.builder()
    .setSourceInterface("interface1")
    .setTunnelInterface("Tunnel1")
    .build();
IpsecStaticPeerConfig ipsecPeerConfig2 =
  IpsecStaticPeerConfig.builder()
    .setSourceInterface("interface2")
    .setTunnelInterface("Tunnel2")
    .build();
IpsecStaticPeerConfig ipsecPeerConfig3 =
  IpsecStaticPeerConfig.builder()
    .setSourceInterface("interface3")
    .setTunnelInterface("Tunnel3")
    .build();
IpsecStaticPeerConfig ipsecPeerConfig4 =
  IpsecStaticPeerConfig.builder()
    .setSourceInterface("interface4")
    .setTunnelInterface("Tunnel4")
    .build();
IpsecStaticPeerConfig ipsecPeerConfig5 =
  IpsecStaticPeerConfig.builder()
    .setSourceInterface("interface7")
    .setTunnelInterface("Tunnel7")
    .build();
origin: batfish/batfish

  IpsecStaticPeerConfig.builder()
    .setSourceInterface("int11")
    .setTunnelInterface("tunnel11")
    .build();
IpsecStaticPeerConfig peer2 =
  IpsecStaticPeerConfig.builder()
    .setSourceInterface("int12")
    .setTunnelInterface("tunnel12")
    .build();
IpsecStaticPeerConfig peer3 =
  IpsecStaticPeerConfig.builder()
    .setSourceInterface("int21")
    .setTunnelInterface("tunnel21")
    .build();
IpsecStaticPeerConfig peer4 =
  IpsecStaticPeerConfig.builder()
    .setSourceInterface("int22")
    .setTunnelInterface("tunnel22")
    .build();
origin: batfish/batfish

  .setSourceInterface("Test_interface")
  .setLocalAddress(Ip.parse("1.2.3.4"))
  .setTunnelInterface("Tunnel_interface");
_graph = ValueGraphBuilder.directed().allowsSelfLoops(false).build();
_ipsecSessionBuilder = IpsecSession.builder();
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$BuildersetTunnelInterface

Popular methods of IpsecStaticPeerConfig$Builder

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
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