Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Extend GRE span with payload support (#4190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibhu-gslab committed Aug 21, 2024
1 parent 3cc0195 commit ee51f04
Show file tree
Hide file tree
Showing 11 changed files with 134 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# monitor-session-default-encapsulation-gre

## Table of Contents

- [Management](#management)
- [Management Interfaces](#management-interfaces)
- [Monitoring](#monitoring)
- [Monitor Sessions](#monitor-sessions)

## Management

### Management Interfaces

#### Management Interfaces Summary

##### IPv4

| Management Interface | Description | Type | VRF | IP Address | Gateway |
| -------------------- | ----------- | ---- | --- | ---------- | ------- |
| Management1 | oob_management | oob | MGMT | 10.73.255.122/24 | 10.73.255.2 |

##### IPv6

| Management Interface | Description | Type | VRF | IPv6 Address | IPv6 Gateway |
| -------------------- | ----------- | ---- | --- | ------------ | ------------ |
| Management1 | oob_management | oob | MGMT | - | - |

#### Management Interfaces Device Configuration

```eos
!
interface Management1
description oob_management
vrf MGMT
ip address 10.73.255.122/24
```

## Monitoring

### Monitor Sessions

#### Monitor Sessions Summary

##### Monitor Session Default Settings

| Settings | Values |
| -------- | ------ |
| Encapsulation GRE Payload | inner-packet |

#### Monitor Sessions Device Configuration

```eos
!
monitor session default encapsulation gre payload inner-packet
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
!
interface Management1
description oob_management
vrf MGMT
ip address 10.73.255.122/24
!
monitor session default encapsulation gre payload inner-packet
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
monitor_session_default_encapsulation_gre:
payload: inner-packet
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ mlag-configuration
monitor-layer1
monitor-connectivity
monitor-sessions
monitor-session-default-encapsulation-gre
monitor-telemetry-influx
monitor-telemetry-postcard-policy
mpls
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
that can be found in the LICENSE file.
#}
{# doc - monitor sessions #}
{% if monitor_sessions is arista.avd.defined %}
{% if monitor_sessions is arista.avd.defined or monitor_session_default_encapsulation_gre is arista.avd.defined %}

### Monitor Sessions

Expand Down Expand Up @@ -54,10 +54,19 @@
{% endif %}
{% endif %}
{% endfor %}
{% if monitor_session_default_encapsulation_gre.payload is arista.avd.defined %}

##### Monitor Session Default Settings

| Settings | Values |
| -------- | ------ |
| Encapsulation GRE Payload | {{ monitor_session_default_encapsulation_gre.payload }} |
{% endif %}

#### Monitor Sessions Device Configuration

```eos
{% include 'eos/monitor-sessions.j2' %}
{% include 'eos/monitor-session-default-encapsulation-gre.j2' %}
```
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
or mcs_client is arista.avd.defined
or snmp_server is arista.avd.defined
or monitor_sessions is arista.avd.defined
or monitor_session_default_encapsulation_gre is arista.avd.defined
or tap_aggregation is arista.avd.defined
or sflow is arista.avd.defined
or hardware_counters is arista.avd.defined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
{% include 'eos/ipv6-hardware.j2' %}
{# Monitor Sessions #}
{% include 'eos/monitor-sessions.j2' %}
{% include 'eos/monitor-session-default-encapsulation-gre.j2' %}
{# qos #}
{% include 'eos/qos.j2' %}
{# eos - priority flow control #}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
Copyright (c) 2023-2024 Arista Networks, Inc.
Use of this source code is governed by the Apache License 2.0
that can be found in the LICENSE file.
#}
{# eos - monitor session default #}
{% if monitor_session_default_encapsulation_gre.payload is arista.avd.defined %}
!
monitor session default encapsulation gre payload {{ monitor_session_default_encapsulation_gre.payload }}
{% endif %}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2023-2024 Arista Networks, Inc.
# Use of this source code is governed by the Apache License 2.0
# that can be found in the LICENSE file.
# yaml-language-server: $schema=../../../../plugins/plugin_utils/schema/avd_meta_schema.json
# Line above is used by RedHat's YAML Schema vscode extension
# Use Ctrl + Space to get suggestions for every field. Autocomplete will pop up after typing 2 letters.
type: dict
keys:
monitor_session_default_encapsulation_gre:
type: dict
keys:
payload:
type: str
description: Mirroring GRE payload type configuration commands.
valid_values:
- full-packet
- inner-packet

0 comments on commit ee51f04

Please sign in to comment.