Issues to run faucet.py

A typicall issue when you run faucet.py is the following:

sudo ryu-manager --ofp-tcp-listen-port=6633 /home/nboettcher/Downloads/faucet/src/ryu_faucet/org/onfsdn/faucet/faucet.py ryu.app.simple_switch_13 ryu.app.ofctl_rest

... in __init__ 
self.config_file, self.logname)
TypeError: 'NoneType' object is not iterable

To see the specific conflictive line in your config file (faucet.yaml), you need to check out the faucet log:

$ cat /var/log/ryu/faucet/faucet.log
faucet.config ERROR    Error in file /etc/ryu/faucet/faucet.yaml (while scanning for the next token
found character '\t' that cannot start any token
  in "/etc/ryu/faucet/faucet.yaml", line 15, column 1)

As you can see, yaml files can't use tabulation to ident the content. Replace tabs by spaces.
Don't forget delete empty lines at the end of file.

Enjoy it!

Comments

Popular posts from this blog

How to fix Android when developer options are not available for this user

Exception: Could not find a default OpenFlow controller in Mininet

v4l2: open /dev/video0: Permission denied