<?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 LLDP using OpenConfig in Tools</title>
    <link>https://community.cisco.com/t5/tools/sample-apps-for-encoding-lldp-using-openconfig/m-p/3867831#M2270</link>
    <description>&lt;P&gt;&lt;IMG style="display: block; margin-left: auto; margin-right: auto;" class="irc_mi" src="https://alln-extcloud-storage.cisco.com/ciscoblogs/ydk-logo-256.png" border="0" alt="Image result for ydk" width="115" height="69" data-iml="1559698409568" /&gt;&lt;/P&gt;
&lt;P&gt;Hello again,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have brought another set of sample apps for ydk-py.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This set of sample apps allow you to encode the LLDP configuration to XML.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-10-ydk.py" target="_self"&gt;cd-encode-oc-lldp-10-ydk.py&lt;/A&gt; - encode boilerplate
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-20-ydk.py" target="_self"&gt;cd-encode-oc-lldp-20-ydk.py&lt;/A&gt; - enable LLDP
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-22-ydk.py" target="_self"&gt;cd-encode-oc-lldp-22-ydk.py&lt;/A&gt; - enable LLDP with timer
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-24-ydk.py" target="_self"&gt;cd-encode-oc-lldp-24-ydk.py&lt;/A&gt; - enable LLDP with TLV adv&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also find the samples in the following folder of the github repository:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/codec/models/openconfig/openconfig-lldp" target="_self"&gt;https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/codec/models/openconfig/openconfig-lldp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this set of samples, you don't need to access to server to encode the configuration.&lt;/P&gt;
&lt;P&gt;Also, you can easily modify the code to encode the configuration in JSON by adjusting the parameter of the code like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;provider = CodecServiceProvider(type="xml")&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;provider = CodecServiceProvider(type="json")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give it a try &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 02:13:18 GMT</pubDate>
    <dc:creator>deom</dc:creator>
    <dc:date>2019-06-05T02:13:18Z</dc:date>
    <item>
      <title>Sample apps for encoding LLDP using OpenConfig</title>
      <link>https://community.cisco.com/t5/tools/sample-apps-for-encoding-lldp-using-openconfig/m-p/3867831#M2270</link>
      <description>&lt;P&gt;&lt;IMG style="display: block; margin-left: auto; margin-right: auto;" class="irc_mi" src="https://alln-extcloud-storage.cisco.com/ciscoblogs/ydk-logo-256.png" border="0" alt="Image result for ydk" width="115" height="69" data-iml="1559698409568" /&gt;&lt;/P&gt;
&lt;P&gt;Hello again,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have brought another set of sample apps for ydk-py.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This set of sample apps allow you to encode the LLDP configuration to XML.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-10-ydk.py" target="_self"&gt;cd-encode-oc-lldp-10-ydk.py&lt;/A&gt; - encode boilerplate
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-20-ydk.py" target="_self"&gt;cd-encode-oc-lldp-20-ydk.py&lt;/A&gt; - enable LLDP
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-22-ydk.py" target="_self"&gt;cd-encode-oc-lldp-22-ydk.py&lt;/A&gt; - enable LLDP with timer
&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/openconfig/openconfig-lldp/cd-encode-oc-lldp-24-ydk.py" target="_self"&gt;cd-encode-oc-lldp-24-ydk.py&lt;/A&gt; - enable LLDP with TLV adv&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also find the samples in the following folder of the github repository:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/codec/models/openconfig/openconfig-lldp" target="_self"&gt;https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/codec/models/openconfig/openconfig-lldp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this set of samples, you don't need to access to server to encode the configuration.&lt;/P&gt;
&lt;P&gt;Also, you can easily modify the code to encode the configuration in JSON by adjusting the parameter of the code like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;provider = CodecServiceProvider(type="xml")&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;PRE&gt;provider = CodecServiceProvider(type="json")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give it a try &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 02:13:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/sample-apps-for-encoding-lldp-using-openconfig/m-p/3867831#M2270</guid>
      <dc:creator>deom</dc:creator>
      <dc:date>2019-06-05T02:13:18Z</dc:date>
    </item>
  </channel>
</rss>

