<?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 RegEx in NetConf Request in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/regex-in-netconf-request/m-p/4445576#M2318</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to apply regex in NetConfig get request for IOS XR in order to retrieve some huge BGP related data, so I wanted to apply regex in order to divide one huge request into many smaller ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not find almost anything about regular expressions, except something like in this document:&lt;BR /&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/data-models/guide/b-data-models-config-guide-asr9000/b-data-odels-config-guide-asr9000_chapter_011.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/data-models/guide/b-data-models-config-guide-asr9000/b-data-odels-config-guide-asr9000_chapter_011.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, just for the sake of simple testing I applied regex based from the document above to filter bundle interfaces, but the router doesn't return anything:&lt;/P&gt;&lt;PRE&gt;&amp;lt;filter&amp;gt;
  &amp;lt;interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg"&amp;gt;
    &amp;lt;interface-configuration&amp;gt;
      &amp;lt;active/&amp;gt;
      &amp;lt;interface-name&amp;gt;Bundle.*&amp;lt;/interface-name&amp;gt;
    &amp;lt;/interface-configuration&amp;gt;
  &amp;lt;/interface-configurations&amp;gt;
&amp;lt;/filter&amp;gt;&lt;/PRE&gt;&lt;P&gt;The response is empty:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;rpc-reply message-id="urn:uuid:a012f10e-5b66-4560-8ba2-3b4841751ade" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;
  &amp;lt;data/&amp;gt;
&amp;lt;/rpc-reply&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the regex everything works fine, just all the interfaces are listed out.&lt;BR /&gt;Is this a bug or there is simply no support for regexes?&lt;BR /&gt;I was using the latest ncclient for NetConf communication and IOS XR 7.1.3.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Dragan&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 15:49:12 GMT</pubDate>
    <dc:creator>douglasfir</dc:creator>
    <dc:date>2021-08-06T15:49:12Z</dc:date>
    <item>
      <title>RegEx in NetConf Request</title>
      <link>https://community.cisco.com/t5/controllers/regex-in-netconf-request/m-p/4445576#M2318</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to apply regex in NetConfig get request for IOS XR in order to retrieve some huge BGP related data, so I wanted to apply regex in order to divide one huge request into many smaller ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not find almost anything about regular expressions, except something like in this document:&lt;BR /&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/data-models/guide/b-data-models-config-guide-asr9000/b-data-odels-config-guide-asr9000_chapter_011.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/data-models/guide/b-data-models-config-guide-asr9000/b-data-odels-config-guide-asr9000_chapter_011.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, just for the sake of simple testing I applied regex based from the document above to filter bundle interfaces, but the router doesn't return anything:&lt;/P&gt;&lt;PRE&gt;&amp;lt;filter&amp;gt;
  &amp;lt;interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg"&amp;gt;
    &amp;lt;interface-configuration&amp;gt;
      &amp;lt;active/&amp;gt;
      &amp;lt;interface-name&amp;gt;Bundle.*&amp;lt;/interface-name&amp;gt;
    &amp;lt;/interface-configuration&amp;gt;
  &amp;lt;/interface-configurations&amp;gt;
&amp;lt;/filter&amp;gt;&lt;/PRE&gt;&lt;P&gt;The response is empty:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;rpc-reply message-id="urn:uuid:a012f10e-5b66-4560-8ba2-3b4841751ade" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;
  &amp;lt;data/&amp;gt;
&amp;lt;/rpc-reply&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I remove the regex everything works fine, just all the interfaces are listed out.&lt;BR /&gt;Is this a bug or there is simply no support for regexes?&lt;BR /&gt;I was using the latest ncclient for NetConf communication and IOS XR 7.1.3.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Dragan&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 15:49:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/regex-in-netconf-request/m-p/4445576#M2318</guid>
      <dc:creator>douglasfir</dc:creator>
      <dc:date>2021-08-06T15:49:12Z</dc:date>
    </item>
  </channel>
</rss>

