<?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: Unexpected deletion in static route list in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457600#M6576</link>
    <description>&lt;P&gt;Yes you can do that, it doesn't necessarily have to be in post, you can also do in pre. Note that in the delete case (op == 2), pre and postmodification calls are called after the service is deleted, so you will have to extract the keys, device and vrf name frpm the kp parameter by string processing.&lt;/P&gt;
&lt;P&gt;The effect would be that when you remove this service it removes the routing instance, except if&amp;nbsp; there were manually added static routes underneath in which case only the static routes it created are removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other things you could do instead to achive different effects:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The service create has a pre-check that the vrf exists, so it will never create or remove routing instances, just static routes . This is useful if the service is a low level service and there is a higher level service that creates the routing instance. It also gives you a mechanism for removing the routing instance including all the manual static routes, which you probably need to do when you remove the higher level service.&lt;/LI&gt;
&lt;LI&gt;Have an action that&amp;nbsp; queries the static routes from the config, and updates the service definition so they are taken into the intent. This is useful if you want the manual routes to be discovered into the service and be managed form within NSO. You could trigger this with a kicker looking at&amp;nbsp; the static routes&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2021 14:44:08 GMT</pubDate>
    <dc:creator>snovello</dc:creator>
    <dc:date>2021-08-31T14:44:08Z</dc:date>
    <item>
      <title>Unexpected deletion in static route list</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4455834#M6561</link>
      <description>&lt;P&gt;Hi team!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing a service that add static routes in a routing instance on a Junos PE. The serivice has not exclusive access to the static route list: routes may be added manually before or after the service has run. In latter case if the service is run again (e.g. because other routes has to be added o just because of a re-deploy) the manually added routes are deleted.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried to cope with this unexpected deletion using the tag "merge" in the templates (though I understand it should be the default) with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can avoid that behaviour?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;----------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;cisco@ncs% show Prova03 r-xx22 VESTA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;staticRoute 199.1.1.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nextHop 99.1.1.1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;staticRoute 199.1.2.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nextHop 99.1.2.1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ok][2021-08-27 11:35:21]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[edit]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cisco@ncs% show devices device r-xx22 config junos:configuration routing-instances instance VESTA routing-options static | display service-meta-data&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/* Refcount: 1 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/* Backpointer: [ /Prova03:Prova03[Prova03:pe='r-xx22'][Prova03:vrf='VESTA'] ] */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;route 199.1.1.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;next-hop [ 99.1.1.1 ];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/* Refcount: 1 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/* Backpointer: [ /Prova03:Prova03[Prova03:pe='r-xx22'][Prova03:vrf='VESTA'] ] */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;route 199.1.2.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;next-hop [ 99.1.2.1 ];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;route 100.1.1.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;next-hop [ 8.1.1.1 ];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ok][2021-08-27 11:35:31]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[edit]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cisco@ncs% request Prova03 r-xx22 VESTA re-deploy dry-run &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cli {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;local-node {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;data devices {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;device r-xx22 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;config {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;junos:configuration {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;routing-instances {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;instance VESTA {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;routing-options {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;static {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;- route 100.1.1.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;- next-hop [ 8.1.1.1 ];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;- }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 10:12:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4455834#M6561</guid>
      <dc:creator>Fantolino</dc:creator>
      <dc:date>2021-08-27T10:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected deletion in static route list</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4455888#M6562</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest to try deleting tag "merge" (it's default as you said)&amp;nbsp; and adding tag "replace" only for route:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;lt;config-template&amp;nbsp; xmlns="&lt;A href="http://tail-f.com/ns/config/1.0" target="_blank" rel="noopener"&gt;http://tail-f.com/ns/config/1.0&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;devices xmlns="&lt;A href="http://tail-f.com/ns/ncs" target="_blank" rel="noopener"&gt;http://tail-f.com/ns/ncs&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;device &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;{$DEVICE}&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configuration&amp;nbsp; xmlns="&lt;A href="http://xml.juniper.net/xnm/1.1/xnm" target="_blank" rel="noopener"&gt;http://xml.juniper.net/xnm/1.1/xnm&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;routing-instances&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;instance&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;{$VRF}&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;routing-options &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;static&amp;nbsp; when="{$STATIC_NETWORK}"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;route tags="replace"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;{$STATIC_NETWORK}&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;next-hop when="{$NEXT_HOP_ADDRESS}"&amp;gt;{$NEXT_HOP_ADDRESS}&amp;lt;/next-hop&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/route&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/static&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/routing-options&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/instance&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/routing-instances&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/device&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/devices&amp;gt;&lt;BR /&gt;&amp;lt;/config-template&amp;gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 12:11:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4455888#M6562</guid>
      <dc:creator>GBiscardi</dc:creator>
      <dc:date>2021-08-27T12:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected deletion in static route list</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4455897#M6563</link>
      <description>&lt;P&gt;I tried with no success....&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 12:29:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4455897#M6563</guid>
      <dc:creator>Fantolino</dc:creator>
      <dc:date>2021-08-27T12:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected deletion in static route list</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4456786#M6565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Using the "commit dry-run | debut template" will help you checking NSO behavior.&lt;/P&gt;
&lt;P&gt;In your case, I believe the problem is that you are using "replace" to high in the tree and NSO will replace everything that is below that tag (therefore all routes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the "&lt;FONT&gt;route&lt;/FONT&gt;" is a list, I believe you need to be very specific that you want to replace that item next hop. I would try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&amp;lt;config-template&amp;nbsp; xmlns="&lt;A href="http://tail-f.com/ns/config/1.0" target="_blank" rel="noopener nofollow noreferrer"&gt;http://tail-f.com/ns/config/1.0&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;devices xmlns="&lt;A href="http://tail-f.com/ns/ncs" target="_blank" rel="noopener nofollow noreferrer"&gt;http://tail-f.com/ns/ncs&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;device &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;{$DEVICE}&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configuration&amp;nbsp; xmlns="&lt;A href="http://xml.juniper.net/xnm/1.1/xnm" target="_blank" rel="noopener nofollow noreferrer"&gt;http://xml.juniper.net/xnm/1.1/xnm&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;routing-instances&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;instance&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;{$VRF}&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;routing-options &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;static&amp;nbsp; when="{$STATIC_NETWORK}"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;route&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;{$STATIC_NETWORK}&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;next-hop tags="replace" when="{$NEXT_HOP_ADDRESS}"&amp;gt;{$NEXT_HOP_ADDRESS}&amp;lt;/next-hop&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/route&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/static&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/routing-options&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/instance&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/routing-instances&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/device&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/devices&amp;gt;&lt;BR /&gt;&amp;lt;/config-template&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 08:48:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4456786#M6565</guid>
      <dc:creator>rogaglia</dc:creator>
      <dc:date>2021-08-30T08:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected deletion in static route list</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457376#M6571</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I did as you suggested and modified the template. The problem persists: it seems that NSO thinks the existing configuration of routing-instance "ATOS" does not... exists!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;cisco@ncs&amp;gt; show configuration Prova03 r-xx22 ATOS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;staticRoute 199.1.1.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; nextHop 99.1.1.1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ok][2021-08-31 09:36:22]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cisco@ncs&amp;gt; show configuration devices device r-xx22 config junos:configuration routing-instances instance ATOS routing-options&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; static {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; route 199.1.1.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; next-hop [ 99.1.1.1 ];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; route 88.1.1.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; next-hop [ 8.8.8.1 ];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ok][2021-08-31 09:36:26]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cisco@ncs&amp;gt; request Prova03 r-xx22 ATOS re-deploy dry-run | debug template&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Evaluating "$DEVICE" (from file "Prova03-template.xml", line 4)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Context node: /Prova03[pe='r-xx22'][vrf='ATOS']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Result: "r-xx22"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Operation 'merge' on existing node: /devices/device[name='r-xx22'] (from file "Prova03-template.xml", line 4)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Evaluating "$VRF" (from file "Prova03-template.xml", line 9)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Context node: /Prova03[pe='r-xx22'][vrf='ATOS']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Result: "ATOS"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Operation 'merge' on &lt;FONT color="#FF0000"&gt;&lt;U&gt;non-existing&lt;/U&gt;&lt;/FONT&gt; node: /devices/device[name='r-xx22']/config/junos:configuration/routing-instances/instance[name='ATOS']&lt;/STRONG&gt; (from file "Prova03-template.xml", line 9)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Evaluating conditional expression "boolean($STATIC_NETWORK)" (from file "Prova03-template.xml", line 11)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Context node: /Prova03[pe='r-xx22'][vrf='ATOS']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Result: true - continuing&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Evaluating "$STATIC_NETWORK" (from file "Prova03-template.xml", line 13)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Context node: /Prova03[pe='r-xx22'][vrf='ATOS']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Result: "199.1.1.0/24"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Operation 'merge' on non-existing node: /devices/device[name='r-xx22']/config/junos:configuration/routing-instances/instance[name='ATOS']/routing-options/static/route[name='199.1.1.0/24'] (from file "Prova03-template.xml", line 13)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Evaluating conditional expression "boolean($NEXT_HOP_ADDRESS)" (from file "Prova03-template.xml", line 14)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Context node: /Prova03[pe='r-xx22'][vrf='ATOS']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Result: true - continuing&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Evaluating "$NEXT_HOP_ADDRESS" (from file "Prova03-template.xml", line 14)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Context node: /Prova03[pe='r-xx22'][vrf='ATOS']&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Result: "99.1.1.1"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Operation 'replace' on node: /devices/device[name='r-xx22']/config/junos:configuration/routing-instances/instance[name='ATOS']/routing-options/static/route[name='199.1.1.0/24']/next-hop[.='99.1.1.1'] (from file "Prova03-template.xml", line 14)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cli {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; local-node {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data devices {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; device r-xx22 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; config {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; junos:configuration {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; routing-instances {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; instance ATOS {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; routing-options {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; route 88.1.1.0/24 {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; next-hop [ 8.8.8.1 ];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:55:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457376#M6571</guid>
      <dc:creator>Fantolino</dc:creator>
      <dc:date>2021-08-31T07:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected deletion in static route list</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457426#M6574</link>
      <description>&lt;P&gt;The way that fastmap works is that in the local context of the transaction, it is doing a delete and recreate of the service.&lt;/P&gt;
&lt;P&gt;The delete is automatically handed by the reverse diff that is stored with the service. I believe the service has created the ATOS routing instance, so that the routing instance and everything underneath is removed by the reverse diff.&lt;/P&gt;
&lt;P&gt;Then your create code runs to recreate the service so at this point it is correct that it does not see the ATOS routing instance.&lt;/P&gt;
&lt;P&gt;That also explains why the static routes added under the routing instance manually are disappearing, the reverse diff just removes the whole routing instance but you code only recreates the static routes it knows about.&lt;/P&gt;
&lt;P&gt;For a quick test you could try to create an empty routing instance first, then create the service, then add some static routes then do a service redeploy.&amp;nbsp; During creation the only thing that was created are the static routes, because the routing instance was already created by hand, so the reverse diff only removes those routes, and not the manually created routes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how to fix your service, because I'm not sure of the exact effect you want to achieve, but one proposal might be to create the the routing ionstance in the pre-modification callback, outside of the scope of fastmap, that would behave very much like the test where you manually create it beforehand. However do note that if you change things that way, when you remove the service the routing instance is not removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 09:27:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457426#M6574</guid>
      <dc:creator>snovello</dc:creator>
      <dc:date>2021-08-31T09:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected deletion in static route list</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457527#M6575</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I understand the point and I verified as you suggested, that if I create the routing-instance before the creation of the service it is OK.&lt;/P&gt;&lt;P&gt;My purpose is to let operation people to modify/enhance the configuration of the VPN service e.g. for providing customized features.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your suggestion seems valuable: if in the premodification I just create the routing instance it should be not a problem on the route untill a new routing-instance with the same name is used.&lt;/P&gt;&lt;P&gt;Could be possible to delete the rouitng instance in&amp;nbsp; post-modification if I verify that non configuration is present?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 13:10:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457527#M6575</guid>
      <dc:creator>Fantolino</dc:creator>
      <dc:date>2021-08-31T13:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected deletion in static route list</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457600#M6576</link>
      <description>&lt;P&gt;Yes you can do that, it doesn't necessarily have to be in post, you can also do in pre. Note that in the delete case (op == 2), pre and postmodification calls are called after the service is deleted, so you will have to extract the keys, device and vrf name frpm the kp parameter by string processing.&lt;/P&gt;
&lt;P&gt;The effect would be that when you remove this service it removes the routing instance, except if&amp;nbsp; there were manually added static routes underneath in which case only the static routes it created are removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other things you could do instead to achive different effects:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The service create has a pre-check that the vrf exists, so it will never create or remove routing instances, just static routes . This is useful if the service is a low level service and there is a higher level service that creates the routing instance. It also gives you a mechanism for removing the routing instance including all the manual static routes, which you probably need to do when you remove the higher level service.&lt;/LI&gt;
&lt;LI&gt;Have an action that&amp;nbsp; queries the static routes from the config, and updates the service definition so they are taken into the intent. This is useful if you want the manual routes to be discovered into the service and be managed form within NSO. You could trigger this with a kicker looking at&amp;nbsp; the static routes&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 14:44:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/unexpected-deletion-in-static-route-list/m-p/4457600#M6576</guid>
      <dc:creator>snovello</dc:creator>
      <dc:date>2021-08-31T14:44:08Z</dc:date>
    </item>
  </channel>
</rss>

