Skip to content

Resoure module changes for the new yang leafs added as part of MCLAG split brain detection and recovery changes #291

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
18 changes: 18 additions & 0 deletions models/enterprise_sonic/mclag/deleted_example_01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
# Mclag System Mac : 00:00:00:11:11:11
# Gateway Mac : 00:00:00:12:12:12
#
# Backup Keepalive Session Information:
# -----------------------------------
# Session Vrf : mgmt
# Session Status : down
# Source Address : 3.3.3.3
# Peer Address : 4.4.4.4
# Keepalive Interval : 5 secs
#-----------------------------------
#
# Number of MLAG Interfaces:1
#-----------------------------------------------------------
Expand Down Expand Up @@ -51,6 +59,8 @@
source_address: 3.3.3.3
session_vrf: mgmt
keepalive: 10
backup_keepalive_source_address: 3.3.3.3
backup_keepalive_session_vrf: mgmt
members:
portchannels:
- lag: PortChannel10
Expand All @@ -76,6 +86,14 @@
# Mclag System Mac : 00:00:00:11:11:11
# Gateway Mac : 00:00:00:12:12:12
#
#Backup Keepalive Session Information:
#-----------------------------------
#Session Vrf : default
#Session Status : down
#Source Address :
#Peer Address : 4.4.4.4
#Keepalive Interval : 5 secs
#-----------------------------------
#
# Number of MLAG Interfaces:0
#
Expand Down
8 changes: 8 additions & 0 deletions models/enterprise_sonic/mclag/deleted_example_02.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
# Mclag System Mac : 00:00:00:11:11:11
# Gateway Mac : 00:00:00:12:12:12
#
# Backup Keepalive Session Information:
# -----------------------------------
# Session Vrf : mgmt
# Session Status : down
# Source Address : 3.3.3.3
# Peer Address : 4.4.4.4
# Keepalive Interval : 5 secs
#-----------------------------------
#
# Number of MLAG Interfaces:1
#-----------------------------------------------------------
Expand Down
19 changes: 19 additions & 0 deletions models/enterprise_sonic/mclag/deleted_example_03.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
# Gateway Mac : 00:00:00:12:12:12
#
#
#Backup Keepalive Session Information:
#-----------------------------------
#Session Vrf : mgmt
#Session Status : down
#Source Address : 3.3.3.3
#Peer Address : 4.4.4.4
#Keepalive Interval : 5 secs
#-----------------------------------
#
# Number of MLAG Interfaces:2
#-----------------------------------------------------------
# MLAG Interface Local/Remote Status
Expand Down Expand Up @@ -51,6 +60,8 @@
domain_id: 1
source_address: 3.3.3.3
keepalive: 10
backup_keepalive_peer_address: 4.4.4.4
backup_keepalive_interval: 5
peer_gateway:
vlans:
members:
Expand All @@ -77,6 +88,14 @@
# Mclag System Mac : 00:00:00:11:11:11
# Gateway Mac : 00:00:00:12:12:12
#
# Backup Keepalive Session Information:
# -----------------------------------
# Session Vrf : mgmt
# Session Status : down
# Source Address : 3.3.3.3
# Peer Address :
# Keepalive Interval : 30 secs
#-----------------------------------
#
# Number of MLAG Interfaces:0
#
Expand Down
12 changes: 12 additions & 0 deletions models/enterprise_sonic/mclag/merged_example_01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
delay_restore: 240
system_mac: '00:00:00:11:11:11'
gateway_mac: '00:00:00:12:12:12'
backup_keepalive_source_address: 3.3.3.3
backup_keepalive_session_vrf: mgmt
backup_keepalive_peer_address: 4.4.4.4
backup_keepalive_interval: 5
unique_ip:
vlans:
- vlan: Vlan4
Expand Down Expand Up @@ -50,6 +54,14 @@
# Mclag System Mac : 00:00:00:11:11:11
# Gateway Mac : 00:00:00:12:12:12
#
# Backup Keepalive Session Information:
# -----------------------------------
# Session Vrf : mgmt
# Session Status : down
# Source Address : 3.3.3.3
# Peer Address : 4.4.4.4
# Keepalive Interval : 5 secs
#-----------------------------------
#
# Number of MLAG Interfaces:1
#-----------------------------------------------------------
Expand Down
20 changes: 20 additions & 0 deletions models/enterprise_sonic/mclag/merged_example_02.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
# Mclag System Mac : 00:00:00:11:11:11
# Gateway Mac : 00:00:00:12:12:12
#
#Backup Keepalive Session Information:
#-----------------------------------
#Session Vrf : mgmt
#Session Status : down
#Source Address : 3.3.3.3
#Peer Address : 4.4.4.4
#Keepalive Interval : 5 secs
#-----------------------------------
#
# Number of MLAG Interfaces:1
#-----------------------------------------------------------
Expand Down Expand Up @@ -62,6 +70,10 @@
members:
portchannels:
- lag: PortChannel12
backup_keepalive_source_address: 33.33.33.33
backup_keepalive_session_vrf: VrfRed
backup_keepalive_peer_address: 43.43.43.43
backup_keepalive_interval: 59
state: merged

# After state:
Expand All @@ -84,6 +96,14 @@
# Mclag System Mac : 00:00:00:11:11:11
# Gateway Mac : 00:00:00:12:12:12
#
# Backup Keepalive Session Information:
# -----------------------------------
# Session Vrf : VrfRed
# Session Status : down
# Source Address : 33.33.33.33
# Peer Address : 43.43.43.43
# Keepalive Interval : 59 secs
#-----------------------------------
#
# Number of MLAG Interfaces:2
#-----------------------------------------------------------
Expand Down
16 changes: 16 additions & 0 deletions models/enterprise_sonic/mclag/sonic_mclag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ DOCUMENTATION: |
description: Holds a PortChannel ID.
type: str
type: dict
backup_keepalive_source_address:
description:
- The IPV4 backup-keepalive-source-ip for establishing backup keepalive session.
type: str
backup_keepalive_peer_address:
description:
- The IPV4 backup-keepalive-peer-ip for establishing backup keepalive session.
type: str
backup_keepalive_interval:
description:
- MCLAG backup keepalive session interval in secs.
type: int
backup_keepalive_session_vrf:
description:
- MCLAG backup keepalive session vrf
type: str
state:
description:
- The state that the configuration should be left in.
Expand Down