#version 4.6
Example Usage for config template based packaging option
# Prepare the config template for the desired VM.

python nfvpt.py packaging-v2 --config scaffold_template.cfg --log logger -o example.tar.gz -d dest

Example Usage for repackage command

Example Usage for adding the certifiate file to the day0 file (only supported for c8kv and vedge)
python nfvpt.py --modify_package repackage --file_path /usr/data/example1.tar.gz --cert BranchCert.pem --package_output example2.tar.gz --mod_version X.X --root_image /Users/data/example.qcow2

Example Usage for (add/replace QCOW2 and modify version) works for Cisco VM and 3rd VM.
python nfvpt.py --modify_package repackage --file_path /usr/data/example1.tar.gz --package_output example2.tar.gz --mod_version X.X --root_image /Users/data/example.qcow2

#version 3.9.1

Example Usage for TinyLinux:
nfvpt.py -o TinyLinux -i TinyLinux.qcow2 -n TinyLinux -t linux -r 1.0 --min_vcpu 1 --max_vcpu 2 --min_mem 1024 --max_mem 1024 --min_disk 1 --max_disk 2 --vnic_max 1 --monitored false --optimize true --interface_hot_add false --interface_hot_delete false

Example Usage for ASAv:
Example-1:
NOTE: --bootstrap1 day0-config (The bootstrap filename has to be day0-config (CANNOT BE MODIFIED) as ASAv only looks for this filename
nfvpt.py -o asav961-201 -i asav961-201.qcow2 -n ASAv -t firewall -r 961-201 --monitored true --bootstrap  day0-config:filename1 --min_vcpu 1 --max_vcpu 4 --min_mem 1024 --max_mem 8192 --min_disk 8 --max_disk 16 --vnic_max 8 --optimize true --profile ASAv5,"ASAv5  profile",1,1024,8192 --profile ASAv10,"ASAv10 profile",1,4096,8192 --profile ASAv30,"ASAv30 profile",4,8192,16384 --default_profile ASAv5

Example Usage for ISRv:
NOTE: --bootstrap1 ovf-env.xml (The bootstrap filename has to be ovf-env.xml (CANNOT BE MODIFIED) as ISRv only looks for this filename
nfvpt.py -o isrv.16.03.01 -i isrv-universalk9.16.03.01.qcow2 -n ISRv.16.03.01 -t ROUTER -r 16.03.01 --monitored true --privileged true --bootstrap ovf-env.xml:file1,ios-xe.txt:file2 --min_vcpu 2 --max_vcpu 8 --min_mem 4096 --max_mem 8192 --min_disk 8 --max_disk 8 --vnic_max 8 --optimize true --profile ISRv-small,"ISRv small  profile",2,4096,8192 --profile ISRv-medium,"ISRv medium profile",4,4096,8192 --default_profile ISRv-small --sriov_list igb,igbvf,i40evf --custom key:PASSWD,val:secret

Example Usage for 3rd Party VM with config drive (ISO) mounted at specific path on the VM:
nfvpt.py -o test.1.0 -i test-1.0.qcow2 -n TEST -t OTHER -r 1.0 --monitored true --privileged true --bootstrap /:bootstrap.xml,/license/lic.txt:license.txt --min_vcpu 2 --max_vcpu 8 --min_mem 4096 --max_mem 8192 --min_disk 8 --max_disk 8 --vnic_max 8 --optimize true --profile small,"small  profile",2,4096,8192 --profile medium,"medium profile",4,4096,8192 --default_profile small

in this case test.1.0.pkg : bootstrap.xml get mounted as bootstrap.xml at root and license.txt get mounted as /license/lic.txt


SDWAN-NetworkHub Packaging Support:

Example Usage for Asav with json file for HA packaging:
nfvpt.py -i asav992.qcow2 -o asav.tar.gz --json d.json -n asav -t FIREWALL --ha_package --app_vendor CISCO --optimize true -r 1.0

Example Usage for Asav with bootstrap options for HA packaging:
nfvpt.py -i asav992.qcow2 -o asav.tar.gz --bootstrap mount_point:/data/,file:day0-config-l3-vpn-primary -t FIREWALL -n asav -r 0.9 --app_vendor CISCO --monitored true --ha_package

Example Usage for Asav with custom option:
nfvpt.py -i asav992.qcow2 -o asav.tar.gz --json d.json -n asav -t FIREWALL --ha_package --app_vendor CISCO --optimize true -r 1.0 --custom key:PASSWD,val:secret
