Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add schema for ipv6_static_routes (#2182)
Browse files Browse the repository at this point in the history
Co-authored-by: Claus Holbech <[email protected]>
Co-authored-by: Carl Buchmann <[email protected]>
  • Loading branch information
3 people authored Oct 31, 2022
1 parent 2498516 commit 48852e4
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,36 @@ ipv6_standard_access_lists:
action: <str>
```

## IPv6 Static Routes

### Variables

| Variable | Type | Required | Default | Value Restrictions | Description |
| -------- | ---- | -------- | ------- | ------------------ | ----------- |
| [<samp>ipv6_static_routes</samp>](## "ipv6_static_routes") | List, items: Dictionary | | | | IPv6 Static Routes |
| [<samp>&nbsp;&nbsp;- vrf</samp>](## "ipv6_static_routes.[].vrf") | String | | | | VRF |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;destination_address_prefix</samp>](## "ipv6_static_routes.[].destination_address_prefix") | String | | | | IPv6 Network/Mask |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;interface</samp>](## "ipv6_static_routes.[].interface") | String | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;gateway</samp>](## "ipv6_static_routes.[].gateway") | String | | | | IPv6 Address |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;distance</samp>](## "ipv6_static_routes.[].distance") | Integer | | | Min: 1<br>Max: 255 | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;tag</samp>](## "ipv6_static_routes.[].tag") | Integer | | | Min: 0<br>Max: 4294967295 | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;name</samp>](## "ipv6_static_routes.[].name") | String | | | | Description |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;metric</samp>](## "ipv6_static_routes.[].metric") | Integer | | | Min: 0<br>Max: 4294967295 | |

### YAML

```yaml
ipv6_static_routes:
- vrf: <str>
destination_address_prefix: <str>
interface: <str>
gateway: <str>
distance: <int>
tag: <int>
name: <str>
metric: <int>
```

## LACP

### Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1903,6 +1903,55 @@
"additionalProperties": false
}
},
"ipv6_static_routes": {
"type": "array",
"title": "IPv6 Static Routes",
"items": {
"type": "object",
"properties": {
"vrf": {
"type": "string",
"title": "VRF"
},
"destination_address_prefix": {
"type": "string",
"description": "IPv6 Network/Mask",
"title": "Destination Address Prefix"
},
"interface": {
"type": "string",
"title": "Interface"
},
"gateway": {
"type": "string",
"title": "IPv6 Address"
},
"distance": {
"type": "integer",
"minimum": 1,
"maximum": 255,
"title": "Distance"
},
"tag": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"title": "Tag"
},
"name": {
"type": "string",
"title": "Description"
},
"metric": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295,
"title": "Metric"
}
},
"additionalProperties": false
}
},
"lacp": {
"type": "object",
"title": "LACP",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,44 @@ keys:
description: 'Action as string
Example: "deny ipv6 any any"'
ipv6_static_routes:
type: list
display_name: IPv6 Static Routes
items:
type: dict
keys:
vrf:
type: str
display_name: VRF
destination_address_prefix:
type: str
description: IPv6 Network/Mask
interface:
type: str
gateway:
type: str
display_name: IPv6 Address
distance:
type: int
convert_types:
- str
min: 1
max: 255
tag:
type: int
convert_types:
- str
min: 0
max: 4294967295
name:
type: str
display_name: Description
metric:
type: int
convert_types:
- str
min: 0
max: 4294967295
lacp:
type: dict
display_name: LACP
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# yaml-language-server: $schema=../../../../plugins/plugin_utils/schema/avd_meta_schema.json
# Line above is used by RedHat's YAML Schema vscode extension
# Use Ctrl + Space to get suggestions for every field. Autocomplete will pop up after typing 2 letters.
type: dict
keys:
ipv6_static_routes:
type: list
display_name: IPv6 Static Routes
items:
type: dict
keys:
vrf:
type: str
display_name: VRF
destination_address_prefix:
type: str
description: IPv6 Network/Mask
interface:
type: str
gateway:
type: str
display_name: IPv6 Address
distance:
type: int
convert_types:
- str
min: 1
max: 255
tag:
type: int
convert_types:
- str
min: 0
max: 4294967295
name:
type: str
display_name: Description
metric:
type: int
convert_types:
- str
min: 0
max: 4294967295

0 comments on commit 48852e4

Please sign in to comment.