Static

List devices inline in the TargetSource

An inline inventory. It exists so a small fixed lab needs no second resource, and so the naming, pruning and conflict behaviour can be tried without any external system.

apiVersion: operator.gnmic.dev/v1alpha1
kind: TargetSource
metadata:
  name: lab
spec:
  source:
    type: Static
    static:
      devices:
        - name: leaf1
          address: 10.0.0.1
        - name: leaf2
          address: 10.0.0.2
          port: 57401
          profile: srlinux
          labels: { role: leaf }
  target:
    port: 57400
    profile: default
FieldTypeDescription
devices[].namestringRequired.
devices[].addressstringRequired. An IP or hostname without a port.
devices[].portintOverrides target.port for this device.
devices[].profilestringOverrides target.profile for this device.
devices[].labelsmapAdded to the Target.

Editing the list is a spec change and triggers a run at once.