<?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 How to to request Action with parameters by Python in an NSO action in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3691972#M2499</link>
    <description>&lt;P&gt;We want to call an action with parameters by Python in an NSO action, There is an maapi.requestAction(parms,"url") in Java, like : &lt;SPAN class="fontstyle0"&gt;maapi.requestAction(params, "/ncs:devices/ncs:partial-sync-from")&lt;/SPAN&gt;&lt;BR /&gt;Do we have an&amp;nbsp;similarity method in Python? It's would be really appreciate for your idea.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 08:06:46 GMT</pubDate>
    <dc:creator>yongz2</dc:creator>
    <dc:date>2018-08-21T08:06:46Z</dc:date>
    <item>
      <title>How to to request Action with parameters by Python in an NSO action</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3691972#M2499</link>
      <description>&lt;P&gt;We want to call an action with parameters by Python in an NSO action, There is an maapi.requestAction(parms,"url") in Java, like : &lt;SPAN class="fontstyle0"&gt;maapi.requestAction(params, "/ncs:devices/ncs:partial-sync-from")&lt;/SPAN&gt;&lt;BR /&gt;Do we have an&amp;nbsp;similarity method in Python? It's would be really appreciate for your idea.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 08:06:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3691972#M2499</guid>
      <dc:creator>yongz2</dc:creator>
      <dc:date>2018-08-21T08:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to to request Action with parameters by Python in an NSO action</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3691978#M2500</link>
      <description>&lt;P&gt;There are two options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. You have a&amp;nbsp;&lt;SPAN class="s1"&gt;_ncs.maapi.request_action call, there is an example in&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;./service-provider/mpls-vpn-layered-service-architecture/create-vpn.py&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;2. With maagic you can call actions directly on on the objects, if you have a device node dev you can simply do:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;r = dev.sync_from()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 08:14:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3691978#M2500</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2018-08-21T08:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to to request Action with parameters by Python in an NSO action</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3691994#M2501</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hi&amp;nbsp;&lt;A id="link_15" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.cisco.com/t5/user/viewprofilepage/user-id/549262" target="_self"&gt;vleijon&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;It's worked, thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 08:37:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3691994#M2501</guid>
      <dc:creator>yongz2</dc:creator>
      <dc:date>2018-08-21T08:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to to request Action with parameters by Python in an NSO action</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3818675#M3500</link>
      <description>Hi, I was looking for syntax for partial sync_from in maagic, couldn't figure out so far. Does anyone have it handy?&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 13 Mar 2019 09:44:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/how-to-to-request-action-with-parameters-by-python-in-an-nso/m-p/3818675#M3500</guid>
      <dc:creator>uwankhed</dc:creator>
      <dc:date>2019-03-13T09:44:57Z</dc:date>
    </item>
  </channel>
</rss>

