congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IpsecStaticPeerConfig$Builder.build
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: batfish/batfish

ipsecPeerConfigMapBuilder.put(newIpsecVpnName, ipsecPeerConfigBuilder.build());
origin: batfish/batfish

return ipsecStaticConfigBuilder.build();
origin: batfish/batfish

.setLocalAddress(ipsecTunnel.getVgwOutsideAddress())
.setDestinationAddress(ipsecTunnel.getCgwOutsideAddress())
.build());
origin: batfish/batfish

    .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("interface5").build();
IpsecStaticPeerConfig ipsecPeerConfig6 =
  IpsecStaticPeerConfig.builder().setSourceInterface("interface6").build();
IpsecStaticPeerConfig ipsecPeerConfig7 =
  IpsecStaticPeerConfig.builder()
    .setSourceInterface("interface7")
    .setTunnelInterface("Tunnel7")
    .build();
origin: batfish/batfish

  ImmutableSortedMap.of(ipsecPhase2ProposalName, new IpsecPhase2Proposal()));
config.setIpsecPeerConfigs(
  ImmutableSortedMap.of(ipsecPeerConfigName, IpsecStaticPeerConfig.builder().build()));
config.setRouteFilterLists(
  ImmutableSortedMap.of(routeFilterListName, new RouteFilterList(routeFilterListName)));
origin: batfish/batfish

    .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

initiatorNode.setIpsecPeerConfigs(
  initiatorIpsecPeerConfigMapBuilder
    .put(INITIATOR_IPSEC_PEER_CONFIG, _ipsecStaticPeerConfigBuilder.build())
    .build());
responderNode.setIpsecPeerConfigs(
  responderIpsecPeerConfigMapBuilder
    .put(RESPONDER_IPSEC_PEER_CONFIG, _ipsecStaticPeerConfigBuilder.build())
    .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$Builderbuild

Popular methods of IpsecStaticPeerConfig$Builder

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

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JFileChooser (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
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