This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Controling Interface discovery

Has anyone manged to control interface discovery using the 'AutoImportExpressionFilter' Regex option ?

I tried the following but it never discovers the interface

interfacesPluginContext  = {

    'AutoImportExpressionFilter': [{'Prop': 'Name', 'Op': 'Regex', 'Val': 'GigabitEthernet4/1/3'}],

  }

If I use the following it discovers all the Interfaces that are Up

  interfacesPluginContext  = {

    'AutoImportStatus': ['Up']

  }

  • For anyone else trying to use the AutoImportExpressionFilter ,  the below works.

    Note : 1)The "Name" Prop doesn't use the full name of the interface

              2) It appears you can't use the AutoImportExpressionFilter by itself, I had to include the 'AutoImportStatus' to get it to work

      interfacesPluginContext  = {

        'AutoImportStatus': ['Up'],

        'AutoImportExpressionFilter': [{'Prop': 'Name', 'Op': 'Regex', 'Val': 'Gi4/0/1$|Gi4/0/11$'}],

      }