cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
611
Views
0
Helpful
1
Replies

How can we create a new payload in NSO

anandmi
Cisco Employee
Cisco Employee

How can we create a new payload in NSO. Something like this with 2 vcpu and dmona.

 

<config xmlns="http://tail-f.com/ns/config/1.0">
<nfv xmlns="urn:etsi:nfv:yang:etsi-nfv-descriptors">
<vnf-info xmlns="http://cisco.com/ns/nso/cfp/cisco-etsi-nfvo">
<name>PUN-LUD-FP6-CUPS-DATA-UP-04</name>
<username>admin</username>
<vnfd>VPC-SI-IPV6-DUAL-PUN-LUD</vnfd>
<vnfd-flavour>default</vnfd-flavour>
<instantiation-level>default</instantiation-level>
<vnfm>esc-etsi-sol3</vnfm>
<vnfm-type>sol3</vnfm-type>
<vim-type>openstack</vim-type>
<vdu>
<id>UPP</id>
<image-name>qvpc-upf</image-name>
<flavour-name>up-data-flavor-r1-n1</flavour-name>
<resource-allocation>
<vim>bhartivim-PUN-LUD</vim>
<zone-id>nova</zone-id>
</resource-allocation>
<internal-connection-point>
<id>UPP_nic0</id>
<connection-point-address>
<sol3-parameters>
<ecp-connection>
<ip-address>
<id>0</id>
<type>IPV4</type>
<subnet-name>orch-subnet-v4</subnet-name>
<fixed-address>
<address>192.168.11.37</address>
</fixed-address>
</ip-address>
</ecp-connection>
</sol3-parameters>
</connection-point-address>
<allowed-address-pair>
<address>192.168.11.0</address>
<netmask>255.255.255.0</netmask>
</allowed-address-pair>
<security-group>default</security-group>
</internal-connection-point>
<internal-connection-point>
<id>UPP_nic1</id>
<connection-point-address>
<sol3-parameters>
<ecp-connection>
<ip-address>
<id>0</id>
<type>IPV6</type>
<subnet-name>subnet-prov-v6</subnet-name>
<fixed-address>
<address>2401:4900:0024:0e00:0:0:0:0411</address>
</fixed-address>
</ip-address>
<ip-address>
<id>1</id>
<type>IPV4</type>
<subnet-name>subnet-prov</subnet-name>
<fixed-address>
<address>172.25.136.18</address>
</fixed-address>
</ip-address>
</ecp-connection>
</sol3-parameters>
</connection-point-address>
<security-group>default</security-group>
</internal-connection-point>
<internal-connection-point>
<id>UPP_nic2</id>
<allowed-address-pair>
<address>192.168.7.0</address>
<netmask>255.255.255.0</netmask>
</allowed-address-pair>
</internal-connection-point>
<internal-connection-point >
<id>UPP_nic3</id>
<allowed-address-pair>
<address>192.168.9.0</address>
<netmask>255.255.255.0</netmask>
</allowed-address-pair>
</internal-connection-point>
</vdu>
<virtual-link>
<id>etsi-vpc-service-1</id>
<is-externally-managed>true</is-externally-managed>
<network-name>sriov1</network-name>
</virtual-link>
<virtual-link>
<id>etsi-vpc-service-2</id>
<is-externally-managed>true</is-externally-managed>
<network-name>sriov3</network-name>
</virtual-link>
<resource-orchestration>
<vim>
<id>bhartivim-PUN-LUD</id>
<vim-id>bhartivim-PUN-LUD</vim-id>
<access-params>
<param>
<key>password</key>
<value>Csco@123</value>
</param>
<param>
<key>project</key>
<value>core</value>
</param>
<param>
<key>projectDomain</key>
<value>default</value>
</param>
<param>
<key>region</key>
<value>RegionOne</value>
</param>
<param>
<key>userDomain</key>
<value>default</value>
</param>
<param>
<key>username</key>
<value>core</value>
</param>
<param>
<key>vim_project</key>
<value>core</value>
</param>
</access-params>
<interface-params>
<param>
<key>endpoint</key>
<value>https://[2401:4900:0024:0e00::0592]:5000/v3</value>
</param>
</interface-params>
<zone>
<id>nova</id>
<zone-name>nova</zone-name>
</zone>
</vim>
</resource-orchestration>
<additional-parameters >
<id>BOOTUP_TIME_UPP</id>
<value>600</value>
</additional-parameters>
<additional-parameters>
<id>CHASSIS_KEY</id>
<value>1500956863402</value>
</additional-parameters>
<additional-parameters>
<id>UPP_IMAGE_DISK_FORMAT</id>
<value>qcow2</value>
</additional-parameters>
<additional-parameters>
<id>UPP_IMAGE_FORMAT</id>
<value>bare</value>
</additional-parameters>
<additional-parameters>
<id>UPP_IMAGE_MIN_DISK_SIZE</id>
<value>2GB</value>
</additional-parameters>
<additional-parameters>
<id>UPP_IMAGE_SIZE</id>
<value>2GB</value>
</additional-parameters>
<additional-parameters>
<id>UPP_IMAGE_VERSION</id>
<value>21.19</value>
</additional-parameters>
<additional-parameters>
<id>UPP_CARD_TYPE_NUM</id>
<value>0x40010100</value>
</additional-parameters>
<additional-parameters>
<id>UPP_CPU_ID</id>
<value>0</value>
</additional-parameters>
<additional-parameters>
<id>MEM_SIZE</id>
<value>128GB</value>
</additional-parameters>
<additional-parameters>
<id>CPU_NUM</id>
<value>16</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NIC1_ADDR_PAIRS</id>
<value>172.25.136.0/26</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NIC1_ADDR_PAIRS-IPV6</id>
<value>2401:4900:0024:0e00:0:0:0:0400/120</value>
</additional-parameters>
<additional-parameters>
<id>UPP_DOMAIN_NAME</id>
<value>cisco.com</value>
</additional-parameters>
<additional-parameters>
<id>UPP_FORWARDER_TYPE</id>
<value>VPP</value>
</additional-parameters>
<additional-parameters >
<id>UPP_HOST_NAME</id>
<value>PUN-LUD-FP6-CUPS-DATA-UP-04</value>
</additional-parameters>
<additional-parameters >
<id>UPP_LICENSE_KEY</id>
<value>"\
VER=1|DOI=1632203383|ISS=3|NUM=805839|CMT=SWIFT_License|LSG=300000|LEC\
=600000|LGT=300000|FIS=Y|FR4=Y|FTC=Y|FSR=Y|FPM=Y|FID=Y|FI6=Y|FLI=Y|FFA\
=Y|FCA=Y|FTP=Y|FTA=Y|FDR=Y|FDC=Y|FGR=Y|FAA=Y|FDQ=Y|FEL=Y|BEP=Y|FAI=Y|F\
CP=Y|LCF=300000|LPP=300000|LSF=300000|FLS=Y|LGW=300000|HIL=XT2|LSB=300\
000|FIB=Y|FND=Y|FRE=Y|FHE=Y|FUR=Y|FVO=Y|FST=Y|FSI=Y|FIM=Y|FLP=Y|FMF=Y|\
FEE=Y|FHH=Y|FDS=Y|LSE=300000|FOC=Y|FOS=Y|FIR=Y|FNE=Y|FGD=Y|LIP=300000|\
FEG=Y|FL2=Y|FLF=Y|FCI=Y|FCN=Y|FUB=Y|FSF=Y|FWI=Y|FAC=Y|FIE=Y|**bleep**=Y|FNQ=\
Y|FOX=Y|FAM=Y|FGX=Y|FWT=Y|FUA=Y|LCU=300000|LUU=300000|FLC=Y|FRD=Y|FED=\
Y|SIG=MC0CFEDRtoPDJvTE2dAYTfINBJjpnK/8AhUAvExhEbcKPSJPCSu1OpaHreuwSCY"
</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NAME_SERVER</id>
<value>171.70.168.183</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NIC0_IP_ADDRESS_FAMILY</id>
<value>ipv4</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NIC0_TYPE</id>
<value>virtual</value>
</additional-parameters>
<additional-parameters >
<id>UPP_NIC1_IP_ADDRESS_FAMILY</id>
<value>ipv4</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NIC1_TYPE</id>
<value>virtual</value>
</additional-parameters>
<additional-parameters >
<id>UPP_NIC2_IP_ADDRESS_FAMILY</id>
<value>ipv4</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NIC2_TYPE</id>
<value>direct</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NIC3_IP_ADDRESS_FAMILY</id>
<value>ipv4</value>
</additional-parameters>
<additional-parameters>
<id>DMONA_AGENT_ID</id>
<value>dmonaName://esc-etsi-sol3-vnf-info-PUN-LUD-FP6-CUPS-DMONA-01</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NIC3_TYPE</id>
<value>direct</value>
</additional-parameters>
<additional-parameters>
<id>UPP_NTP_SERVER1</id>
<value>10.206.18.164</value>
</additional-parameters>
<additional-parameters>
<id>UPP_PASSWORD</id>
<value>Csco@123</value>
</additional-parameters>
<additional-parameters >
<id>UPP_SLOT_CARD_NUMBER</id>
<value>1</value>
</additional-parameters>
<additional-parameters >
<id>UPP_USER_NAME</id>
<value>admin</value>
</additional-parameters>
<vnfd-connection-point >
<id>VIM_NETWORK_MANAGEMENT</id>
<network-name>provider</network-name>
<subnets>
<subnet-name>subnet-prov</subnet-name>
</subnets>
</vnfd-connection-point>
<vnfd-connection-point>
<id>VIM_NETWORK_ORCHESTRATION</id>
<network-name>orch</network-name>
<subnets>
<subnet-name>orch-subnet-v4</subnet-name>
</subnets>
</vnfd-connection-point>
</vnf-info>
</nfv>
</config>

1 Reply 1

Jesus Illescas
Cisco Employee
Cisco Employee

In NSO you can use a display filter to show the configuration in several formats, xml one of them.

When developing a new configuration, what you can do, is manually configure it first on NSO, then do a commit dry-run outformat xml this will give you the payload NSO will use to create the new configuration.

By the way, there is a dedicated community for NSO where you can get your answers faster, I recommend to post there:

https://community.cisco.com/t5/nso-developer-hub/ct-p/5672j-dev-nso