2. Secondary Commands¶
Each of secondary processes is managed with sec
command.
It is for sending sub commands to secondary with specific ID called
secondary ID.
sec
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 > sec [SEC_ID];[SUB_CMD]
2.1. status¶
Show running status and resources.
spp > sec 1;status
recv:7:{Client ID 1 Idling
1
port id: 0,on,PHY,outport: none
port id: 1,on,PHY,outport: none
}
2.2. add¶
Add a PMD to the secondary with resource ID.
Adding ring 0 by
spp> sec 1;add ring 0
recv:7:{addring0}
Or adding vhost 0 by
spp> sec 1;add vhost 0
recv:7:{addvhost0}
2.3. patch¶
Create a path between two ports, source and destination ports. Port ID is referred by status sub commnad. This command just creates path and does not start forwarding.
spp > sec 1;patch 0 2
recv:7:{patch02}
2.4. forward¶
Start forwarding.
spp > sec 1;forward
recv:7:{start forwarding}
Running status is changed from Idling
to Running
by
executing it.
spp > sec 1;status
recv:7:{Client ID 1 Running
1
port id: 0,on,PHY,outport: none
port id: 1,on,PHY,outport: none
}
2.5. stop¶
Stop forwarding.
spp > sec 1;stop
recv:7:{start forwarding}
Running status is changed from Running
to Idling
by
executing it.
spp > sec 1;status
recv:7:{Client ID 1 Running
1
port id: 0,on,PHY,outport: none
port id: 1,on,PHY,outport: none
}
2.6. del¶
Delete PMD added by add
subcommand from the secondary.
spp> sec 1;del ring 0
recv:7:{delring0}
2.7. exit¶
Terminate the secondary. For terminating all secondaries, use bye sec
command instead of it.
spp> sec 1;exit
recv:7:{delring0}