Skip to content

Commit

Permalink
Doc(eos_cli_config_gen): Add Dps1 to flow tracking output in device c…
Browse files Browse the repository at this point in the history
…onfig (#3786)
  • Loading branch information
gmuloc authored Mar 27, 2024
1 parent 6f062fe commit 2469e4d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [Monitoring](#monitoring)
- [Flow Tracking](#flow-tracking)
- [Interfaces](#interfaces)
- [DPS Interfaces](#dps-interfaces)
- [Ethernet Interfaces](#ethernet-interfaces)
- [Port-Channel Interfaces](#port-channel-interfaces)

Expand Down Expand Up @@ -74,7 +75,7 @@ interface Management1
| ------------ | --------------------------------- | ------------------------- | ------------------- | ---------- |
| T1 | 3666 | 5666 | 0 | |
| T2 | - | - | 1 | Ethernet40 |
| T3 | - | - | 4 | Ethernet41<br>Port-Channel42 |
| T3 | - | - | 4 | Dps1<br>Ethernet41<br>Port-Channel42 |

##### Exporters Summary

Expand Down Expand Up @@ -140,6 +141,22 @@ flow tracking hardware

## Interfaces

### DPS Interfaces

#### DPS Interfaces Summary

| Interface | IP address | Shutdown | MTU | Flow tracker(s) | TCP MSS Ceiling |
| --------- | ---------- | -------- | --- | --------------- | --------------- |
| Dps1 | - | - | - | Hardware: T3 | |

#### DPS Interfaces Device Configuration

```eos
!
interface Dps1
flow tracker hardware T3
```

### Ethernet Interfaces

#### Ethernet Interfaces Summary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ interface Port-Channel42
flow tracker hardware T3
flow tracker sampled T3
!
interface Dps1
flow tracker hardware T3
!
interface Ethernet40
switchport
flow tracker hardware T2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,8 @@ port_channel_interfaces:
flow_tracker:
sampled: T3
hardware: T3

dps_interfaces:
- name: Dps1
flow_tracker:
hardware: T3
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
{% set count_exporter = tracker.exporters | arista.avd.default([]) | length %}
{% set applied_on = [] %}
{% set table_size = tracker.table_size | arista.avd.default('-') %}
{% for dps_interface in dps_interfaces | arista.avd.default([]) %}
{% if dps_interface.flow_tracker.sampled is arista.avd.defined(tracker.name) %}
{% do applied_on.append(dps_interface.name) %}
{% endif %}
{% endfor %}
{% for ethernet_interface in ethernet_interfaces | arista.avd.default([]) %}
{% if ethernet_interface.flow_tracker.sampled is arista.avd.defined(tracker.name) %}
{% do applied_on.append(ethernet_interface.name) %}
Expand All @@ -68,6 +73,11 @@
{% set count_exporter = tracker.exporters | arista.avd.default([]) | length %}
{% set applied_on = [] %}
{% set table_size = tracker.table_size | arista.avd.default('-') %}
{% for dps_interface in dps_interfaces | arista.avd.default([]) %}
{% if dps_interface.flow_tracker.sampled is arista.avd.defined(tracker.name) %}
{% do applied_on.append(dps_interface.name) %}
{% endif %}
{% endfor %}
{% for ethernet_interface in ethernet_interfaces | arista.avd.default([]) %}
{% if ethernet_interface.flow_tracker.sampled is arista.avd.defined(tracker.name) %}
{% do applied_on.append(ethernet_interface.name) %}
Expand Down Expand Up @@ -121,6 +131,11 @@
{% set on_interval = tracker.record_export.on_interval | arista.avd.default("-") %}
{% set count_exporter = tracker.exporters | arista.avd.default([]) | length %}
{% set applied_on = [] %}
{% for dps_interface in dps_interfaces | arista.avd.default([]) %}
{% if dps_interface.flow_tracker.hardware is arista.avd.defined(tracker.name) %}
{% do applied_on.append(dps_interface.name) %}
{% endif %}
{% endfor %}
{% for ethernet_interface in ethernet_interfaces | arista.avd.default([]) %}
{% if ethernet_interface.flow_tracker.hardware is arista.avd.defined(tracker.name) %}
{% do applied_on.append(ethernet_interface.name) %}
Expand Down

0 comments on commit 2469e4d

Please sign in to comment.