virtual-network-functions
Syntax
virtual-network-functions vnf-name;
Hierarchy Level
virtual-network-functions { ipsec-nm { interfaces { heth1 | heth2 { mapping { vlan { members vlan-name; } } } } } vjunos0 { interfaces { em1 { mapping { vlan { members vlan-name; } } } } } vmx { image filepath; virtual-cpu { count virtual-cpu-count; features; } memory size size; storage { vdc { type type; source file-path; } vdb { type type; source file-path; } } vsrx { vnf-name { type { linux-container | virtual-machine; } image { file-path; bus-type [ide | virtio]; image-type [qcow2 | raw]; } init-descriptor file-path; memory { size size; features { hugepages ; } } no-autostart; storage device-name { type { cdrom { source { file filename; } } disk { bus-type [ide | virtio]; file-type [qcow2 | raw]; source { file filename; } } usb { source { file filename; } } } } virtual-cpu { virtual-cpu-number { physical-cpu number | range; } count number; features { hardware-virtualization; } } interfaces interface-name { pci-address pci-address; mapping { hsxe0 { virtual-function { vlan-id vlan-id; } } hsxe1 { virtual-function { vlan-id vlan-id; } } vlan { members vlan-name; mode [access | trunk]; native-vlan-id vlan-id; } peer-interfaces peer-interface-name; } management { internal; out-of-band; } } }
Description
Create an instance of a virtual network function (VNF) on platforms that run disaggregated Junos OS software.
Creating a VNF instance fails if the resources required by the VNF are not available in the system.
If you use init-descriptor to define a VNF by specifying and setting different values for the virtual CPU count or memory and later if you delete the virtual cpu count, the system restores the value to a default value of 1 for vCPU and 1GB for memory.
You can enable the VNF options such virtual-cpu-hardware-virtualization (vmx), hugepages, image-type, and image-bus-type only when you define the VNF initially. You cannot enable or disable the VNF options after committing the VNF configuration. To enable or disable the VNF options, you must delete the VNF configuration and re-configure with the VNF options.
Options
virtual-network-functions vnf-name | Name of the VNF instance. It is mandatory to provide one of the options: init-descriptor or image. |
file-path | Path of the source file. |
number | range | Number or a range of physical CPUs. For example, 2 or 2...5. |
interface-name | Name of the VNF interface, which can range from eth0
to eth9. You can configure eth0 and eth1 interfaces and can assign
VLAN IDs. To configure eth0 and eth1 interfaces, you must configure |
physical-interface-name | Name of the physical interface to which the VNF interface is attached. |
vlan-id | SR-IOV virtual function to use to attach a VNF to a physical interface. |
native-vlan-id | Virtual LAN identifier for untagged frames. For example, 1...4095 |
vlan-name | Name of the VLAN members. |
size | Amount of memory allocated to a VNF in kilobytes. The default size is 1 GB. |
device-name | Name of the storage device. |
file-name | Name of the source file of the storage device. |
peer-interface-name | Name of the virtual peer interfaces that is mapped to a physical interface. |
management | VNF interface management configuration. |
Required Privilege Level
routing—To view this statement in the configuration.routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 15.1X53-D45.