2.1. spp_nfv¶
Each of spp_nfv
and spp_vm
processes is managed with nfv
command.
It is for sending sub commands to secondary with specific ID called
secondary ID.
nfv
command takes an secondary ID and a sub command. They must be
separated with delimiter ;
.
Some of sub commands take additional arguments for speicfying resource
owned by secondary process.
spp > nfv SEC_ID; SUB_CMD
All of Sub commands are referred with help
command.
spp > help sec
Send a command to secondary process specified with ID.
SPP secondary process is specified with secondary ID and takes
sub commands.
spp > nfv 1; status
spp > nfv 1; add ring:0
spp > nfv 1; patch phy:0 ring:0
You can refer all of sub commands by pressing TAB after
'nfv 1;'.
spp > nfv 1; # press TAB
add del exit forward patch status stop
2.1.1. status¶
Show running status and ports assigned to the process. If a port is patched to other port, source and destination ports are shown, or only source if it is not patched.
spp > nfv 1; status
- status: idling
- ports:
- phy:0 -> ring:0
- phy:1
2.1.2. add¶
Add a port to the secondary with resource ID.
For example, adding ring:0
by
spp> nfv 1; add ring:0
Or adding vhost:0
by
spp> nfv 1; add vhost:0
2.1.3. patch¶
Create a path between two ports, source and destination ports. This command just creates a path and does not start forwarding.
spp > nfv 1; patch phy:0 ring:0
2.1.4. forward¶
Start forwarding.
spp > nfv 1; forward
Running status is changed from idling
to running
by
executing it.
spp > nfv 1; status
- status: running
- ports:
- phy:0
- phy:1
2.1.5. stop¶
Stop forwarding.
spp > nfv 1; stop
Running status is changed from running
to idling
by
executing it.
spp > nfv 1; status
- status: idling
- ports:
- phy:0
- phy:1
2.1.7. exit¶
Terminate the secondary. For terminating all secondaries,
use bye sec
command instead of it.
spp> nfv 1; exit