Posts

Showing posts with the label faucet

Full faucet.yaml file configuration

version: 2 dps:     test-faucet-1:         dp_id: 0x0000000000000001   # The id of the datapath to be controlled         description: "Initial Test Faucet"    # Purely informational         hardware: "Open_vSwitch"  # used to determine which valve implementation to use         interfaces:             1:                 native_vlan: 100                 name: "port1"   # name for this port, used for logging/monitoring                 acl_in: 1                 description: "Port 1"    # informational             2:                 #native_vlan: 100               ...

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!

Running Faucet and Gauge on localhost

Image
In my post about how to configure  mininet-ryu-faucet-gauge-influxdb  I used faucet in a remote machine (as virtual machine). Now, I going to explain how to install and configure it in localhost. First, download it form github: git clone https://github.com/onfsdn/faucet.git cd faucet sudo python setup.py install Probably, you will see this message: build/temp.linux-x86_64-2.7/check_libyaml.c:2:18: fatal error: yaml.h: No such file or directory To avoid it, you need to install yaml: apt-get install libyaml-dev If you try to install it again you will see this message: ERROR:root:Error parsing Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 111, in pbr     attrs = util.cfg_to_args(path, dist.script_args)   File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 248, in cfg_to_args     kwargs = setup_cfg_to_setup_kwargs(config, script_args)   File "/usr/local/lib...

Mininet + Ryu + Faucet + Gauge + Influxdb

Image
First, to install faucet proceed to download it: pip install https://pypi.python.org/packages/a3/5a/197046b6fbad2f129e108358d7ba9674ebae638a227e6a1680cd77c7bd13/ryu-faucet-1.1.tar.gz or from the github: git clone https://github.com/onfsdn/faucet.git I had a problem to run gauge with this installer (maybe dependencies or something else). When I run gauge I got this error: raise SystemError('__init__ called too many times') SystemError: __init__ called too many times If you have the same issue reported as #19  or you want ot avoid it, they recommend to download the ryu-faucet VM to work on it: https://susestudio.com/a/ENQFFD/ryu-faucet/download/vmx The user is root and password is faucet I prefer work with byobu, to manage a lot tabs. To install on the VM just run: zypper install byobu If you try to run the ./test_config.py including in the faucet folder, you will see the following error: Traceback (most recent call last):   File "./test_config.py...