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.
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.
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?
To create the VM, you can either do:
Or you can do:
Or why not just use the “vm-manager” package. Please look at the following example for more details:
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
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.
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: