Skip to content

Commit

Permalink
add_mpls_tunnel_termination
Browse files Browse the repository at this point in the history
  • Loading branch information
ccsnw committed Jan 16, 2025
1 parent 6be08f0 commit 361877d
Show file tree
Hide file tree
Showing 9 changed files with 150 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9136,6 +9136,7 @@ router bfd
| LDP Interface Disabled Default | True |
| LDP Transport-Address Interface | Loopback0 |
| ICMP Fragmentation-Needed Tunneling Enabled | True |
| Tunnel Termination Model | ttl uniform dscp uniform |

### MPLS Interfaces

Expand Down Expand Up @@ -9201,6 +9202,7 @@ router bfd
```eos
!
mpls ip
mpls tunnel termination model ttl uniform dscp uniform
!
mpls ldp
router-id 192.168.1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4473,6 +4473,7 @@ ipv6 route vrf TENANT_A_PROJECT01 2b01:cb04:4e6:a400::/64 Vlan102 2a01:cb04:4e6:
ipv6 route vrf TENANT_A_PROJECT01 2c01:cb04:4e6:a400::/64 Vlan102 201 tag 102 name No-Track-BFD
!
mpls ip
mpls tunnel termination model ttl uniform dscp uniform
!
mpls ldp
router-id 192.168.1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ mpls:
router_id: 192.168.1.1
shutdown: false
transport_address_interface: Loopback0
tunnel:
termination_model: "ttl uniform dscp uniform"
icmp:
fragmentation_needed_tunneling: true
rsvp:
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 @@ -23,4 +23,10 @@
{% if mpls.icmp.ttl_exceeded_tunneling is arista.avd.defined %}
| ICMP TTL-Exceeded Tunneling Enabled | {{ mpls.icmp.ttl_exceeded_tunneling }} |
{% endif %}
{% if mpls.tunnel.termination_model is arista.avd.defined %}
| Tunnel Termination Model | {{ mpls.tunnel.termination_model }} |
{% endif %}
{% if mpls.tunnel.termination_php_model is arista.avd.defined %}
| Tunnel Termination PHP Model | {{ mpls.tunnel.termination_php_model }} |
{% endif %}
{% endif %}
6 changes: 6 additions & 0 deletions python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/mpls.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
!
mpls ip
{% endif %}
{% if mpls.tunnel.termination_model is arista.avd.defined %}
mpls tunnel termination model {{ mpls.tunnel.termination_model }}
{% endif %}
{% if mpls.tunnel.termination_php_model is arista.avd.defined %}
mpls tunnel termination php model {{ mpls.tunnel.termination_php_model }}
{% endif %}
{% if mpls.ldp is arista.avd.defined %}
!
mpls ldp
Expand Down
66 changes: 65 additions & 1 deletion python-avd/pyavd/_eos_cli_config_gen/schema/__init__.py

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

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 @@ -282,3 +282,26 @@ keys:
shutdown:
type: bool
description: Make `shutdown` key false for `no shutdown` cli.
tunnel:
description: Configure tunnel termination model.
type: dict
keys:
termination_model:
type: str
description: |
TTL and DSCP configuration as a string.
Example:
- "ttl pipe dscp pipe"
valid_values:
- "ttl pipe dscp pipe"
- "ttl uniform dscp pipe"
- "ttl uniform dscp uniform"
termination_php_model:
type: str
description: |
TTL and DSCP configuration as a string.
Example:
- "ttl pipe dscp pipe"
valid_values:
- "ttl pipe dscp pipe"
- "ttl uniform dscp pipe"

0 comments on commit 361877d

Please sign in to comment.