<jupyter_start><jupyter_text>IPSec Tunnels * [IPSec Session Status](IPSec-Session-Status)* [IPSec Edges](IPSec-Edges)<jupyter_code>bf_set_network('generate_questions')
bf_set_snapshot('hybridcloud')<jupyter_output><empty_output><jupyter_text>IPSec Session Status Returns the status of configured IPSec sessions. Shows configuration settings and status for each configured IPSec tunnel in the network. The status is IPSEC_SESSION_ESTABLISHED for tunnels that are expected to be established; it is IKE_PHASE1_FAILED if IKE parameters negotiation failed; it is IKE_PHASE1_KEY_MISMATCH if IKE negotiation was successful but IKE keys do not match; it is IPSEC_PHASE2_FAILED if negotiation of IPsec parameters failed; and it is MISSING_END_POINT if the remote endpoint for a configured IPsec tunnel could not be found in the network.  Inputs Name | Description | Type | Optional | Default Value--- | --- | --- | --- | --- nodes | Include sessions whose first node matches this specifier. | [NodeSpec](../specifiers.mdnode-specifier) | True | remoteNodes | Include sessions whose second node matches this specifier. | [NodeSpec](../specifiers.mdnode-specifier) | True | status | Only include IPSec sessions for which status matches this specifier. | [IpsecSessionStatusSpec](../specifiers.mdipsec-session-status-specifier) | True |   Invocation<jupyter_code>result = bfq.ipsecSessionStatus().answer().frame()<jupyter_output><empty_output><jupyter_text>Return Value Name | Description | Type--- | --- | ---Node | IPSec initiator | strNode_Interface | Initiator Interface | [Interface](../datamodel.rstpybatfish.datamodel.primitives.Interface)Node_IP | Initiator IP | strRemote_Node | IPSec responder | strRemote_Node_Interface | Responder Interface | [Interface](../datamodel.rstpybatfish.datamodel.primitives.Interface)Remote_Node_IP | Responder IP | strTunnel_Interfaces | Tunnel interfaces pair used in peering session | strStatus | IPSec session status | str Print the first 5 rows of the returned Dataframe<jupyter_code>result.head(5)<jupyter_output><empty_output><jupyter_text>Print the first row of the returned Dataframe<jupyter_code>result.iloc[0]
bf_set_network('generate_questions')
bf_set_snapshot('hybridcloud')<jupyter_output><empty_output><jupyter_text>IPSec Edges Returns IPSec tunnels. Lists all IPSec tunnels in the network.  Inputs Name | Description | Type | Optional | Default Value--- | --- | --- | --- | --- nodes | Include tunnels whose first node matches this name or regex. | [NodeSpec](../specifiers.mdnode-specifier) | True | .*remoteNodes | Include tunnels whose second node matches this name or regex. | [NodeSpec](../specifiers.mdnode-specifier) | True | .*  Invocation<jupyter_code>result = bfq.ipsecEdges().answer().frame()<jupyter_output><empty_output><jupyter_text>Return Value Name | Description | Type--- | --- | ---Source_Interface | Source interface used in the IPsec session | [Interface](../datamodel.rstpybatfish.datamodel.primitives.Interface)Tunnel_Interface | Tunnel interface (if any) used in the IPsec session | [Interface](../datamodel.rstpybatfish.datamodel.primitives.Interface)Remote_Source_Interface | Remote source interface used in the IPsec session | [Interface](../datamodel.rstpybatfish.datamodel.primitives.Interface)Remote_Tunnel_Interface | Remote tunnel interface (if any) used in the IPsec session | [Interface](../datamodel.rstpybatfish.datamodel.primitives.Interface) Print the first 5 rows of the returned Dataframe<jupyter_code>result.head(5)<jupyter_output><empty_output><jupyter_text>Print the first row of the returned Dataframe<jupyter_code>result.iloc[0]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10145324924595558, 'fraction_numerical': 0.0024677817384151355, 'mean_word_length': 5.961832061068702, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '422170', 'license': 'Apache-2.0', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1056, 'n_words': 295, 'path': 'docs/source/notebooks/ipsec.ipynb', 'repo_name': 'progwriter/pybatfish', 'size': '3647'}