fix(schema): use direction outbound for UnderlayLink relationships
Use outbound direction to avoid bidirectional relationship conflicts when multiple relationships point to the same peer type. Ref: #41
This commit is contained in:
@@ -85,20 +85,24 @@ nodes:
|
|||||||
kind: Parent
|
kind: Parent
|
||||||
- name: local_device
|
- name: local_device
|
||||||
peer: InfraDevice
|
peer: InfraDevice
|
||||||
identifier: underlaylink__local_device
|
identifier: underlay_link_local_device
|
||||||
cardinality: one
|
cardinality: one
|
||||||
|
direction: outbound
|
||||||
- name: local_interface
|
- name: local_interface
|
||||||
peer: InfraInterfaceEthernet
|
peer: InfraInterfaceEthernet
|
||||||
identifier: underlaylink__local_interface
|
identifier: underlay_link_local_interface
|
||||||
cardinality: one
|
cardinality: one
|
||||||
|
direction: outbound
|
||||||
- name: remote_device
|
- name: remote_device
|
||||||
peer: InfraDevice
|
peer: InfraDevice
|
||||||
identifier: underlaylink__remote_device
|
identifier: underlay_link_remote_device
|
||||||
cardinality: one
|
cardinality: one
|
||||||
|
direction: outbound
|
||||||
- name: remote_interface
|
- name: remote_interface
|
||||||
peer: InfraInterfaceEthernet
|
peer: InfraInterfaceEthernet
|
||||||
identifier: underlaylink__remote_interface
|
identifier: underlay_link_remote_interface
|
||||||
cardinality: one
|
cardinality: one
|
||||||
|
direction: outbound
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Host Connection
|
# Host Connection
|
||||||
|
|||||||
Reference in New Issue
Block a user