Skip to content

Commit b80ce02

Browse files
authored
elaboration to steps of pcn-iptables (#149)
* elaboration to steps * Update the changes to other documentation Signed-off-by: Aasif Shaikh <aasif@shaikh.cc>
1 parent 3638401 commit b80ce02

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Documentation/components/iptables/pcn-iptables.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,15 @@ This flag is required to be enabled as well, but it comes by default.
7373

7474
::
7575

76-
7776
cd polycube
7877

79-
# hint: ensure git submodules are updated
78+
# Note: ensure git submodules are updated
8079
# git submodule update --init --recursive
8180

8281
mkdir -p build
8382
cd build
8483
cmake .. -DENABLE_PCN_IPTABLES=ON
85-
make && sudo make install
84+
make -j`nproc` && sudo make install
8685

8786
Run
8887
---
@@ -93,7 +92,7 @@ Run
9392
::
9493

9594
# Start polycubed, in other terminal (or background)
96-
sudo polycubed
95+
sudo polycubed --daemon
9796
# Initialize pcn-iptables
9897
pcn-iptables-init
9998

@@ -135,6 +134,10 @@ Following are just few examples of available commands.
135134
# Stop and clean pcn-iptables
136135
pcn-iptables-clean
137136

137+
# Execute the below command to validate if cleanup is successful.
138+
pcn-iptables -S
139+
``Note: On successful cleanup, you should receive "No cube found named pcn-iptables"``
140+
138141

139142
Advanced Features
140143
-----------------
@@ -167,4 +170,4 @@ scripts folder
167170
^^^^^^^^^^^^^^
168171

169172
Scripts are used as a glue logic to make pcn-iptables run. Main purpose is initialize, cleanup and run pcn-iptables, pass pcn-iptables parameters through iptables (in charge of converting them), then pass converted commands to pcn-iptables service.
170-
Scripts are installed under ``/usr/local/bin``.
173+
Scripts are installed under ``/usr/local/bin``.

0 commit comments

Comments
 (0)