Skip to content

Device discovery using IP prefixes#

IP Prefix discovery uses the provided prefix in the prefixes section of the DiscoveryRule CustomResource to identify the target device. With prefix discovery sdc full discovery cannot be disabled (see Discovery Configuration Options).

Attributes#

  • prefixes:
    • prefix: The ip prefix used for discovery.
    • excludes: The IP addresses or prefixes to exclude during discovery

Examples#

Example of a DiscoveryRule

apiVersion: inv.sdcio.dev/v1alpha1
kind: DiscoveryRule
metadata:
  name: dr-dynamic
  namespace: default
spec:
  period: 1m
  concurrentScans: 2
  prefixes:
  - prefix: 172.18.0.0/24
    excludes:
    - 172.18.0.0
    - 172.18.0.1
    - 172.18.0.255
  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