<?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 obtain route tags via Netconf/YANG from IOS-XE box? in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766676#M950</link>
    <description>&lt;P&gt;Thank you for your answers. I appreciate that I could run this through another live and experienced person and I am hopefully not overlooking a simple solution. I will go with CLI if someone else doesn't find a solution. But this is not preferrable because I am planning - and I will try hard - to do the actual configuration over Netconf, just the fact collection part will include CLI...&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 11:37:48 GMT</pubDate>
    <dc:creator>Stefan Simko CETIN</dc:creator>
    <dc:date>2023-02-01T11:37:48Z</dc:date>
    <item>
      <title>how to obtain route tags via Netconf/YANG from IOS-XE box?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4765944#M945</link>
      <description>&lt;P&gt;Hi, I have an ASR903 with IOS XE 17.06.03.&lt;/P&gt;&lt;P&gt;I am trying to find the nearest router that is advertising its loopback to ISIS with a specific route tag.&lt;/P&gt;&lt;P&gt;So far I can read the route-table via the ietf-routing module, but the output does not include tags. The ISIS libraries do not include routes other than configuration of static routes and connected interfaces, or I don't see that.&lt;/P&gt;&lt;P&gt;Will someone give me a hand? Thanks!&lt;/P&gt;&lt;P&gt;edit - CLI equivalent of what I am looking for: sh ip route tag 490001&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:36:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4765944#M945</guid>
      <dc:creator>Stefan Simko CETIN</dc:creator>
      <dc:date>2023-02-01T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to obtain route tags via Netconf/YANG from IOS-XE box?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766069#M946</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;This should be possible via native XE module.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tag.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/175362i7D8485BBB95A288F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tag.png" alt="tag.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Query prefix by tag (1984):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;with manager.connect(host=host, username=username, password=password, hostkey_verify=False) as m:
    reply = m.get(filter=("xpath", "/native/ip/route/ip-route-interface-forwarding-list/fwd-list[tag=1984]"))
    pp(reply.data_xml)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;
  &amp;lt;native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native"&amp;gt;
    &amp;lt;ip&amp;gt;
      &amp;lt;route&amp;gt;
        &amp;lt;ip-route-interface-forwarding-list&amp;gt;
          &amp;lt;prefix&amp;gt;9.9.9.9&amp;lt;/prefix&amp;gt;
          &amp;lt;mask&amp;gt;255.255.255.255&amp;lt;/mask&amp;gt;
          &amp;lt;fwd-list&amp;gt;
            &amp;lt;fwd&amp;gt;10.90.255.1&amp;lt;/fwd&amp;gt;
            &amp;lt;tag&amp;gt;1984&amp;lt;/tag&amp;gt;
          &amp;lt;/fwd-list&amp;gt;
        &amp;lt;/ip-route-interface-forwarding-list&amp;gt;
      &amp;lt;/route&amp;gt;
    &amp;lt;/ip&amp;gt;
  &amp;lt;/native&amp;gt;
&amp;lt;/data&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not 100% sure, if it's exactly what your looking for, but I hope it helps as a starting point.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 17:58:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766069#M946</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-01-31T17:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to obtain route tags via Netconf/YANG from IOS-XE box?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766528#M947</link>
      <description>&lt;P&gt;Marcel, thanks a lot.&lt;/P&gt;&lt;P&gt;I should have maybe written clearer that I am looking for the state information, find a route from current RIB. What you wrote me is from the configuration of the box.&lt;/P&gt;&lt;P&gt;CLI equivalent to my request is: sh ip route tag 490001&lt;/P&gt;&lt;P&gt;Anyway, since we're at the "native" library, would you say it is a good way of configuring things? That I create one request to configure many things because thanks to this native library, all things have a common root? Is there a best practice here for IOS-XE?&lt;/P&gt;&lt;P&gt;E.g. for IOS-XR they say that there are old libraries and new libraries marked as "-um-" which stands for unified data models...&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:37:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766528#M947</guid>
      <dc:creator>Stefan Simko CETIN</dc:creator>
      <dc:date>2023-02-01T08:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to obtain route tags via Netconf/YANG from IOS-XE box?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766559#M948</link>
      <description>&lt;P&gt;Sorry, that was kind of a hasty answer -&amp;nbsp;it would actually be clear what you are looking for. I checked again the modules and didn't find a match for operstate route tag info.&lt;/P&gt;
&lt;P&gt;Regarding the "native" library: In a perfect world we would use only IETF and openconfig modules, this would result in vendor neutral code - however in real-life it's often easier to use vendor modules. I go with a "whatever it takes" approach and use a mix of the native, IETF, openconfig modules depending on the use/business case - however, that's my personal opinion and no official best practices recommendation.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 09:27:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766559#M948</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-02-01T09:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to obtain route tags via Netconf/YANG from IOS-XE box?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766573#M949</link>
      <description>&lt;P&gt;Follow-up: There is a draft (proposed standard) published regarding this topic:&amp;nbsp;&lt;A href="https://datatracker.ietf.org/doc/draft-ietf-rtgwg-yang-rib-extend/" target="_blank" rel="noopener"&gt;https://datatracker.ietf.org/doc/draft-ietf-rtgwg-yang-rib-extend/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 10:02:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766573#M949</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-02-01T10:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to obtain route tags via Netconf/YANG from IOS-XE box?</title>
      <link>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766676#M950</link>
      <description>&lt;P&gt;Thank you for your answers. I appreciate that I could run this through another live and experienced person and I am hopefully not overlooking a simple solution. I will go with CLI if someone else doesn't find a solution. But this is not preferrable because I am planning - and I will try hard - to do the actual configuration over Netconf, just the fact collection part will include CLI...&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:37:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/how-to-obtain-route-tags-via-netconf-yang-from-ios-xe-box/m-p/4766676#M950</guid>
      <dc:creator>Stefan Simko CETIN</dc:creator>
      <dc:date>2023-02-01T11:37:48Z</dc:date>
    </item>
  </channel>
</rss>

