<?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: Examples of how to use customer-service option in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800902#M3288</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I've been looking for some way to link a customer to an instance of a service - so when the Customer is deleted&amp;nbsp;all linked services are likewise. I've been looking at this command - show below - in the NCS CLI, but haven't been able to find any documentation on how to use it and if it achieves what I'm trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ncs(config)# services customer-service [Customer facing service]&amp;nbsp;customer&amp;nbsp;[customer id]&amp;nbsp;service [The resource facing service]&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Johnny&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 12:58:49 GMT</pubDate>
    <dc:creator>Johnny Karms Pedersen</dc:creator>
    <dc:date>2019-02-13T12:58:49Z</dc:date>
    <item>
      <title>Examples of how to use customer-service option</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800852#M3286</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been trying to find documentation for 'customer-service' option that links services to customers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any pointer to docs, use-case examples or anything usable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Johnny Karms Pedersen&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 11:55:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800852#M3286</guid>
      <dc:creator>Johnny Karms Pedersen</dc:creator>
      <dc:date>2019-02-13T11:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of how to use customer-service option</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800853#M3287</link>
      <description>&lt;P&gt;Hi Johnny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am slightly uncertain what it is you are looking for. NSO doesn't have an explicit customer concept with dedicated functionality - but it is fairly straight forward to just implement a customer list.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 11:57:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800853#M3287</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2019-02-13T11:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of how to use customer-service option</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800902#M3288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I've been looking for some way to link a customer to an instance of a service - so when the Customer is deleted&amp;nbsp;all linked services are likewise. I've been looking at this command - show below - in the NCS CLI, but haven't been able to find any documentation on how to use it and if it achieves what I'm trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ncs(config)# services customer-service [Customer facing service]&amp;nbsp;customer&amp;nbsp;[customer id]&amp;nbsp;service [The resource facing service]&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Johnny&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 12:58:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800902#M3288</guid>
      <dc:creator>Johnny Karms Pedersen</dc:creator>
      <dc:date>2019-02-13T12:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of how to use customer-service option</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800917#M3289</link>
      <description>&lt;P&gt;So, that model is decribed in tailf-ncs-services.yang that&amp;nbsp;tailf-ncs-customers.yang you can find in your distribution. It is a way of linking customers to resource facing services and is based on a TMForum standard. It is essentially a way of organizing your data in a structured way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example based on&amp;nbsp;&lt;SPAN class="s1"&gt;17-mpls-vpn-python. I have a single l3vpn instance named volvo, I can then do:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;admin@ncs% set customers customer volvo status active &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;[ok][2019-02-13 14:18:53]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;admin@ncs% set services customer-service volvovpn customer volvo reference "Contract ABC123" service /vpn/l3vpn[name=volvo]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;[ok][2019-02-13 14:20:23]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;You can then get a summary of the services the customer has:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;admin@ncs&amp;gt; show customers &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;CUSTOMER &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;ID &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SERVICE&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;---------------------&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;volvo&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;[ volvovpn ]&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;[ok][2019-02-13 14:22:59]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 13:23:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/3800917#M3289</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2019-02-13T13:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of how to use customer-service option</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/4083145#M5222</link>
      <description>&lt;P&gt;I've got an issues with this, may You give me some hint? There are existing "vpn-def" and "l3-vpn" service instances called "GRX_TI" and "GRX_TI-NNI-A" appropriately. I've created - according to Your example - customer "Telekom_Italia" and linked above services to this customer:&lt;/P&gt;&lt;PRE&gt;set customers customer &lt;FONT color="#3366FF"&gt;Telekom_Italia&lt;/FONT&gt; status active&lt;BR /&gt;set services customer-service &lt;FONT color="#FF9900"&gt;GRX-TI&lt;/FONT&gt; customer &lt;FONT color="#3366FF"&gt;Telekom_Italia&lt;/FONT&gt; reference "GRX services TI" service /services/&lt;FONT color="#808080"&gt;&lt;FONT color="#339966"&gt;vpn-def&lt;/FONT&gt;[name=&lt;FONT color="#339966"&gt;GRX_TI&lt;/FONT&gt;]&lt;/FONT&gt;&lt;BR /&gt;set services customer-service &lt;FONT color="#FF9900"&gt;GRX-TI&lt;/FONT&gt; customer &lt;FONT color="#3366FF"&gt;Telekom_Italia&lt;/FONT&gt; reference "GRX services TI" service /services/&lt;FONT color="#339966"&gt;l3-vpn&lt;/FONT&gt;[name=&lt;FONT color="#339966"&gt;GRX_TI-NNI-A&lt;/FONT&gt;]&lt;/PRE&gt;&lt;PRE&gt;darek@ncs% commit dry-run 
cli {
    local-node {
        data  services {
             +    customer-service &lt;FONT color="#FF9900"&gt;GRX-TI&lt;/FONT&gt; {
             +        reference "GRX services TI";
             +        customer &lt;FONT color="#3366FF"&gt;Telekom_Italia&lt;/FONT&gt;;
             +        service /services/&lt;FONT color="#339966"&gt;vpn-def:vpn-def&lt;/FONT&gt;[name='&lt;FONT color="#339966"&gt;GRX_TI&lt;/FONT&gt;'];
             +        service /services/&lt;FONT color="#339966"&gt;l3-vpn:l3-vpn&lt;/FONT&gt;[name='&lt;FONT color="#339966"&gt;GRX_TI-NNI-A&lt;/FONT&gt;'];
             +    }
              }
              customers {
             +    customer &lt;FONT color="#3366FF"&gt;Telekom_Italia&lt;/FONT&gt; {
             +        status active;
             +    }
              }
    }
}&lt;/PRE&gt;&lt;P&gt;But then after commit above CFS is not linked to this customer...&lt;/P&gt;&lt;PRE&gt;darek@ncs% run show customers 
                CUSTOMER  
ID              SERVICE   
--------------------------
&lt;FONT color="#3366FF"&gt;Telekom_Italia&lt;/FONT&gt;  -         &lt;/PRE&gt;&lt;P&gt;Where did I make mistake?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 10:23:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/examples-of-how-to-use-customer-service-option/m-p/4083145#M5222</guid>
      <dc:creator>mastedarq</dc:creator>
      <dc:date>2020-05-11T10:23:59Z</dc:date>
    </item>
  </channel>
</rss>

