<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RegEx for Cisco interface in Scripting</title>
    <link>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70699#M412</link>
    <description>&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;A new feature request ?&lt;span class="lia-inline-image-display-wrapper" image-alt="97db514298ce48f99d3b5b8c99fe7c0c_1f601.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/1097i58F47EF5E487C226/image-size/large?v=v2&amp;amp;px=999" role="button" title="97db514298ce48f99d3b5b8c99fe7c0c_1f601.png" alt="97db514298ce48f99d3b5b8c99fe7c0c_1f601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mig&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 22:04:43 GMT</pubDate>
    <dc:creator>Miguel-Angel_RO</dc:creator>
    <dc:date>2020-11-24T22:04:43Z</dc:date>
    <item>
      <title>RegEx for Cisco interface</title>
      <link>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70695#M408</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;for the comliance engine I have to find all interfaces not have a certain command line.&lt;/P&gt;&lt;P&gt;Here is&amp;nbsp;a positive an a negativ example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;interface GigabitEthernet1/0/48&lt;BR /&gt;&amp;nbsp;description Test1&lt;BR /&gt;&amp;nbsp;switchport access vlan 830&lt;BR /&gt;&amp;nbsp;switchport mode access&lt;BR /&gt;&amp;nbsp;switchport voice vlan 310&lt;BR /&gt;&amp;nbsp;no cdp enable&lt;BR /&gt;!&lt;BR /&gt;interface GigabitEthernet1/0/49&lt;BR /&gt;&amp;nbsp;description Test2&lt;BR /&gt;&amp;nbsp;switchport mode trunk&lt;BR /&gt;&amp;nbsp;switchport nonegotiate&lt;BR /&gt;&amp;nbsp;queue-set 2&lt;BR /&gt;&amp;nbsp;&lt;STRONG&gt;mls qos trust dscp&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;channel-group 1 mode active&lt;BR /&gt;&amp;nbsp;ip dhcp snooping trust&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I am looking for an regex &lt;STRONG&gt;matching&lt;/STRONG&gt; the hole interface &lt;STRONG&gt;1/0/48&lt;/STRONG&gt;&amp;nbsp;and NOT&amp;nbsp;the interface 1/0/49.&lt;/P&gt;&lt;P&gt;The criterion should be, that all interfaces are found in which “&lt;STRONG&gt;mls qos trust dscp&lt;/STRONG&gt;” is NOT present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; &lt;STRONG&gt;“&lt;EM&gt;interface GigabitEthernet\d{1,2}\/\d{1,2}\/\d{1,2}[\s\n\w-].*?(?:(?&amp;lt;!mls qos trust dscp)[\s\n\w-])*?!&lt;/EM&gt;”&lt;/STRONG&gt; but this regex match all interfaces and not only the 1/0/48.&amp;nbsp; But this is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:24:23 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70695#M408</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-11-11T07:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx for Cisco interface</title>
      <link>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70696#M409</link>
      <description>&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;I think you’ll have to open a case at GTAC.&lt;/P&gt;&lt;P&gt;From my understanding the compliance engine will use python in the background and they seem to have the global flag active for the regex. This flag cannot be deactivated from within the regex.&lt;/P&gt;&lt;P&gt;Look at the following screenshots activting/deactivating the global flag:&lt;/P&gt;&lt;FIGURE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="a6448572b0874fa694b44f836a102f04_3ff52232-82bc-4333-b86b-74f2c91f0740.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/3151iD1C7928507716C76/image-size/large?v=v2&amp;amp;px=999" role="button" title="a6448572b0874fa694b44f836a102f04_3ff52232-82bc-4333-b86b-74f2c91f0740.png" alt="a6448572b0874fa694b44f836a102f04_3ff52232-82bc-4333-b86b-74f2c91f0740.png" /&gt;&lt;/span&gt;&lt;/FIGURE&gt;&lt;FIGURE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="a6448572b0874fa694b44f836a102f04_63a935a5-5a7f-46fc-9c3e-8c2d3fb4de81.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/5514i80FA586570F19256/image-size/large?v=v2&amp;amp;px=999" role="button" title="a6448572b0874fa694b44f836a102f04_63a935a5-5a7f-46fc-9c3e-8c2d3fb4de81.png" alt="a6448572b0874fa694b44f836a102f04_63a935a5-5a7f-46fc-9c3e-8c2d3fb4de81.png" /&gt;&lt;/span&gt;&lt;/FIGURE&gt;&lt;P&gt;Mig&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 16:48:17 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70696#M409</guid>
      <dc:creator>Miguel-Angel_RO</dc:creator>
      <dc:date>2020-11-11T16:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx for Cisco interface</title>
      <link>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70697#M410</link>
      <description>&lt;P&gt;Hello Mig,&lt;/P&gt;&lt;P&gt;thank you for the hint. I will check this with the GTAC and I will update the topic here.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 19:56:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70697#M410</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-11-11T19:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx for Cisco interface</title>
      <link>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70698#M411</link>
      <description>&lt;P&gt;Hello Mig,&lt;/P&gt;&lt;P&gt;your assumption was right, the compliance check &lt;STRONG&gt;does not &lt;/STRONG&gt;support &lt;STRONG&gt;multiline regex,&lt;/STRONG&gt; this is function as designed. This was the offical answer from GTAC.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 22:01:59 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70698#M411</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-11-24T22:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx for Cisco interface</title>
      <link>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70699#M412</link>
      <description>&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;A new feature request ?&lt;span class="lia-inline-image-display-wrapper" image-alt="97db514298ce48f99d3b5b8c99fe7c0c_1f601.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/1097i58F47EF5E487C226/image-size/large?v=v2&amp;amp;px=999" role="button" title="97db514298ce48f99d3b5b8c99fe7c0c_1f601.png" alt="97db514298ce48f99d3b5b8c99fe7c0c_1f601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mig&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 22:04:43 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70699#M412</guid>
      <dc:creator>Miguel-Angel_RO</dc:creator>
      <dc:date>2020-11-24T22:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx for Cisco interface</title>
      <link>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70700#M413</link>
      <description>&lt;P&gt;Hello Mig,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am in discussion with the sales team regarding an FR, yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 22:13:21 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/regex-for-cisco-interface/m-p/70700#M413</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-11-24T22:13:21Z</dc:date>
    </item>
  </channel>
</rss>

