cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
32
Views
0
Helpful
5
Replies
Cisco Employee

create vm on esc through nso

 

Hi experts,

We have ESC and NSO running, as well as ESC NED build from YANG-files defined in ESC. However, we didn’t know how to use NSO to create a VM on ESC. It seems no CLI related in NSO to achieve this function.

 

Has anyone of you tested it and please give us some guidance.

 

Thanks

Fan

 

Everyone's tags (3)
5 REPLIES 5
Highlighted
Cisco Employee

Re: create vm on esc through nso

 

Hi Fan,

 

I have used NSO and ESC integration to deploy VMs on openstack.

 

There are CLIs on ESC device to do it, you need to add ESC device to NCS device database. Better to use the XML files to push configs to ESC. I have attached few XMLs, please have a look.

 

Thanks,

Shrishail

 

Highlighted
Cisco Employee

Re: create vm on esc through nso

 

Hi Shrishail

 

Thank you very much for your reply and that is really helpful to us. The XMLs seem used to initialize vm  and service config, do you know how to use NSO to config ESC to create a vm?

 

Thanks

Yuchen

Highlighted
Cisco Employee

Re: create vm on esc through nso

 

Hi,

 

 

To create the VM, you can either do:

 

        <esc_datamodel xmlns="http://www.cisco.com/esc/esc">

 

          <tenants>

 

            <tenant>

 

              <name>{$TENANT}</name>

 

              <services>

 

                <service_definition>

 

                  <vm_group>

 

                    <name>{$VNF_VMG_NAME}</name>

 

 

Or you can do:

 

     <esc_datamodel xmlns="http://www.cisco.com/esc/esc">

 

        <tenants tags="merge">

 

          <tenant>

 

            <name>{$TENANT}</name>

 

            <deployments>

 

              <deployment>

 

                <name>{$DEPNAME}</name>

 

                <vm_group>

 

                  <name>{$VM_GROUP}</name>

 

 

Or why not just use the “vm-manager” package. Please look at the following example for more details:

 

<your-nso-4.0-dir>/examples.ncs/service-provider/virtual-mpls-vpn

 

 

Thanks,

 

Bilal.

 

Highlighted
Cisco Employee

Re: create vm on esc through nso

 

Hi Bilal,

 

    Thanks for reply.Currently I’ve connected ESC via NSO

 

 

1.I can input below command,basically it equals to your first XML.

 

    admin% set devices device esc2 config esc:esc_datamodel tenants tenant admin services service_definition cirros-0.3.4 cirros-0.3.4 1.0 vm_group cirros-vmgroup-1

 

[ok][2015-12-22 12:13:20]

 

 

[edit]

 

admin% commit

 

 

2.But this cli can’t boot up the VM.

 

And I try to input your 2nd XML like this:

 

admin% set devices device esc2 config esc:esc_datamodel tenants tenant admin deployment ?

 

                                                                             ^

 

% Invalid input detected at '^' marker.

 

 

It’s not allowed.

 

 

Could you chime in on this?

 

 

BTW,I’m using virtual mpls vpn example,and input above cli in that setup.

 

 

Thanks.

 

 

       Yuanchao Su

 

Highlighted
Cisco Employee

Re: create vm on esc through nso

 

Hi YuanChao,

 

 

  1. What does the ESC log say?
  2. Which version of ESC you using?

  

 

If you are using vm-manager package, then you will not need to deal with the ESC models at all. Please spend some time and get familiar with:

 

nso-4.0.1/examples.ncs/service-provider/virtual-mpls-vpn/packages/vm-manager/src/yang/vm-manager.yang

 

nso-4.0.1/examples.ncs/service-provider/virtual-mpls-vpn/packages/l3vpn/templates/vm-manager-template.xml

 

 

Thanks,

 

  1. Bilal.

 

This widget could not be displayed.