Skip to content

Commit b47555e

Browse files
committed
add generated files, fix linter
1 parent 24603e1 commit b47555e

File tree

3 files changed

+147
-10
lines changed

3 files changed

+147
-10
lines changed

dist/chart/templates/crd/metal.ironcore.dev_servers.yaml

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,19 +464,52 @@ spec:
464464
items:
465465
description: NetworkInterface defines the details of a network interface.
466466
properties:
467-
ip:
468-
description: |-
469-
IP is the IP address assigned to the network interface.
470-
The type is specified as string and is schemaless.
467+
carrierStatus:
468+
description: CarrierStatus is the operational carrier status
469+
of the network interface.
471470
type: string
471+
ips:
472+
description: IPs is a list of IP addresses (both IPv4 and IPv6)
473+
assigned to the network interface.
474+
items:
475+
format: ip
476+
type: string
477+
type: array
472478
macAddress:
473479
description: MACAddress is the MAC address of the network interface.
474480
type: string
475481
name:
476482
description: Name is the name of the network interface.
477483
type: string
484+
neighbors:
485+
description: Neighbors contains the LLDP neighbors discovered
486+
on this interface.
487+
items:
488+
description: LLDPNeighbor defines the details of an LLDP neighbor.
489+
properties:
490+
macAddress:
491+
description: MACAddress is the MAC address of the LLDP
492+
neighbor.
493+
type: string
494+
portDescription:
495+
description: PortDescription is the port description of
496+
the LLDP neighbor.
497+
type: string
498+
portID:
499+
description: PortID is the port identifier of the LLDP
500+
neighbor.
501+
type: string
502+
systemDescription:
503+
description: SystemDescription is the system description
504+
of the LLDP neighbor.
505+
type: string
506+
systemName:
507+
description: SystemName is the system name of the LLDP
508+
neighbor.
509+
type: string
510+
type: object
511+
type: array
478512
required:
479-
- ip
480513
- macAddress
481514
- name
482515
type: object

docs/api-reference/api.md

Lines changed: 108 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3019,6 +3019,84 @@ IP
30193019
</tr>
30203020
</tbody>
30213021
</table>
3022+
<h3 id="metal.ironcore.dev/v1alpha1.LLDPNeighbor">LLDPNeighbor
3023+
</h3>
3024+
<p>
3025+
(<em>Appears on:</em><a href="#metal.ironcore.dev/v1alpha1.NetworkInterface">NetworkInterface</a>)
3026+
</p>
3027+
<div>
3028+
<p>LLDPNeighbor defines the details of an LLDP neighbor.</p>
3029+
</div>
3030+
<table>
3031+
<thead>
3032+
<tr>
3033+
<th>Field</th>
3034+
<th>Description</th>
3035+
</tr>
3036+
</thead>
3037+
<tbody>
3038+
<tr>
3039+
<td>
3040+
<code>macAddress</code><br/>
3041+
<em>
3042+
string
3043+
</em>
3044+
</td>
3045+
<td>
3046+
<em>(Optional)</em>
3047+
<p>MACAddress is the MAC address of the LLDP neighbor.</p>
3048+
</td>
3049+
</tr>
3050+
<tr>
3051+
<td>
3052+
<code>portID</code><br/>
3053+
<em>
3054+
string
3055+
</em>
3056+
</td>
3057+
<td>
3058+
<em>(Optional)</em>
3059+
<p>PortID is the port identifier of the LLDP neighbor.</p>
3060+
</td>
3061+
</tr>
3062+
<tr>
3063+
<td>
3064+
<code>portDescription</code><br/>
3065+
<em>
3066+
string
3067+
</em>
3068+
</td>
3069+
<td>
3070+
<em>(Optional)</em>
3071+
<p>PortDescription is the port description of the LLDP neighbor.</p>
3072+
</td>
3073+
</tr>
3074+
<tr>
3075+
<td>
3076+
<code>systemName</code><br/>
3077+
<em>
3078+
string
3079+
</em>
3080+
</td>
3081+
<td>
3082+
<em>(Optional)</em>
3083+
<p>SystemName is the system name of the LLDP neighbor.</p>
3084+
</td>
3085+
</tr>
3086+
<tr>
3087+
<td>
3088+
<code>systemDescription</code><br/>
3089+
<em>
3090+
string
3091+
</em>
3092+
</td>
3093+
<td>
3094+
<em>(Optional)</em>
3095+
<p>SystemDescription is the system description of the LLDP neighbor.</p>
3096+
</td>
3097+
</tr>
3098+
</tbody>
3099+
</table>
30223100
<h3 id="metal.ironcore.dev/v1alpha1.NetworkInterface">NetworkInterface
30233101
</h3>
30243102
<p>
@@ -3048,16 +3126,16 @@ string
30483126
</tr>
30493127
<tr>
30503128
<td>
3051-
<code>ip</code><br/>
3129+
<code>ips</code><br/>
30523130
<em>
30533131
<a href="#metal.ironcore.dev/v1alpha1.IP">
3054-
IP
3132+
[]IP
30553133
</a>
30563134
</em>
30573135
</td>
30583136
<td>
3059-
<p>IP is the IP address assigned to the network interface.
3060-
The type is specified as string and is schemaless.</p>
3137+
<em>(Optional)</em>
3138+
<p>IPs is a list of IP addresses (both IPv4 and IPv6) assigned to the network interface.</p>
30613139
</td>
30623140
</tr>
30633141
<tr>
@@ -3071,6 +3149,32 @@ string
30713149
<p>MACAddress is the MAC address of the network interface.</p>
30723150
</td>
30733151
</tr>
3152+
<tr>
3153+
<td>
3154+
<code>carrierStatus</code><br/>
3155+
<em>
3156+
string
3157+
</em>
3158+
</td>
3159+
<td>
3160+
<em>(Optional)</em>
3161+
<p>CarrierStatus is the operational carrier status of the network interface.</p>
3162+
</td>
3163+
</tr>
3164+
<tr>
3165+
<td>
3166+
<code>neighbors</code><br/>
3167+
<em>
3168+
<a href="#metal.ironcore.dev/v1alpha1.LLDPNeighbor">
3169+
[]LLDPNeighbor
3170+
</a>
3171+
</em>
3172+
</td>
3173+
<td>
3174+
<em>(Optional)</em>
3175+
<p>Neighbors contains the LLDP neighbors discovered on this interface.</p>
3176+
</td>
3177+
</tr>
30743178
</tbody>
30753179
</table>
30763180
<h3 id="metal.ironcore.dev/v1alpha1.Phase">Phase

internal/probe/networking.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func collectNetworkData() ([]registry.NetworkInterface, error) {
2323
return nil, err
2424
}
2525

26-
var networkInterfaces []registry.NetworkInterface
26+
networkInterfaces := make([]registry.NetworkInterface, 0, len(interfaces))
2727
for _, iface := range interfaces {
2828
// Skip only loopback, tun devices, and docker interface
2929
// But include all other interfaces regardless of up/down status

0 commit comments

Comments
 (0)