version: '1.0'
generics:
- name: MlagDomain
namespace: Generic
description: Generic holding the peer links and interfaces shared by the members
of an MLAG domain.
label: MLAG Domain
include_in_menu: false
human_friendly_id:
- domain_id__value
display_label: domain_id__value
attributes:
- name: domain_id
kind: Text
label: MLAG Domain ID
unique: true
optional: false
description: Identifier for the MLAG domain
order_weight: 1000
- name: reload_delay
kind: Number
label: Reload Delay
default_value: 300
optional: false
description: Time in seconds to wait before bringing up the MLAG after a reload
order_weight: 1650
relationships:
- name: peer_links
peer: InterfaceLag
label: Peer Links
kind: Attribute
cardinality: many
optional: true
description: LAG interfaces used as peer-links between the MLAG peers
order_weight: 1500
- name: mlag_interfaces
peer: MlagInterface
label: MLAG Interface(s)
kind: Component
cardinality: many
optional: true
description: Bundle interfaces that are spread across all devices in this MLAG
domain.
order_weight: 1550
nodes:
- name: Interface
namespace: Mlag
description: Multi-Chassis Link Aggregation Group Interface
label: MLAG Interface
include_in_menu: false
inherit_from:
- InterfaceLayer2
- GenericInterfaceBundle
human_friendly_id:
- mlag_domain__domain_id__value
- name__value
order_by:
- name__value
display_label: name__value
uniqueness_constraints:
- - mlag_domain
- name__value
attributes:
- name: name
kind: Text
optional: false
description: Name of the interface
order_weight: 1000
- name: description
kind: Text
optional: true
description: A brief description of the interface
order_weight: 1100
- name: status
kind: Dropdown
default_value: active
choices:
- name: provisioning
label: Provisioning
description: Interface is being provisioned.
color: '#A9DFBF'
- name: free
label: Free
description: Interface is unused.
color: '#CDEACC'
- name: active
label: Active
description: Interface is active and operational.
color: '#00d25b'
- name: maintenance
label: Maintenance
description: Interface is under maintenance.
color: '#FFF2CC'
- name: disabled
label: Disabled
description: Interface has been disabled.
color: '#D3D3D3'
- name: deleted
label: Deleted
description: Interface has been deleted.
color: '#FAD7A0'
- name: outage
label: Outage
description: Interface is currently experiencing an outage.
color: '#F4CCCC'
optional: false
description: The status of the interface
order_weight: 1200
- name: role
kind: Dropdown
choices:
- name: server
label: Server Interface
description: Interface connecting servers
color: '#A9DFBF'
- name: router
label: Router Interface
description: Interface connecting routers
color: '#B2D4E6'
optional: true
description: The role of the interface in the network
order_weight: 1300
relationships:
- name: mlag_domain
peer: GenericMlagDomain
label: MLAG Domain
kind: Parent
cardinality: one
optional: false
description: MLAG Domain this MLAG Interface belongs to
order_weight: 900
- name: Domain
namespace: Mlag
description: MLAG (Multi-Chassis Link Aggregation Group) Domain
label: MLAG Domain
icon: mingcute:cloud-line
include_in_menu: true
inherit_from:
- GenericMlagDomain
relationships:
- name: peers
peer: DcimDevice
kind: Generic
cardinality: many
optional: false
identifier: device__mlag_domain
min_count: 2
max_count: 2
order_weight: 950
extensions:
nodes:
- kind: InterfaceLag
relationships:
- name: mlag_peer_link
peer: MlagDomain
label: MLAG Peer Link
kind: Attribute
cardinality: one
optional: true
description: MLAG Domain this LAG is used as peer link
order_weight: 1950
- kind: DcimDevice
relationships:
- name: mlag_domain
peer: MlagDomain
label: MLAG Domain
kind: Attribute
cardinality: one
optional: true
identifier: device__mlag_domain
description: MLAG Domain this device belongs to
order_weight: 1900