<?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 Sample apps for encoding XE OSPF config in Tools</title>
    <link>https://community.cisco.com/t5/tools/sample-apps-for-encoding-xe-ospf-config/m-p/3827699#M2232</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ydk-white-256.png" style="width: 44px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/32982i3B4CE5BD6C3B658A/image-dimensions/44x44?v=v2" width="44" height="44" role="button" title="ydk-white-256.png" alt="ydk-white-256.png" /&gt;&lt;/span&gt;It's been awhile since we've added some sample apps for Cisco IOS XE configuration.&amp;nbsp; Here are some examples of encoding OSPF configuration in XML using the Codec service.&lt;/P&gt;
&lt;DIV class="commit-desc"&gt;
&lt;PRE&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/cd-encode-xe-native-router-ospf-20-ydk.py" target="_self"&gt;cd-encode-xe-native-router-ospf-20-ydk.py&lt;/A&gt; - single area ipv4 router
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/cd-encode-xe-native-router-ospf-30-ydk.py" target="_self"&gt;cd-encode-xe-native-router-ospf-30-ydk.py&lt;/A&gt; - ipv4 ABR
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/cd-encode-xe-native-router-ospf-32-ydk.py" target="_self"&gt;cd-encode-xe-native-router-ospf-32-ydk.py&lt;/A&gt; - ipv4 ABR with stub area
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/cd-encode-xe-native-router-ospf-34-ydk.py" target="_self"&gt;cd-encode-xe-native-router-ospf-34-ydk.py&lt;/A&gt; - ipv4 ABR with totally stub area&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;Remember that the same Codec service can be used to encode data in JSON &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can compare these apps with the CRUD/NETCONF apps that use the same configuration data.&amp;nbsp; See:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf" target="_blank"&gt;https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 02:22:15 GMT</pubDate>
    <dc:creator>saalvare</dc:creator>
    <dc:date>2019-03-28T02:22:15Z</dc:date>
    <item>
      <title>Sample apps for encoding XE OSPF config</title>
      <link>https://community.cisco.com/t5/tools/sample-apps-for-encoding-xe-ospf-config/m-p/3827699#M2232</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ydk-white-256.png" style="width: 44px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/32982i3B4CE5BD6C3B658A/image-dimensions/44x44?v=v2" width="44" height="44" role="button" title="ydk-white-256.png" alt="ydk-white-256.png" /&gt;&lt;/span&gt;It's been awhile since we've added some sample apps for Cisco IOS XE configuration.&amp;nbsp; Here are some examples of encoding OSPF configuration in XML using the Codec service.&lt;/P&gt;
&lt;DIV class="commit-desc"&gt;
&lt;PRE&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/cd-encode-xe-native-router-ospf-20-ydk.py" target="_self"&gt;cd-encode-xe-native-router-ospf-20-ydk.py&lt;/A&gt; - single area ipv4 router
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/cd-encode-xe-native-router-ospf-30-ydk.py" target="_self"&gt;cd-encode-xe-native-router-ospf-30-ydk.py&lt;/A&gt; - ipv4 ABR
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/cd-encode-xe-native-router-ospf-32-ydk.py" target="_self"&gt;cd-encode-xe-native-router-ospf-32-ydk.py&lt;/A&gt; - ipv4 ABR with stub area
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf/cd-encode-xe-native-router-ospf-34-ydk.py" target="_self"&gt;cd-encode-xe-native-router-ospf-34-ydk.py&lt;/A&gt; - ipv4 ABR with totally stub area&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;Remember that the same Codec service can be used to encode data in JSON &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can compare these apps with the CRUD/NETCONF apps that use the same configuration data.&amp;nbsp; See:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf" target="_blank"&gt;https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native/router/ospf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 02:22:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/sample-apps-for-encoding-xe-ospf-config/m-p/3827699#M2232</guid>
      <dc:creator>saalvare</dc:creator>
      <dc:date>2019-03-28T02:22:15Z</dc:date>
    </item>
  </channel>
</rss>

