Codota Logo
IpsecStaticPeerConfig$Builder.setTunnelInterface
Code IndexAdd Codota 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)

  • 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

  _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

/** 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

  .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

  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

  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();
org.batfish.datamodelIpsecStaticPeerConfig$BuildersetTunnelInterface

Popular methods of IpsecStaticPeerConfig$Builder

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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