<?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: Flags with resource-manager in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/flags-with-resource-manager/m-p/3674342#M2416</link>
    <description>&lt;P&gt;You're right, the resource manager reactive-re-deploys your service. *edit* - actually the reactive-re-deploy should honor the flags you passed. Bug?&lt;BR /&gt;&lt;BR /&gt;If this is a behavior you always want on this device, is it possible to permanently enable them on the device?&lt;BR /&gt;&lt;BR /&gt;Second option, can you pre-create the allocation, e.g. by using an action? That way, then the service runs, the allocated value(s) is available, and the flags should be honored. &lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 14:08:18 GMT</pubDate>
    <dc:creator>frjansso</dc:creator>
    <dc:date>2018-07-25T14:08:18Z</dc:date>
    <item>
      <title>Flags with resource-manager</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/flags-with-resource-manager/m-p/3674318#M2415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a package, called 'service1', in NSOv4.6 which is using resource-manager v3.3.0 to allocate id. In service1, my main.py looks like :&lt;/P&gt;
&lt;PRE&gt;..some code..&lt;BR /&gt;# Create an allocation request.
# After calling this function, you have to call response_ready
# to check the availability of the allocated ID.
id_allocator.id_request(service=service,
                        svc_xpath="/service1[myname='{}']".format(service.myname),
                        username=tctx.username,
                        pool_name='my_index',
                        allocation_name=service.myname,
                        sync=False,
                        requested_id=-1
                        )&lt;BR /&gt;
# Returns the allocated ID or None
my_index = id_allocator.id_read(username=tctx.username,
                                root=root,
                                pool_name='my_index',
                                allocation_name=service.myname
                                )

        if not my_index:
            self.log.info('Index not YET allocated')
            return&lt;BR /&gt;..some code..
&lt;/PRE&gt;
&lt;P&gt;Now I need to push my service using three flags : commit-queue async, no-out-of-sync-check and atomic false. Unfortunately, if I perform a commit with those flags (in cli), it doesn't work : my id is well allocated but my service (service1) is not pushed to my device. There is an heritage problem of flags I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how to handle this issue (if it is one, maybe it was done on purpose) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 13:47:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/flags-with-resource-manager/m-p/3674318#M2415</guid>
      <dc:creator>romain.guilloux</dc:creator>
      <dc:date>2018-07-25T13:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Flags with resource-manager</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/flags-with-resource-manager/m-p/3674342#M2416</link>
      <description>&lt;P&gt;You're right, the resource manager reactive-re-deploys your service. *edit* - actually the reactive-re-deploy should honor the flags you passed. Bug?&lt;BR /&gt;&lt;BR /&gt;If this is a behavior you always want on this device, is it possible to permanently enable them on the device?&lt;BR /&gt;&lt;BR /&gt;Second option, can you pre-create the allocation, e.g. by using an action? That way, then the service runs, the allocated value(s) is available, and the flags should be honored. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:08:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/flags-with-resource-manager/m-p/3674342#M2416</guid>
      <dc:creator>frjansso</dc:creator>
      <dc:date>2018-07-25T14:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Flags with resource-manager</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/flags-with-resource-manager/m-p/3675064#M2420</link>
      <description>&lt;P&gt;Actually I don't want to set global settings since I have other services that can be activated at the same time.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Your second idea seems good. I'll try it, do I need Pronghorn to manage my workflow like this ? &lt;/P&gt;
&lt;P&gt;1-input : myinput + myflags&lt;/P&gt;
&lt;P&gt;2-action to resource my id&lt;/P&gt;
&lt;P&gt;3-launch my service1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 07:12:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/flags-with-resource-manager/m-p/3675064#M2420</guid>
      <dc:creator>romain.guilloux</dc:creator>
      <dc:date>2018-07-26T07:12:21Z</dc:date>
    </item>
  </channel>
</rss>

