Skip to content

Commit

Permalink
Fix(eos_cli_config_gen): Fix wrong variable used in eos\stun.j2 (#4814
Browse files Browse the repository at this point in the history
)

Co-authored-by: Laxmikant Chintakindi <[email protected]>
Co-authored-by: Guillaume Mulocher <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent 84e4e40 commit eba713c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
- [IP NAT](#ip-nat)
- [IP NAT Device Configuration](#ip-nat-device-configuration)
- [Traffic Policies information](#traffic-policies-information)
- [STUN](#stun)
- [STUN Server](#stun-server)
- [STUN Device Configuration](#stun-device-configuration)

## Management

Expand Down Expand Up @@ -1177,3 +1180,21 @@ traffic-policies
!
field-set ipv6 prefix IPv6-DEMO-2
```

## STUN

### STUN Server

| Server Local Interfaces | Bindings Timeout (s) | SSL Profile | SSL Connection Lifetime | Port |
| ----------------------- | -------------------- | ----------- | ----------------------- | ---- |
| Ethernet1 | - | - | 3 hours | 3478 |

### STUN Device Configuration

```eos
!
stun
server
local-interface Ethernet1
ssl connection lifetime 3 hours
```
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ router pim sparse-mode
ipv4
make-before-break
!
stun
server
local-interface Ethernet1
ssl connection lifetime 3 hours
!
traffic-policies
field-set ipv6 prefix IPv6-DEMO-1
11:22:33:44:55:66:77:88
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
### stun
stun:
server:
local_interfaces:
- Ethernet1
ssl_connection_lifetime:
hours: 3
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ stun
{% if stun.server.ssl_connection_lifetime.minutes is arista.avd.defined %}
ssl connection lifetime {{ stun.server.ssl_connection_lifetime.minutes }} minutes
{% elif stun.server.ssl_connection_lifetime.hours is arista.avd.defined %}
ssl connection lifetime {{ stun.segitrver.ssl_connection_lifetime.hours }} hours
ssl connection lifetime {{ stun.server.ssl_connection_lifetime.hours }} hours
{% endif %}
{% endif %}
{% endif %}

0 comments on commit eba713c

Please sign in to comment.