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

Feat(eos_cli_config_gen): MAC address on management interfaces #2275

Merged
merged 10 commits into from
Dec 1, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

| Management Interface | description | Type | VRF | IP Address | Gateway |
| -------------------- | ----------- | ---- | --- | ---------- | ------- |
| Management0 | - | oob | default | 10.0.0.0 | - |
| Management1 | oob_management | oob | MGMT | 10.73.255.122/24 | 10.73.255.2 |
| Management42 | - | oob | default | - | - |
| Vlan123 | inband_management | inband | default | 10.73.0.123/24 | 10.73.0.1 |
Expand All @@ -34,6 +35,7 @@

| Management Interface | description | Type | VRF | IPv6 Address | IPv6 Gateway |
| -------------------- | ----------- | ---- | --- | ------------ | ------------ |
| Management0 | - | oob | default | - | - |
| Management1 | oob_management | oob | MGMT | - | - |
| Management42 | - | oob | default | - | - |
| Vlan123 | inband_management | inband | default | - | - |
Expand All @@ -42,6 +44,10 @@

```eos
!
interface Management0
mac-address 00:1c:73:00:00:aa
ip address 10.0.0.0
!
interface Management1
description oob_management
vrf MGMT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ hostname management-interfaces
no enable password
no aaa root
!
interface Management0
sugetha24 marked this conversation as resolved.
Show resolved Hide resolved
mac-address 00:1c:73:00:00:aa
ip address 10.0.0.0
!
interface Management1
description oob_management
vrf MGMT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ management_interfaces:
ip_address: 10.73.255.122/24
gateway: 10.73.255.2
type: oob
Management0:
ip_address: 10.0.0.0
mac_address: 00:1c:73:00:00:aa
Vlan123:
description: inband_management
vrf: default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1855,6 +1855,7 @@ management_interfaces:
# For documentation purpose only
gateway: < IPv4 address of default gateway in management VRF >
ipv6_gateway: < IPv6 address of default gateway in management VRF >
mac_address: < MAC address >
```

#### Management HTTP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2194,6 +2194,7 @@ management_defaults:
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;type</samp>](## "management_interfaces.[].type") | String | | oob | Valid Values:<br>- oob<br>- inband | For documentation purposes only |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;gateway</samp>](## "management_interfaces.[].gateway") | String | | | | IPv4 address of default gateway in management VRF |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;ipv6_gateway</samp>](## "management_interfaces.[].ipv6_gateway") | String | | | | IPv6 address of default gateway in management VRF |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;mac_address</samp>](## "management_interfaces.[].mac_address") | String | | | | MAC address |

### YAML

Expand All @@ -2210,6 +2211,7 @@ management_interfaces:
type: <str>
gateway: <str>
ipv6_gateway: <str>
mac_address: <str>
```

## Management Security
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3767,6 +3767,11 @@
"type": "string",
"description": "IPv6 address of default gateway in management VRF",
"title": "IPv6 Gateway"
},
"mac_address": {
"type": "string",
"description": "MAC address",
"title": "MAC Address"
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2753,6 +2753,9 @@ keys:
ipv6_gateway:
type: str
description: IPv6 address of default gateway in management VRF
mac_address:
type: str
description: MAC address
management_security:
type: dict
keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ keys:
ipv6_gateway:
type: str
description: IPv6 address of default gateway in management VRF
mac_address:
type: str
description: MAC address
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ interface {{ management_interface.name }}
{% if management_interface.mtu is arista.avd.defined %}
mtu {{ management_interface.mtu }}
{% endif %}
{% if management_interface.mac_address is arista.avd.defined %}
mac-address {{ management_interface.mac_address }}
{% endif %}
{% if management_interface.vrf is arista.avd.defined and management_interface.vrf != 'default' %}
vrf {{ management_interface.vrf }}
{% endif %}
Expand Down