cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1534
Views
0
Helpful
1
Replies

Regular Expression for physical interfaces only

axa-wongjeff
Level 1
Level 1

Working on creating a compliance template to make sure NetFlow is enabled on physical router interfaces.

My initial expression is  -- interface [#Serial.*|.*Ethernet.*|ATM.*#]

This expression works in that it checks all Serial, FastEthernet, GigabitEthernet, and all ATM interfaces.  It also checks sub-interfaces.

I would like to alter my template to ignore sub-interfaces like:

Serial 0/0.100

FastEthernet 0/0.500

I'm not sure how to setup expression to ignore interfaces that has a "." (dot) in the interface name. Maybe there's another solution that doesn't need regexp?

Thanks.

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

What about:

[#(Serial|.*Ethernet|ATM)[0-9/]+#]