Skip to main content

VRRP

This schema extension contains models for VRRP.

Details

  • Dependencies:

Nodes

VRRPGroup

  • Label: VRRP Group
  • Description: VRRP Group configuration
  • Namespace: Network
  • Icon: fluent:virtual-network-20-filled
  • Human Friendly ID: name__value

Attributes

namedescriptionkindoptionaldefault_valuechoices
nameUnique name of the entryTextFalse
vridVirtual Router ID (VRID, should be between 1 and 255)NumberFalse
passwordVRRP Password/KeyHashedPasswordTrue

Relationships

namepeeroptionalcardinalitykind
ip_addressesIpamIPAddressTruemanyAttribute
vrrp_interfacesNetworkVRRPInterfaceTruemanyComponent

VRRPInterface

  • Label: VRRP Interface
  • Description: VRRP Interface configuration
  • Namespace: Network
  • Icon: carbon:interface-usage
  • Uniqueness Constraints:
    • vrrp_group, interface

Attributes

namedescriptionkindoptionaldefault_valuechoices
priorityVRRP Priority (Should be between 1 and 255)NumberFalse100

Relationships

namepeeroptionalcardinalitykind
vrrp_groupNetworkVRRPGroupFalseoneAttribute
interfaceInterfaceLayer3FalseoneAttribute

Extensions

note

In this context "extensions" refer to modifications or additions to the existing schema, such as adding new attributes, relationships, or other schema elements.

InterfaceLayer3

Relationships

namepeeroptionalcardinalitykind
vrrpNetworkVRRPInterfaceTrueoneComponent

IpamIPAddress

Relationships

namepeeroptionalcardinalitykind
vrrpNetworkVRRPGroupTrueoneAttribute

Code

version: '1.0'
nodes:
- name: VRRPGroup
namespace: Network
description: VRRP Group configuration
label: VRRP Group
icon: fluent:virtual-network-20-filled
include_in_menu: true
human_friendly_id:
- name__value
order_by:
- name__value
display_label: name__value
attributes:
- name: name
kind: Text
label: Name
unique: true
optional: false
description: Unique name of the entry
order_weight: 1000
- name: vrid
kind: Number
label: VRID
parameters:
min_value: 1
max_value: 255
optional: false
description: Virtual Router ID (VRID, should be between 1 and 255)
order_weight: 1100
- name: password
kind: HashedPassword
label: Password
optional: true
description: VRRP Password/Key
order_weight: 1400
relationships:
- name: ip_addresses
peer: IpamIPAddress
label: IP Addresses
kind: Attribute
cardinality: many
optional: true
on_delete: cascade
description: VRRP IP (v4 or v6)
order_weight: 1200
- name: vrrp_interfaces
peer: NetworkVRRPInterface
label: VRRP Interfaces
kind: Component
cardinality: many
on_delete: cascade
optional: true
order_weight: 1300
- name: VRRPInterface
namespace: Network
description: VRRP Interface configuration
label: VRRP Interface
icon: carbon:interface-usage
include_in_menu: true
menu_placement: NetworkVRRPGroup
order_by:
- priority__value
uniqueness_constraints:
- - vrrp_group
- interface
attributes:
- name: priority
kind: Number
label: VRRP Priority
default_value: 100
parameters:
min_value: 1
max_value: 255
optional: false
description: VRRP Priority (Should be between 1 and 255)
order_weight: 1100
relationships:
- name: vrrp_group
peer: NetworkVRRPGroup
label: VRRP Group
kind: Attribute
cardinality: one
optional: false
description: VRRP Group
order_weight: 1200
- name: interface
peer: InterfaceLayer3
label: Interface
kind: Attribute
cardinality: one
optional: false
description: Interface L3
order_weight: 1300
extensions:
nodes:
- kind: InterfaceLayer3
relationships:
- name: vrrp
peer: NetworkVRRPInterface
label: VRRP
kind: Component
cardinality: one
optional: true
description: VRRP Interface Configuration
order_weight: 1650
- kind: IpamIPAddress
relationships:
- name: vrrp
peer: NetworkVRRPGroup
label: VRRP Group
kind: Attribute
cardinality: one
optional: true
description: Part of VRRP Group
order_weight: 1700