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

issue #275 add device document for management API HTTP #443

Merged
merged 3 commits into from
Dec 8, 2020
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{# Management API HTTP #}

{% if management_api_http is defined and management_api_http is not none %}
### Management API HTTP Summary

| HTTP | HTTPS |
| ---------- | ---------- |
| {% if management_api_http.enable_http is defined and management_api_http.enable_http is not none %} {{ management_api_http.enable_http }} {% else %} default {% endif %} | {% if management_api_http.enable_https is defined and management_api_http.enable_https is not none %} {{ management_api_http.enable_https }} {% else %} default {% endif %} |
{% if management_api_http.enable_vrfs is defined and management_api_http.enable_vrfs is not none %}

### Management API VRF Access

| VRF Name | IPv4 ACL | IPv6 ACL |
| -------- | -------- | -------- |
{% for vrf in management_api_http.enable_vrfs | arista.avd.natural_sort %}
| {{ vrf }} | {% if management_api_http.enable_vrfs[vrf].access_group is defined and management_api_http.enable_vrfs[vrf].access_group is not none %} {{ management_api_http.enable_vrfs[vrf].access_group }} {% else %} Not defined {% endif %} | {% if management_api_http.enable_vrfs[vrf].ipv6_access_group is defined and management_api_http.enable_vrfs[vrf].ipv6_access_group is not none %} {{ management_api_http.enable_vrfs[vrf].ipv6_access_group }} {% else %} Not defined {% endif %} |
{% endfor %}
{% endif %}

### Management API HTTP Configuration

```eos
{% include 'eos/management-api-http.j2' %}
```
{% else %}
Management API HTTP is not defined
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [Domain Lookup](#domain-lookup)
- [NTP](#ntp)
- [Management SSH](#management-ssh)
- [Management API](#Management-api-http)
- [Authentication](#authentication)
- [Local Users](#local-users)
- [TACACS Servers](#tacacs-servers)
Expand Down Expand Up @@ -97,6 +98,10 @@

{% include 'documentation/management-ssh.j2' %}

## Management API HTTP

{% include 'documentation/management-api-http.j2' %}

# Authentication

## Local Users
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ management api http-commands
protocol http
{% endif %}
no shutdown
{% if management_api_http.enable_vrfs is defined -%}
{% if management_api_http.enable_vrfs is defined and management_api_http.enable_vrfs is not none -%}
{% for vrf in management_api_http.enable_vrfs | arista.avd.natural_sort if vrf is ne 'default' %}
!
vrf {{ vrf }}
Expand Down