Skip to content

Commit

Permalink
Added configuration section.
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Jan 29, 2015
1 parent 4799bb7 commit 498b34b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,26 @@ How to run
% bundle install
% bundle exec trema run lib/patch_panel.rb -c trema.conf
```


Configuration
-------------

When `patch_panel.rb` starts up, it will search for its configuration
file named `patch_panel.conf` in the current working directory. If you
want to specify a path to a configuration file, pass it to
`patch_panel.rb` as its argument:

```
% bundle exec trema run "lib/patch_panel.rb foobar.conf" -c trema.conf
```

A configuration file contains patching information. Each line has a
pair of port numbers like so:

```
1 2
3 4
```

The first line means that switch port #1 is connected to port #2.

0 comments on commit 498b34b

Please sign in to comment.