<?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: [Best Practices] Making CFS/RFS package(Layer Service Architecture) in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/3901856#M4133</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;first lsa option is basically a CFS package template. This is also where you will place your dispatch logic ( basically some sort of mapping between device names and RFN names so that CFS knows where to send the service).&lt;/P&gt;&lt;P&gt;lsa-upper is the ned that your colleague told you about.&lt;/P&gt;&lt;P&gt;lsa-lower is basically a RFS package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These commands basically just generate tweaked package skeletons for your standard netconf ned and service packages to fit lsa idea as far as I understand. That doesn't mean you necessary have to use them if you want to do LSA.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2019 07:30:36 GMT</pubDate>
    <dc:creator>uavsec001</dc:creator>
    <dc:date>2019-08-02T07:30:36Z</dc:date>
    <item>
      <title>[Best Practices] Making CFS/RFS package(Layer Service Architecture)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/3901424#M4129</link>
      <description>&lt;P&gt;Hello Cisco Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm searching a solution to deploy a NSO service in CFS/RFS mode. I already did a RFS service that manage my equipment like i want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For creating CFS, here is the solution provided by a colleague :&lt;/P&gt;&lt;P&gt;- Create RFS NED by the command ncs-make-package --no-netsim --netconf-net&amp;nbsp; &amp;lt;myPackage&amp;gt;/src/yang &amp;lt;rfs-ned-package name&amp;gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Create a new service for upper-nso with option "service-skeleton python-and-template' that will manage our rfs-service using RFS NED that we created&lt;/P&gt;&lt;P&gt;- Copy RFS service YANG file in our newly created service, and convert leafref type in string.&lt;/P&gt;&lt;P&gt;- Manage XML template in order to configure RFS Service in lower-nso by just copying all the variable from CFS to RFS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example : (vars in red below)&lt;/P&gt;&lt;PRE&gt;&amp;lt;config-template xmlns="http://tail-f.com/ns/config/1.0"&amp;gt;
  &amp;lt;devices xmlns="http://tail-f.com/ns/ncs"&amp;gt;
    &amp;lt;device&amp;gt;
      &amp;lt;name&amp;gt;{$RFSNODE}&amp;lt;/name&amp;gt;
      &amp;lt;config&amp;gt;
       &amp;lt;myrfsservice&amp;gt;
         &amp;lt;ipAddress&amp;gt;&lt;FONT color="#FF0000"&gt;{/ipAddress}&lt;/FONT&gt;&amp;lt;/ipAddress&amp;gt;
         &amp;lt;mask&amp;gt;&lt;FONT color="#FF0000"&gt;{/mask}&lt;/FONT&gt;&amp;lt;/mask&amp;gt;
          ....
        &amp;lt;/myrfsservice&amp;gt;
      &amp;lt;/config&amp;gt;
    &amp;lt;/device&amp;gt;
  &amp;lt;/devices&amp;gt;
&amp;lt;/config-template&amp;gt;&lt;/PRE&gt;&lt;P&gt;I have no problem with this solution, cause it works well when the configuration is OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I 'm just a bit curious cause i saw an option &lt;STRONG&gt;--lsa&lt;/STRONG&gt; by typing "ncs-make-package --help" command&amp;nbsp; (in red below) that could make apparently LSA packages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;nso@nso:~$ ncs-make-package --help 
Usage: ncs-make-package [options] package-name

  ncs-make-package --netconf-ned DIR package-name
  ncs-make-package --snmp-ned DIR package-name

[...]

  LSA PACKAGES

&lt;FONT color="#FF0000"&gt;  ncs-make-package --lsa PATH base-name
  ncs-make-package --lsa-upper PATH base-name
  ncs-make-package --lsa-lower PATH TYPE base-name&lt;/FONT&gt;

    Where PATH is the path of a YANG file.

    For LSA packages the resulting name of the package will be:
      --lsa:       &amp;lt;base-name&amp;gt;
      --lsa-upper: lsa-upper-&amp;lt;base-name&amp;gt;
      --lsa-lower: lsa-lower-&amp;lt;base-name&amp;gt;

    For LSA packages the name used in the YANG data model will be:
      --lsa:        &amp;lt;base-name&amp;gt;
      --lsa-upper:  lsa-&amp;lt;base-name&amp;gt;
      --lsa-lower:  lsa-&amp;lt;base-name&amp;gt;

See manpage for ncs-make-package(1) for more info.&lt;/PRE&gt;&lt;P&gt;What's this option stand for ? Could it be useful for making CFS/RFS services ? Is anyone have a case example of using this command ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 12:29:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/3901424#M4129</guid>
      <dc:creator>tony.frbezar</dc:creator>
      <dc:date>2019-08-01T12:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: [Best Practices] Making CFS/RFS package(Layer Service Architecture)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/3901856#M4133</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;first lsa option is basically a CFS package template. This is also where you will place your dispatch logic ( basically some sort of mapping between device names and RFN names so that CFS knows where to send the service).&lt;/P&gt;&lt;P&gt;lsa-upper is the ned that your colleague told you about.&lt;/P&gt;&lt;P&gt;lsa-lower is basically a RFS package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These commands basically just generate tweaked package skeletons for your standard netconf ned and service packages to fit lsa idea as far as I understand. That doesn't mean you necessary have to use them if you want to do LSA.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 07:30:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/3901856#M4133</guid>
      <dc:creator>uavsec001</dc:creator>
      <dc:date>2019-08-02T07:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: [Best Practices] Making CFS/RFS package(Layer Service Architecture)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/3901866#M4134</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;the lsa commands are just slightly tweaked netconf-ned and service-skeleton commands to serve the lsa idea.&lt;/P&gt;&lt;P&gt;lsa - your CFS &amp;lt;- this is where you will also have to place your dispatch logic in&lt;/P&gt;&lt;P&gt;lsa-upper - NED your colegue told you about&lt;/P&gt;&lt;P&gt;lsa-lower - your RFS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't necessarily need to use these commands... you will get by with the old netconf-ned, service-skeleton commands as well, however they are there so it is dead obvious what you can pick when doing LSA.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 07:49:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/3901866#M4134</guid>
      <dc:creator>uavsec001</dc:creator>
      <dc:date>2019-08-02T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: [Best Practices] Making CFS/RFS package(Layer Service Architecture</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/4778920#M7694</link>
      <description>&lt;P&gt;what package are u referring here:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&amp;lt;myPackage&amp;gt;/src/yang&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 04:52:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/best-practices-making-cfs-rfs-package-layer-service-architecture/m-p/4778920#M7694</guid>
      <dc:creator>rohitspostowl</dc:creator>
      <dc:date>2023-02-21T04:52:24Z</dc:date>
    </item>
  </channel>
</rss>

