<?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: How to retrieve the interface configuration in Tools</title>
    <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597544#M2715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="http://ydk.cisco.com/py/docs/ydk.services.html#codecservice-provides-encode-decode-api-s"&gt;codec service&lt;/A&gt; decodes and encodes data. The &lt;A href="https://github.com/CiscoDevNet/ydk-py-samples"&gt;ydk-py-samples repo&lt;/A&gt; has numerous &lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/codec/models"&gt;sample apps using codec service&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;HTH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2017 19:54:10 GMT</pubDate>
    <dc:creator>saalvare</dc:creator>
    <dc:date>2017-07-13T19:54:10Z</dc:date>
    <item>
      <title>How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597539#M2710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to retrieve the interface configuration??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw the "nc-read-xr-ifmgr-cfg-11-ydk.py", the process is just "pass"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def process_interface_configurations(interface_configurations):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Process data in interface_configurations object."""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to modified a bit but I got the response "None".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def process_interface_configurations(interface_configurations):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Process data in interface_configurations object."""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int=interface_configurations.InterfaceConfiguration()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print ('interface name: ',int.interface_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it should be a list of configuration... but don't know how it should be...&lt;/P&gt;&lt;P&gt;any sample can be reference???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 03:25:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597539#M2710</guid>
      <dc:creator>yitung</dc:creator>
      <dc:date>2016-12-08T03:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597540#M2711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All basic sample apps in the range of 10-19 are boilerplates (templates).&amp;nbsp; Those boilerplates do no processing and provide no output.&amp;nbsp; The convention should be described in the README:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic" title="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic"&gt;ydk-py-samples/samples/basic at master · CiscoDevNet/ydk-py-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, for a sample implementation of processing interface config, here's a very simple function to print the interface names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14812171039796946" jivemacro_uid="_14812171039796946"&gt;
&lt;P&gt;def process_interface_configurations(interface_configurations):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Process data in interface_configurations object."""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for interface_configuration in interface_configurations.interface_configuration:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(interface_configuration.interface_name)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The entire configuration hierarchy is documented at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://ydk.cisco.com/py/docs/gen_doc_6bcc931a236e23d2877d3e742c4a01f5adc17782.html" style="font-size: 10pt;" title="http://ydk.cisco.com/py/docs/gen_doc_6bcc931a236e23d2877d3e742c4a01f5adc17782.html"&gt;http://ydk.cisco.com/py/docs/gen_doc_6bcc931a236e23d2877d3e742c4a01f5adc17782.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function above produces the following output when the script is run against one of my routers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14812173575541844" jivemacro_uid="_14812173575541844"&gt;
&lt;P&gt;Loopback0&lt;/P&gt;
&lt;P&gt;MgmtEth0/RP0/CPU0/0&lt;/P&gt;
&lt;P&gt;GigabitEthernet0/0/0/0&lt;/P&gt;
&lt;P&gt;GigabitEthernet0/0/0/1&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 17:16:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597540#M2711</guid>
      <dc:creator>saalvare</dc:creator>
      <dc:date>2016-12-08T17:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597541#M2712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Million Thanks!! IT works like a charm! I now start understand the idea to learn ydk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question, is there a way to read all configurations under a specific interface??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 09:37:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597541#M2712</guid>
      <dc:creator>yitung</dc:creator>
      <dc:date>2016-12-09T09:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597542#M2713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure thing.&amp;nbsp; Note that the object passed to crud.read really acts as a filter.&amp;nbsp; So, you need to construct an object with an interface with the name you're interested in.&amp;nbsp; Interface name is the key of the list of interfaces defined in the model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14816679949582804" jivemacro_uid="_14816679949582804" modifiedtitle="true"&gt;
&lt;P&gt;# create read filter for mgmt interface&lt;/P&gt;
&lt;P&gt;interface_configurations = xr_ifmgr_cfg.InterfaceConfigurations()&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;interface_configuration = interface_configurations.InterfaceConfiguration()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;interface_configuration.interface_name ="MgmtEth0/RP0/CPU0/0"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;interface_configurations.interface_configuration.append(interface_configuration)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# read data from NETCONF device&lt;/P&gt;
&lt;P&gt;interface_configurations = crud.read(provider, interface_configurations)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, you can be more clever and just instantiate the class that defines an interface.&amp;nbsp; YDK will do the right thing and build the proper filter with the full hierarchy even though you are reading a more specific object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14816684678311209" jivemacro_uid="_14816684678311209" modifiedtitle="true"&gt;
&lt;P&gt;# create read filter for mgmt interface&lt;/P&gt;
&lt;P&gt;interface_configuration = xr_ifmgr_cfg.InterfaceConfigurations.InterfaceConfiguration()&lt;/P&gt;
&lt;P&gt;interface_configuration.interface_name ="MgmtEth0/RP0/CPU0/0"&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;# read data from NETCONF device&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;interface_configuration = crud.read(provider, interface_configuration)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say we just want to print the interface description once read:&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14816686274641708" jivemacro_uid="_14816686274641708" modifiedtitle="true"&gt;
&lt;P&gt;print(interface_configuration.description)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a sample output on a mgmt interface with an obvious description:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;$ ./nc-read-xr-ifmgr-cfg-99-ydk.py ssh://admin:admin@router&lt;/P&gt;
&lt;P&gt;*** MANAGEMENT INTERFACE ***&lt;/P&gt;
&lt;P&gt;$&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the full app log:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;$ ./nc-read-xr-ifmgr-cfg-99-ydk.py ssh://admin:admin@router -v&lt;/P&gt;
&lt;P&gt;2016-12-13 14:44:10,148 - ydk.providers.netconf_provider - INFO - NetconfServiceProvider connected to router:None using ssh&lt;/P&gt;
&lt;P&gt;2016-12-13 14:44:10,211 - ydk.services.crud_service - INFO - READ operation initiated&lt;/P&gt;
&lt;P&gt;2016-12-13 14:44:10,213 - ydk.providers._provider_plugin - DEBUG - &lt;/P&gt;
&lt;P&gt;&amp;lt;rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:63dbbab9-2cce-48e8-8437-832206be1989"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;get&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filter type="subtree"&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interface-configurations xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg" rel="nofollow" target="_blank"&gt;http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interface-configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interface-name&amp;gt;MgmtEth0/RP0/CPU0/0&amp;lt;/interface-name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/interface-configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/interface-configurations&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/filter&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/get&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/rpc&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2016-12-13 14:44:10,277 - ydk.providers._provider_plugin - DEBUG - &lt;/P&gt;
&lt;P&gt;&amp;lt;rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:63dbbab9-2cce-48e8-8437-832206be1989"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;data&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interface-configurations xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg" rel="nofollow" target="_blank"&gt;http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interface-configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;active&amp;gt;act&amp;lt;/active&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interface-name&amp;gt;MgmtEth0/RP0/CPU0/0&amp;lt;/interface-name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;*** MANAGEMENT INTERFACE ***&amp;lt;/description&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ipv4-network xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-io-cfg" rel="nofollow" target="_blank"&gt;http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-io-cfg&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;addresses&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;primary&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;address&amp;gt;10.30.110.82&amp;lt;/address&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;netmask&amp;gt;255.255.254.0&amp;lt;/netmask&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/primary&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/addresses&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ipv4-network&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/interface-configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/interface-configurations&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/data&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/rpc-reply&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;2016-12-13 14:44:10,278 - ydk.services.crud_service - INFO - READ operation completed&lt;/P&gt;
&lt;P&gt;*** MANAGEMENT INTERFACE ***&lt;/P&gt;
&lt;P&gt;2016-12-13 14:44:10,500 - ydk.providers.netconf_provider - INFO - NetconfServiceProvider disconnected from router using ssh&lt;/P&gt;
&lt;P&gt;$ &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 22:50:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597542#M2713</guid>
      <dc:creator>saalvare</dc:creator>
      <dc:date>2016-12-13T22:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597543#M2714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you print the whole XML interface in a single print statement?&amp;nbsp; Similar to what is in the rpc-reply data group?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 19:38:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597543#M2714</guid>
      <dc:creator>benicetomeok</dc:creator>
      <dc:date>2017-07-13T19:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597544#M2715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="http://ydk.cisco.com/py/docs/ydk.services.html#codecservice-provides-encode-decode-api-s"&gt;codec service&lt;/A&gt; decodes and encodes data. The &lt;A href="https://github.com/CiscoDevNet/ydk-py-samples"&gt;ydk-py-samples repo&lt;/A&gt; has numerous &lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/codec/models"&gt;sample apps using codec service&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;HTH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 19:54:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597544#M2715</guid>
      <dc:creator>saalvare</dc:creator>
      <dc:date>2017-07-13T19:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597545#M2716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for pointing me over to codec service.... which I tried but they are not working so well for me.&lt;/P&gt;&lt;P&gt;I've tried the examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp; cd-encode-xr-ifmgr-cfg-10-ydk.py&lt;/P&gt;&lt;P&gt;&amp;nbsp; cd-encode-xr-ifmgr-cfg-11-ydk.py&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've uncommented the print statement in each, ran similar to: (like README example says to)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd-encode-xr-ifmgr-cfg-11-ydk.py ssh://jb:password@abc.123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And get:&lt;/P&gt;&lt;P&gt;usage: cd-encode-xr-ifmgr-cfg-11-ydk.py [-h] [-v]&lt;/P&gt;&lt;P&gt;cd-encode-xr-ifmgr-cfg-11-ydk.py: error: unrecognized arguments: ssh://jb:password@abc.123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the script, as is, gives me simply this output:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;interface-configurations xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg" rel="nofollow" target="_blank"&gt;http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if I'm looking for decode, I'm seeing no examples?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 20:24:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597545#M2716</guid>
      <dc:creator>benicetomeok</dc:creator>
      <dc:date>2017-07-13T20:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597546#M2717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Codec executes local encoding/decoding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;cd-encode-xr-ifmgr-cfg-11-ydk.py&amp;nbsp; # &amp;lt;-- no need for credentials&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 21:50:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597546#M2717</guid>
      <dc:creator>xiaoqinz</dc:creator>
      <dc:date>2017-07-13T21:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597547#M2718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you read the description at &lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic" title="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic"&gt;https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic&lt;/A&gt;&amp;nbsp; you'll see that the basic samples in the 10-19 range are boilerplates (templates).&amp;nbsp; They contain no configuration.&amp;nbsp;&amp;nbsp; For interfaces, there are samples from 20 through 36 with useful configuration.&amp;nbsp; For instance:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ifmgr-cfg/cd-encode-xr-ifmgr-cfg-36-ydk.py" title="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ifmgr-cfg/cd-encode-xr-ifmgr-cfg-36-ydk.py"&gt;ydk-py-samples/cd-encode-xr-ifmgr-cfg-36-ydk.py at master · CiscoDevNet/ydk-py-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and it's XML output:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ifmgr-cfg/cd-encode-xr-ifmgr-cfg-36-ydk.xml" title="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ifmgr-cfg/cd-encode-xr-ifmgr-cfg-36-ydk.xml"&gt;ydk-py-samples/cd-encode-xr-ifmgr-cfg-36-ydk.xml at master · CiscoDevNet/ydk-py-samples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the help string indicates, the codec sample apps take no argument to connect to a device.&amp;nbsp; These apps only encode a Python object into XML and print the resulting string.&amp;nbsp; Hope this clarifies.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2017 23:13:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597547#M2718</guid>
      <dc:creator>saalvare</dc:creator>
      <dc:date>2017-07-13T23:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597548#M2719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is helpful, but I was hoping to print a router's interface XML information via my own print command, not something local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be like ...&lt;/P&gt;&lt;P&gt;1. set the provider variable with router info, username, password&lt;/P&gt;&lt;P&gt;2. set interface filter&lt;/P&gt;&lt;P&gt;3. then print like:&amp;nbsp;&amp;nbsp; print( &amp;lt;????&amp;gt;(provider, interface_configurations))&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;this would print out the complete router's interface, or whatever I've may have filtered on... like a specific interface-name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 13:51:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597548#M2719</guid>
      <dc:creator>benicetomeok</dc:creator>
      <dc:date>2017-07-14T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597549#M2720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're looking at an XML-centric use case, it may be that an approach other than the YDK is what you're looking for. For example, you might want to use the ncclient library directly. You can see samples of how to use ncclient here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://github.com/CiscoDevNet/ncc" rel="nofollow" target="_blank"&gt;https://github.com/CiscoDevNet/ncc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see sample filters to use with the script ncc.py at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ncc/tree/master/snippets/filters" title="https://github.com/CiscoDevNet/ncc/tree/master/snippets/filters"&gt;https://github.com/CiscoDevNet/ncc/tree/master/snippets/filters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are just standard netconf subtree filters that can be used with get/get_config from ncclient, as shown in the script ncc.py.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Einar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:33:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597549#M2720</guid>
      <dc:creator>einarnn</dc:creator>
      <dc:date>2017-07-14T14:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597550#M2721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.cisco.com//u1/119431"&gt;einarnn&lt;/A&gt; and &lt;A href="https://community.cisco.com//u1/294515"&gt;saalvare&lt;/A&gt; for your patience, responses and help!&amp;nbsp;&amp;nbsp; Einar, I will take a look at that.&amp;nbsp; I'm not seeing what I need in the ydk, but I know what I'm looking for has to be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I figured there has to be a way to be able to print the entire interface is because every time I run one of the ifmgr tests, I see the whole interface print as standard out from some internal processing.&amp;nbsp; I was guessing somewhere embedded in the, like, crud.read processing, it is outputting all of an interface' XML, it's pulling the whole thing... because I'm seeing it flash on my screen!&amp;nbsp; It would be nice if that raw XML was a part of the structure (or dictionary? class?&amp;nbsp; Sorry, I'm not a python expert.) that is returned from that crud.read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;James &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:55:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597550#M2721</guid>
      <dc:creator>benicetomeok</dc:creator>
      <dc:date>2017-07-14T14:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597551#M2722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you can get the interface by using the following or similar XML via netconf session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;get-config&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;source&amp;gt;&amp;lt;running/&amp;gt;&amp;lt;/source&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;&amp;lt;filter&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt;"&gt;&amp;lt;interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt;"&gt;&amp;lt;interface&amp;gt;&amp;lt;/interface&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/interfaces&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/filter&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/get-config&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/rpc&amp;gt;]]&amp;gt;]]&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should give you an xml configuration which contains information about interfaces.&lt;/P&gt;&lt;P&gt;If you are using ncclient on python, you can make a variable containing the filter part of the xml (highlighted in bold above) and use it on ncclient&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example (assuming my_nc as ncclient instance that is already connected to your router)&lt;/P&gt;&lt;P&gt;my_filter=&lt;STRONG&gt; &lt;/STRONG&gt;"""&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;filter&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;interface&amp;gt;&amp;lt;/interface&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/interfaces&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/filter&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;result = my_nc.get_config("running", my_filter)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;You can then parse result to get the info that you want. Python has a lot of module dealing with xml (minidom, elementree, xmltodict...)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;For example, this one will give you an indented XML view of the result&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; report = xml.dom.minidom.parseString(result.xml)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(report.toprettyxml())&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 13:47:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597551#M2722</guid>
      <dc:creator>Vince</dc:creator>
      <dc:date>2017-07-15T13:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597552#M2723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hi Vincent. Do you happen to have any current working example using ncclient towards XR device with the filter like in your post? I am not able to find anything working on Internet. And the examples/documentation on the git/ncclient is not quite help for me &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; I would appreciate anything as I am just getting just errors and errors.... Started being little bit frustrated &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 07:58:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597552#M2723</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-07-28T07:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597553#M2724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmmmm I found Einars baby the "ncc" (very valuable resource for ncclient):&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ncc/tree/master/notebooks" style="font-size: 10pt;" title="https://github.com/CiscoDevNet/ncc/tree/master/notebooks"&gt;https://github.com/CiscoDevNet/ncc/tree/master/notebooks&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 10:03:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597553#M2724</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-07-28T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597554#M2725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Anton,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I do not have IOS-XR. I uploaded my sample script at &lt;A href="https://github.com/snakeskinsalamander/Netconf-example"&gt;https://github.com/snakeskinsalamander/Netconf-example&lt;/A&gt; just in case. It is using an always-on XE on devnet sandbox though. I think it would work, or at least it would be the same concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 13:59:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597554#M2725</guid>
      <dc:creator>Vince</dc:creator>
      <dc:date>2017-07-28T13:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597555#M2726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Anton... you can play around with the details of the 'omg' variable used by the filter... but this is as simple as I could make a call to get interface information into an XML output using Python and the ncclient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#!/usr/bin/env python&lt;/P&gt;&lt;P&gt;import sys&lt;/P&gt;&lt;P&gt;from ncclient import manager&lt;/P&gt;&lt;P&gt;from lxml import etree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if __name__ == '__main__':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; omg = '&amp;lt;interface-configurations xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg" rel="nofollow" target="_blank"&gt;http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; m =&amp;nbsp; manager.connect(host="my.router.com",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; port="830",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username="me",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password="password",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device_params={'name':"csr"})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = m.get_config("running",'&amp;lt;filter&amp;gt;'+omg+'&amp;lt;/filter&amp;gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print etree.tostring(etree.fromstring(data.xml), pretty_print=True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took this right from the #10 example above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 14:08:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597555#M2726</guid>
      <dc:creator>benicetomeok</dc:creator>
      <dc:date>2017-07-28T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597556#M2727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys thanks a lot for your reply. Sharing with you bgp oper filter which is working for me. It takes just VRF names, networks and route targets from bgp instance. I am using it as "subtree" filter with single tag when I am interesting to get some information from device&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Do you happen to know if there is another syntax/functionality for the filtering? I know there is also xpath possibility but seems IOXR doesnt support xpath capability on 6.1.2 version &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter = '''&amp;lt;bgp xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-bgp-oper" rel="nofollow" target="_blank"&gt;http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-bgp-oper&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;instances&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;instance&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;instance-name&amp;gt;default&amp;lt;/instance-name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;instance-active&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;vrfs&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;vrf&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;vrf-name/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;afs&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;af&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;af-name&amp;gt;ipv4-unicast&amp;lt;/af-name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;networks&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;network&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;network/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;local-process-instance-path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes-after-policy-in&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;common-attributes&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extended-community/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/common-attributes&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/attributes-after-policy-in&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/local-process-instance-path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/network&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/networks&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/af&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/afs&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/vrf&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/vrfs&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/instance-active&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/instance&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/instances&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bgp&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '''&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 12:58:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597556#M2727</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-07-31T12:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the interface configuration</title>
      <link>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597557#M2728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anton,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When dealing with netconf/yang on IOS-XR, subtree filtering is the only query syntax supported. No timelines for support of XPath filtering at this time, and no other standardised alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Einar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 13:04:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-to-retrieve-the-interface-configuration/m-p/3597557#M2728</guid>
      <dc:creator>einarnn</dc:creator>
      <dc:date>2017-07-31T13:04:55Z</dc:date>
    </item>
  </channel>
</rss>

