The name of the Hello World reference pipeline in the SSDK deliverable
is hello_world
. This is used as a CLI command.
To compile the pipeline, execute the following command:
# ARCH=x86_64 ./tools/build.sh --p4_program hello_world
Note: Compiling takes a few minutes to complete. To ensure
that you compile the pipeline from a clean environment, run the following
command:
# ARCH=x86_64 ./tools/build.sh --p4_program hello_world --clean
To start and run the hello world pipeline in the simulator, execute the following command:
# ./tools/dsc-sim-start.sh --p4_program hello_world
The following is an example of a successful start of the simulator.
Loading SIM environment
hntap service started, pid is 38130
-----------------------------------------------------------------------------------------------------------------------------------------
ID IfIndex Name MAC Address PinnedInterface Type OperState AdminState VnicHwId
-----------------------------------------------------------------------------------------------------------------------------------------
4b000070-0000-0000-4242-022222111111 7000004b eth4 00:de:ad:be:ef:04 - HOST NONE NONE -
47000070-0000-0000-4242-022222111111 70000047 eth0 00:de:ad:be:ef:00 - HOST NONE NONE -
4d000070-0000-0000-4242-022222111111 7000004d eth6 00:de:ad:be:ef:06 - HOST NONE NONE -
48000070-0000-0000-4242-022222111111 70000048 eth1 00:de:ad:be:ef:01 - HOST NONE NONE -
41000070-0000-0000-4242-022222111111 70000041 oob_mnic0 00:de:ad:be:ef:17 - OOB-MGMT NONE NONE -
4c000070-0000-0000-4242-022222111111 7000004c eth5 00:de:ad:be:ef:05 - HOST NONE NONE -
49000070-0000-0000-4242-022222111111 70000049 eth2 00:de:ad:be:ef:02 - HOST NONE NONE -
4a000070-0000-0000-4242-022222111111 7000004a eth3 00:de:ad:be:ef:03 - HOST NONE NONE -
4e000070-0000-0000-4242-022222111111 7000004e eth7 00:de:ad:be:ef:07 - HOST NONE NONE -
44000070-0000-0000-4242-022222111111 70000044 cpu_mnic0 00:de:ad:be:ef:14 - DATAPATH NONE NONE -
45000070-0000-0000-4242-022222111111 70000045 cpu_mnic1 00:de:ad:be:ef:13 - DATAPATH NONE NONE -
43000070-0000-0000-4242-022222111111 70000043 dsc1 00:de:ad:be:ef:15 - INBAND-MGMT NONE NONE -
46000070-0000-0000-4242-022222111111 70000046 ftl - - FTL NONE NONE -
42000070-0000-0000-4242-022222111111 70000042 dsc0 00:de:ad:be:ef:16 - INBAND-MGMT NONE NONE -
No. of lifs : 14
Simulation is up …
# [root@dsc_ssdk nic]#
Note: A
Simulation is up …
message in the screen indicates a successful start of the simulator.