congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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