Skip to content

Device discovery using Addresses (IPs or DNS names)#

Address discovery uses the provided address in the addresses section of the DiscoveryRule CustomResource to identify the target device. With address discovery sdc allows to enable or disable full discovery (see Discovery Configuration Options).

Attributes#

  • addresses
    • address: The mgmt address of the Target.
    • hostName: The hostname of the target. if left empty the provided address will be used as the hostname.

Examples#

Example of a DiscoveryRule

apiVersion: inv.sdcio.dev/v1alpha1
kind: DiscoveryRule
metadata:
  name: dr-address
  namespace: default
spec:
  period: 1m
  concurrentScans: 2
  addresses:
  - address: 172.18.0.4
    hostName: dev1
  - address: 172.18.0.3
    hostName: dev2
  discoveryProfile:
    credentials: srl.nokia.sdcio.dev 
    connectionProfiles:
    - gnmi-skipverify
  targetConnectionProfiles:
  - credentials: srl.nokia.sdcio.dev 
    connectionProfile: gnmi-skipverify
    syncProfile: gnmi-onchange
  targetTemplate:
    labels:
      sdcio.dev/region: us-east