<?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: python RPC call edit-config and get-config in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/python-rpc-call-edit-config-and-get-config/m-p/3816312#M3478</link>
    <description>&lt;P&gt;Actually, I figured out how to call an rpc. It could be like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;with&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ncs.maapi.single_write_trans(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'admin'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'python'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; trans:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; root&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;ncs.maagic.get_root(trans)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; device&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;root.devices.device[&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"test"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; out&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;device.rpc.(model_prefix)__rpc_(rpc_name).(rpc_name)()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; trans.apply()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, my only question now is reading operational data as well as modifying the configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Fri, 08 Mar 2019 14:10:11 GMT</pubDate>
    <dc:creator>mhemmatp</dc:creator>
    <dc:date>2019-03-08T14:10:11Z</dc:date>
    <item>
      <title>python RPC call edit-config and get-config</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/python-rpc-call-edit-config-and-get-config/m-p/3815604#M3472</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a remote netconf device which is connected to my NSO.&amp;nbsp;In documentation, I found some examples to read my configuration and to modify some leaves. But I am going to call some RPCs as well as calling edit-config and get operations. I am not sure how can I do it in python API in NSO.&amp;nbsp; Any help is very welcomed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 12:49:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/python-rpc-call-edit-config-and-get-config/m-p/3815604#M3472</guid>
      <dc:creator>mhemmatp</dc:creator>
      <dc:date>2019-03-07T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: python RPC call edit-config and get-config</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/python-rpc-call-edit-config-and-get-config/m-p/3816312#M3478</link>
      <description>&lt;P&gt;Actually, I figured out how to call an rpc. It could be like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;with&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ncs.maapi.single_write_trans(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'admin'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'python'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; trans:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; root&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;ncs.maagic.get_root(trans)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; device&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;root.devices.device[&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"test"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; out&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;device.rpc.(model_prefix)__rpc_(rpc_name).(rpc_name)()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; trans.apply()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, my only question now is reading operational data as well as modifying the configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Mar 2019 14:10:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/python-rpc-call-edit-config-and-get-config/m-p/3816312#M3478</guid>
      <dc:creator>mhemmatp</dc:creator>
      <dc:date>2019-03-08T14:10:11Z</dc:date>
    </item>
  </channel>
</rss>

