Skip to content

Commit

Permalink
further fixes to example-ping.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoltanLajosKis committed Jun 19, 2012
1 parent 4c60485 commit a2af49e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/example-ping.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ We edit the `rel/files/sys.config` file, which contains the Switch configuration
{"localhost", 6633}
]},
{ports, [
[{ofs_port_num, 1}, {interface, "tap0"}, {ip, "10.0.0.1"}],
[{ofs_port_num, 2}, {interface, "tap1"}, {ip, "10.0.0.2"}],
[{ofs_port_no, 1}, {interface, "tap0"}, {ip, "10.0.0.1"},
{queues, [{0, [{ofp_queue_prop_min_rate, 0}, {ofp_queue_prop_max_rate, 1000}]}]},
{rate, {1, gibps}}],
[{ofs_port_no, 2}, {interface, "tap1"}, {ip, "10.0.0.2"},
{queues, [{0, [{ofp_queue_prop_min_rate, 0}, {ofp_queue_prop_max_rate, 1000}]}]},
{rate, {1, gibps}}]
]}
]},
...
Expand All @@ -63,6 +67,11 @@ Additionally we can see that `tap0` and `tap1` interfaces were created in the sy

% ifconfig

These interfaces must be upped.

% ifconfig tap0 up
% ifconfig tap1 up

Erlang representation of those ports are stored in `ofs_ports` ets table.

(switch)1> ets:tab2list(ofs_ports).
Expand Down

0 comments on commit a2af49e

Please sign in to comment.