-
Notifications
You must be signed in to change notification settings - Fork 79
evpn esi multihome model #301
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
8d23c05
0aeba6c
9c69eaf
b593afb
abf987c
d12bae4
59f02eb
5e7faf9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Using deleted | ||
# | ||
# Before state: | ||
#--------------- | ||
# | ||
# show running-configuration evpn-mh | ||
# | ||
# evpn esi-multihoming | ||
# mac-holdtime 1080 | ||
# neigh-holdtime 1080 | ||
# startup-delay 300 | ||
# | ||
|
||
- name: Delete soecific option from evpn_esi_multihome configuration | ||
sonic_evpn_esi_multihome: | ||
config: | ||
mac-holdtime: 1080 | ||
state: deleted | ||
|
||
# After State: | ||
#-------------- | ||
# | ||
# show running-configuration evpn-mh | ||
# | ||
# evpn esi-multihoming | ||
# neigh-holdtime 1080 | ||
# startup-delay 300 | ||
# |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Using Merged | ||
# | ||
# Before state: | ||
#--------------- | ||
# | ||
# show running-configuration evpn-mh | ||
# | ||
# | ||
# | ||
|
||
- name: Merge specific option from evpn_esi_multihome configuration | ||
sonic_evpn_esi_multihome: | ||
config: | ||
startup-delay: 300 | ||
state: merged | ||
|
||
# After State: | ||
#-------------- | ||
# | ||
# show running-configuration evpn-mh | ||
# | ||
# evpn esi-multihoming | ||
# startup-delay 300 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Using overridden | ||
# | ||
# Before state: | ||
#---------------- | ||
# | ||
# show running-configuration evpn-mh | ||
# | ||
# evpn esi-multihoming | ||
# mac-holdtime 1080 | ||
# neigh-holdtime 1080 | ||
# startup-delay 300 | ||
# | ||
|
||
- name: Override specific option from sonic_evpn_esi_multihome configuration | ||
sonic_evpn_esi_multihome: | ||
config: | ||
startup-delay: 200 | ||
state: overridden | ||
|
||
# After State: | ||
#-------------- | ||
# | ||
# show running-configuration evpn-mh | ||
# | ||
# evpn esi-multihoming | ||
# startup-delay 200 | ||
# |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,29 @@ | ||||
# Using replaced | ||||
# | ||||
# Before state: | ||||
#---------------- | ||||
# | ||||
# show running-configuration evpn-mh | ||||
# | ||||
# evpn esi-multihoming | ||||
# mac-holdtime 1080 | ||||
# neigh-holdtime 1080 | ||||
# startup-delay 300 | ||||
# | ||||
|
||||
- name: Replace specific option from sonic_evpn_esi_multihome configuration | ||||
sonic_evpn_esi_multihome: | ||||
config: | ||||
startup-delay: 200 | ||||
state: replaced | ||||
|
||||
# After State: | ||||
#-------------- | ||||
# | ||||
# show running-configuration evpn-mh | ||||
# | ||||
# evpn esi-multihoming | ||||
# mac-holdtime 1080 | ||||
# neigh-holdtime 1080 | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Replaced state should replace the entire existing config dictionary with the new config dictionary specified in the playbook. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||||
# startup-delay 200 | ||||
# |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add df_election_time and es_activation_delay as they are supported in CLI. Also, please add ranges for all attributes of type int. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added. |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,47 @@ | ||||||
--- | ||||||
GENERATOR_VERSION: '1.0' | ||||||
ANSIBLE_METADATA: | | ||||||
{ | ||||||
'metadata_version': '1.1', | ||||||
'status': ['preview'], | ||||||
'supported_by': 'community' | ||||||
} | ||||||
NETWORK_OS: sonic | ||||||
RESOURCE: snmp | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
COPYRIGHT: Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved. | ||||||
DOCUMENTATION: | | ||||||
module: sonic_evpn_esi_multihome | ||||||
version_added: 4.5 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
short_description: Manage SNMP configuration on SONiC | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
description: | ||||||
- This module provides configuration management of SNMP for devices running SONiC | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
author: Aida Shumburo (@aida-shumburo) | ||||||
options: | ||||||
config: | ||||||
description: | ||||||
- evpn esi multihome configuration | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
type: dict | ||||||
suboptions: | ||||||
mac-holdtime: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
attribute names should use underscores and not hyphens |
||||||
description: | ||||||
- mac holdtime | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
type: int | ||||||
neigh-holdtime: | ||||||
description: | ||||||
- neigh holdtime | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated. |
||||||
type: int | ||||||
startup-delay: | ||||||
description: | ||||||
- startup delay | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated. |
||||||
type: int | ||||||
state: | ||||||
description: | ||||||
- The state of the configuration after module completion | ||||||
type: str | ||||||
choices: ['merged', 'deleted', 'replaced', 'overridden'] | ||||||
default: merged | ||||||
EXAMPLES: | ||||||
- deleted_example_01.txt | ||||||
- merged_example_01.txt | ||||||
- replaced_example_01.txt | ||||||
- overridden_example_01.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.