Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Include more molecule scenarios in pytest #4662

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ __pycache__/
/python-avd/build/
/python-avd/dist/
/python-avd/vendor/
/python-avd/tests/pyavd/artifacts/
/python-avd/pyavd.egg-info/
/python-avd/.tox/
/python-avd/.coverage
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/avd/molecule/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ When you update a template in `eos_cli_config_gen`, you should report a test cas

1. Create or update a file related to updated section under `inventory/host_vars`

2. If the section is new, update the inventory file ([hosts.ini](eos_cli_config_gen/inventory/hosts.ini)) to add a new host. The host SHALL be the name of your section and also the `<filename>.yml` in your `host_vars`
2. If the section is new, update the inventory file ([hosts.yml](eos_cli_config_gen/inventory/hosts.yml)) to add a new host. The host SHALL be the name of your section and also the `<filename>.yml` in your `host_vars`

3. Run molecule scenario to generate artifacts:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# host4_inline_jinja

## Table of Contents

- [Management](#management)
- [Management Interfaces](#management-interfaces)
- [Authentication](#authentication)
- [TACACS Servers](#tacacs-servers)

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

## Authentication

### TACACS Servers

#### TACACS Servers

| VRF | TACACS Servers | Single-Connection | Timeout |
| --- | -------------- | ----------------- | ------- |
| default | 10.10.10.158 | False | - |

#### TACACS Servers Device Configuration

```eos
!
tacacs-server host 10.10.10.158 key 7 <removed>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
!
tacacs-server host 10.10.10.158 key 7 071B245F5A
!
interface Management1
description OOB_MANAGEMENT
vrf MGMT
ip address 10.73.255.122/24
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ tacacs_servers:
single_connection: false
- host: 10.10.10.158
vrf: default
# Testing of play_vars in eos_cli_config_gen
key: "{{ tacacs_key_set_as_play_var }}"
key: 071B245F5A
key_type: 7
- host: 10.10.10.159
vrf: default
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
## Tacacs+ Servers
tacacs_servers:
hosts:
- host: 10.10.10.158
vrf: default
# Testing of play_vars in eos_cli_config_gen
key: "{{ tacacs_key_set_as_play_var }}"
key_type: 7

This file was deleted.

Loading
Loading