#-------------------------------------------------------------------------------
#
#   Copyright 2014, 2020 Cumulus Networks, inc  all rights reserved
#
#   clagd - Multi-Chassis LACP Bonding Daemon Config File
#
#   This is an template for the daemon configuration file for clagd. This    
#   file, when present in /etc/default/clagd, is read when the clagd service
#   is started or stopped.
#
#   IMPORTANT: In its default state after installation, clagd will not run.
#   It requires configuration via this file in order to provide the proper
#   parameters for the daemon to execute.
#
#-------------------------------------------------------------------------------

#
#   Master control of the clagd deamon. Set to 'yes' once the rest of the 
#   required parameters are configured. Default is 'no'
#
CLAGD_ENABLE="no"

#
#   peerIf - The name of the Linux interface on this switch through which
#   the peer is connected and through which the clagd daemon will send   
#   protocol data units to the peer switch.  This will typically be a    
#   VLAN sub-interface of a bond or swp.                                 
#   e.g. CLAGD_PEER_IF="bond5.4000"
#
CLAGD_PEER_IF=""

#
#   sysMac - An identifier which is shared between this switch and the
#   peer switch to uniquely identify them as a pair of peer clag switches.
#   This identifier must be unique among all clag switches in the same 
#   bridged local area network (L2 domain). It is used to form the 802.3ad 
#   system ID for bonds on the peer switches. In order to avoid conflicts 
#   this value should be assigned from the range reserved for clagd:
#   44:38:39:ff:00:00 to 44:38:39:ff:ff:ff
#   e.g. CLAGD_SYS_MAC="44:38:39:ff:00:01"
#
CLAGD_SYS_MAC=""

#
#   peerIp - The IPv4 address or DNS name of the clag peer. Since the peer is
#   directly connected to this switch, it is recommended that a link local
#   address be used: 169.254.0.1 through 169.254.255.254
#   e.g.: CLAGD_PEER_IP="169.254.0.2"
#
CLAGD_PEER_IP=""

#
#   priority - A number between 0 and 65535 which sets the priority of this 
#   clagd switch. This value is compared against the value assigned to the peer
#   switch and the switch with the lower value will become the primary switch 
#   while the switch with the higher value will become the secondary switch. If
#   the two peers have the same priority value, the MAC addresses of the peer
#   interfaces are compared and the lowest address will become the primary
#   switch. The default is 32768.
#
# CLAGD_PRIORITY=32768

#
#   backupIp - Alternate IPv4 address or DNS name of the clag peer. This config
#   is used to determine the health of the peer switch independent of the 
#   directly connected peer link. The backup IP must be reachable via a route
#   that doesn't use the peer link. The management IP address of the peer
#   switch is best suited for this purpose and is the recommended best practice
#   configuration. Alternately the backup ip can be in a different vrf than the
#   peerip. backupVrf is an optional parameter and is assumed to
#   be "default" if not specified.
#   e.g.: CLAGD_BACKUP_VRF="green"
#   e.g.: CLAGD_BACKUP_IP="192.1.1.1"
#
#CLAGD_BACKUP_VRF=""
#CLAGD_BACKUP_IP=""

#
#   Additional daemon parameters. The clagd takes a number of other optional
#   parameters which can be found by running "/usr/sbin/clagd -h" as root or
#   referring to the clagd man page.
#   e.g. CLAGD_ARGS="--lacpPoll 2 --log syslog" 
#
CLAGD_ARGS=""
