Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add schema for qos (#2155)
Browse files Browse the repository at this point in the history
Co-authored-by: Carl Buchmann <[email protected]>
  • Loading branch information
mayurgs34 and carlbuchmann authored Oct 31, 2022
1 parent 3d03545 commit 70e33f2
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2405,6 +2405,36 @@ prefix_lists:
prompt: <str>
```

## QOS

### Variables

| Variable | Type | Required | Default | Value Restrictions | Description |
| -------- | ---- | -------- | ------- | ------------------ | ----------- |
| [<samp>qos</samp>](## "qos") | Dictionary | | | | QOS |
| [<samp>&nbsp;&nbsp;map</samp>](## "qos.map") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;cos</samp>](## "qos.map.cos") | List, items: String | | | | COS |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- &lt;str&gt;</samp>](## "qos.map.cos.[].&lt;str&gt;") | String | | | | Example: "0 1 to traffic-class 1"<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;dscp</samp>](## "qos.map.dscp") | List, items: String | | | | DSCP |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- &lt;str&gt;</samp>](## "qos.map.dscp.[].&lt;str&gt;") | String | | | | Example: "8 9 10 to traffic-class 1"<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;traffic_class</samp>](## "qos.map.traffic_class") | List, items: String | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- &lt;str&gt;</samp>](## "qos.map.traffic_class.[].&lt;str&gt;") | String | | | | Example: "1 to dscp 32"<br> |
| [<samp>&nbsp;&nbsp;rewrite_dscp</samp>](## "qos.rewrite_dscp") | Boolean | | | | Rewrite DSCP |

### YAML

```yaml
qos:
map:
cos:
- <str>
dscp:
- <str>
traffic_class:
- <str>
rewrite_dscp: <bool>
```

## QOS Profiles

### Variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4100,6 +4100,48 @@
"type": "string",
"title": "Prompt"
},
"qos": {
"type": "object",
"title": "QOS",
"properties": {
"map": {
"type": "object",
"properties": {
"cos": {
"type": "array",
"title": "COS",
"items": {
"type": "string",
"description": "Example: \"0 1 to traffic-class 1\"\n"
}
},
"dscp": {
"type": "array",
"title": "DSCP",
"items": {
"type": "string",
"description": "Example: \"8 9 10 to traffic-class 1\"\n"
}
},
"traffic_class": {
"type": "array",
"items": {
"type": "string",
"description": "Example: \"1 to dscp 32\"\n"
},
"title": "Traffic Class"
}
},
"additionalProperties": false,
"title": "Map"
},
"rewrite_dscp": {
"title": "Rewrite DSCP",
"type": "boolean"
}
},
"additionalProperties": false
},
"qos_profiles": {
"type": "array",
"title": "QOS Profiles",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3096,6 +3096,39 @@ keys:
Example: "permit 10.255.0.0/27 eq 32"'
prompt:
type: str
qos:
type: dict
display_name: QOS
keys:
map:
type: dict
keys:
cos:
type: list
display_name: COS
items:
type: str
description: 'Example: "0 1 to traffic-class 1"
'
dscp:
type: list
display_name: DSCP
items:
type: str
description: 'Example: "8 9 10 to traffic-class 1"
'
traffic_class:
type: list
items:
type: str
description: 'Example: "1 to dscp 32"
'
rewrite_dscp:
display_name: Rewrite DSCP
type: bool
qos_profiles:
type: list
display_name: QOS Profiles
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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:
qos:
type: dict
display_name: QOS
keys:
map:
type: dict
keys:
cos:
type: list
display_name: COS
items:
type: str
description: |
Example: "0 1 to traffic-class 1"
dscp:
type: list
display_name: DSCP
items:
type: str
description: |
Example: "8 9 10 to traffic-class 1"
traffic_class:
type: list
items:
type: str
description: |
Example: "1 to dscp 32"
rewrite_dscp:
display_name: Rewrite DSCP
type: bool

0 comments on commit 70e33f2

Please sign in to comment.