@@ -6,7 +6,9 @@ version: "1.0"
66nodes :
77 - name : LinecardType
88 namespace : Device
9+ menu_placement : DeviceLinecard
910 description : " Linecard Type information, detailing specifications such as part number and manufacturer."
11+ icon : mdi:poll
1012 label : " Linecard Type"
1113 inherit_from :
1214 - DeviceGenericModuleType
@@ -22,20 +24,9 @@ nodes:
2224 description : " A Linecard installed in a device, specifying slot, power status, and functionalities."
2325 label : " Linecard"
2426 icon : " bi:pci-card"
27+ menu_placement : DeviceGenericModule
2528 inherit_from :
2629 - DeviceGenericModule
27- uniqueness_constraints :
28- - ["serial_number__value"]
29- # # Only one Linecard per Device Slot
30- # - ["device", "slot__value"]
31- human_friendly_id :
32- - device__name__value
33- - slot__value
34- order_by :
35- - device__name__value
36- - slot__value
37- display_labels :
38- - serial_number__value
3930 attributes :
4031 - name : slot
4132 kind : Number
@@ -70,18 +61,23 @@ nodes:
7061 namespace : Device
7162 description : " Physical Interface Card (PIC) installed in the Linecard, containing multiple ports."
7263 label : " PIC"
64+ menu_placement : DeviceLinecard
65+ icon : mdi:memory
7366 uniqueness_constraints :
7467 # Only one PIC per slot within a Linecard
7568 - ["linecard", "slot__value"]
7669 human_friendly_id :
77- - linecard__serial_number__value
78- - slot__value
70+ - serial_number__value
7971 display_labels :
80- - slot__value
72+ - serial_number__value
8173 order_by :
8274 - linecard__serial_number__value
83- - slot__value
8475 attributes :
76+ - name : serial_number
77+ kind : Text
78+ unique : true
79+ description : " Unique serial number of the PIC."
80+ order_weight : 1000
8581 - name : slot
8682 kind : Number
8783 description : " Slot number of the PIC within the Linecard"
9793 order_weight : 1000
9894 - name : ports
9995 label : Ports
100- peer : InfraPort
96+ peer : DevicePort
10197 optional : true
10298 cardinality : many
10399 kind : Component
@@ -108,16 +104,18 @@ nodes:
108104 namespace : Device
109105 description : " A network port on a PIC, specifying speed and port number."
110106 label : " Port"
107+ menu_placement : DeviceLinecard
108+
109+ icon : mdi:ethernet
111110 uniqueness_constraints :
112111 - ["pic", "port_number__value"] # Each port must be unique within a PIC
113112 human_friendly_id :
114- - pic__slot__value
113+ - pic__serial_number__value
115114 - port_number__value
116115 display_labels :
117116 - port_number__value
118117 order_by :
119- - pic__slot__value
120- - port_number__value
118+ - pic__serial_number__value
121119 attributes :
122120 - name : port_number
123121 kind : Number
0 commit comments