Skip to content

Commit

Permalink
fixing pyavd test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Jul 19, 2024
1 parent 643fa51 commit 4d3e2fd
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# mpls-2

## Table of Contents

- [Management](#management)
- [Management Interfaces](#management-interfaces)
- [MPLS](#mpls)
- [MPLS and LDP](#mpls-and-ldp)

## 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
```

## MPLS

### MPLS and LDP

#### MPLS and LDP Summary

| Setting | Value |
| -------- | ---- |
| MPLS IP Enabled | True |
| LDP Enabled | False |
| LDP Router ID | - |
| LDP Interface Disabled Default | False |
| LDP Transport-Address Interface | - |
| ICMP Fragmentation-Needed Tunneling Enabled | False |
| ICMP TTL-Exceeded Tunneling Enabled | False |

#### MPLS and LDP Device Configuration

```eos
!
mpls ip
!
mpls ldp
shutdown
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# mpls-3

## Table of Contents

- [Management](#management)
- [Management Interfaces](#management-interfaces)
- [MPLS](#mpls)
- [MPLS and LDP](#mpls-and-ldp)

## 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
```

## MPLS

### MPLS and LDP

#### MPLS and LDP Summary

| Setting | Value |
| -------- | ---- |
| MPLS IP Enabled | True |
| LDP Enabled | False |
| LDP Router ID | 192.168.1.2 |
| LDP Interface Disabled Default | True |
| LDP Transport-Address Interface | - |
| ICMP Fragmentation-Needed Tunneling Enabled | - |
| ICMP TTL-Exceeded Tunneling Enabled | - |

#### MPLS and LDP Device Configuration

```eos
!
mpls ip
!
mpls ldp
interface disabled default
router-id 192.168.1.2
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
!RANCID-CONTENT-TYPE: arista
!
transceiver qsfp default-mode 4x10G
!
hostname mpls-2
!
no enable password
no aaa root
!
interface Management1
description oob_management
vrf MGMT
ip address 10.73.255.122/24
!
mpls ip
!
mpls ldp
shutdown
!
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
!RANCID-CONTENT-TYPE: arista
!
transceiver qsfp default-mode 4x10G
!
hostname mpls-3
!
no enable password
no aaa root
!
interface Management1
description oob_management
vrf MGMT
ip address 10.73.255.122/24
!
mpls ip
!
mpls ldp
interface disabled default
router-id 192.168.1.2
!
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# test for mpls.ldp.shutdown: true
mpls:
ip: true
ldp:
interface_disabled_default: false
shutdown: true
icmp:
fragmentation_needed_tunneling: false
ttl_exceeded_tunneling: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# test for mpls.ldp.shutdown: true
mpls:
ip: true
ldp:
interface_disabled_default: true
router_id: 192.168.1.2
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ monitor-sessions
monitor-telemetry-influx
monitor-telemetry-postcard-policy
mpls
mpls-2
mpls-3
none_configuration
ntp
object-tracking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mpls ldp
transport-address interface {{ mpls.ldp.transport_address_interface }}
{% endif %}
{% endif %}
{% if mpls.icmp is arista.avd.defined %}
{% if mpls.icmp.fragmentation_needed_tunneling is arista.avd.defined(true) or mpls.icmp.ttl_exceeded_tunneling is arista.avd.defined(true) %}
!
{% if mpls.icmp.fragmentation_needed_tunneling is arista.avd.defined(true) %}
mpls icmp fragmentation-needed tunneling
Expand Down
1 change: 1 addition & 0 deletions python-avd/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ deps =
coverage[toml]
commands =
coverage report --rcfile=pyproject.toml
coverage html --rcfile=pyproject.toml

0 comments on commit 4d3e2fd

Please sign in to comment.