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): Generate sFlow egress commands #2767

Merged
merged 10 commits into from
Jun 20, 2023
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
Expand Up @@ -66,6 +66,8 @@ sFlow is enabled.

sFlow is disabled on all interfaces by default.

Unmodified egress sFlow is enabled on all interfaces by default.

sFlow hardware acceleration is enabled.

sFlow hardware accelerated Sample Rate: 1024
Expand Down Expand Up @@ -112,6 +114,7 @@ sflow extension router
no sflow extension switch
no sflow extension tunnel
sflow interface disable default
sflow interface egress unmodified enable default
sflow run
sflow hardware acceleration
sflow hardware acceleration sample 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ sflow extension router
no sflow extension switch
no sflow extension tunnel
sflow interface disable default
sflow interface egress unmodified enable default
sflow run
sflow hardware acceleration
sflow hardware acceleration sample 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ sflow:
interface:
disable:
default: true
egress:
enable_default: true
unmodified: true
hardware_acceleration:
enabled: true
sample: 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
| [<samp>&nbsp;&nbsp;interface</samp>](## "sflow.interface") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;disable</samp>](## "sflow.interface.disable") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default</samp>](## "sflow.interface.disable.default") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;egress</samp>](## "sflow.interface.egress") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;enable_default</samp>](## "sflow.interface.egress.enable_default") | Boolean | | | | Enable egress sFlow by default.<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unmodified</samp>](## "sflow.interface.egress.unmodified") | Boolean | | | | Enable egress sFlow unmodified.<br>Platform dependent feature.<br> |
| [<samp>&nbsp;&nbsp;run</samp>](## "sflow.run") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;hardware_acceleration</samp>](## "sflow.hardware_acceleration") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;enabled</samp>](## "sflow.hardware_acceleration.enabled") | Boolean | | | | |
Expand Down Expand Up @@ -57,6 +60,9 @@
interface:
disable:
default: <bool>
egress:
enable_default: <bool>
unmodified: <bool>
run: <bool>
hardware_acceleration:
enabled: <bool>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17750,6 +17750,26 @@
"^_.+$": {}
},
"title": "Disable"
},
"egress": {
"type": "object",
"properties": {
"enable_default": {
"type": "boolean",
"description": "Enable egress sFlow by default.\n",
"title": "Enable Default"
},
"unmodified": {
"type": "boolean",
"description": "Enable egress sFlow unmodified.\nPlatform dependent feature.\n",
"title": "Unmodified"
}
},
"additionalProperties": false,
"patternProperties": {
"^_.+$": {}
},
"title": "Egress"
}
},
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10330,6 +10330,21 @@ keys:
keys:
default:
type: bool
egress:
type: dict
keys:
enable_default:
type: bool
description: 'Enable egress sFlow by default.

'
unmodified:
type: bool
description: 'Enable egress sFlow unmodified.

Platform dependent feature.

'
run:
type: bool
hardware_acceleration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ keys:
keys:
default:
type: bool
egress:
type: dict
keys:
enable_default:
type: bool
description: |
Enable egress sFlow by default.
unmodified:
type: bool
description: |
Enable egress sFlow unmodified.
Platform dependent feature.
run:
type: bool
hardware_acceleration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ sFlow is disabled.

sFlow is disabled on all interfaces by default.
{% endif %}
{% if sflow.interface.egress.enable_default is arista.avd.defined(true) and sflow.interface.egress.unmodified is arista.avd.defined(false) %}

Egress sFlow is enabled on all interfaces by default.
{% elif sflow.interface.egress.enable_default is arista.avd.defined(true) and sflow.interface.egress.unmodified is arista.avd.defined(true) %}

Unmodified egress sFlow is enabled on all interfaces by default.
{% endif %}
{% if sflow.hardware_acceleration.enabled is arista.avd.defined(true) %}

sFlow hardware acceleration is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ no sflow extension {{ extension.name }}
{% if sflow.interface.disable.default is arista.avd.defined(true) %}
sflow interface disable default
{% endif %}
{% if sflow.interface.egress.enable_default is arista.avd.defined(true) and sflow.interface.egress.unmodified is arista.avd.defined(false) %}
sflow interface egress enable default
{% elif sflow.interface.egress.enable_default is arista.avd.defined(true) and sflow.interface.egress.unmodified is arista.avd.defined(true) %}
sflow interface egress unmodified enable default
{% endif %}
{% if sflow.run is arista.avd.defined(true) %}
sflow run
{% endif %}
Expand Down