ryu.log: change type of --use_syslog option to Boolean.

----------
$ ryu-manager --help
(....)
  --use-syslog USE_SYSLOG
                        output to syslog

$ ryu-manager --use-syslog
usage: ryu-manager [-h] [--version] [--verbose] [--noverbose] [--use-stderr]
(....)
ryu-manager: error: argument --use-syslog: expected one argument
----------

Signed-off-by: EisukeTAKAHASHI <takahashi.eisuke@po.ntts.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Add request/reply event support to support communication between apps

What most of applications need to do is:

1) register a handler to catch a specific event
2) The handler does multiple asynchronous tasks (query dbs, configures
switches, etc).

2) can be implemented in an asynchronous way, that is sending multiple
requests at the same time. However, I don't think most of developers
need to do or want to do. The API to handle multiple asynchrnous tasks
in a synchronous way is more handy.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
of1.3: fix error in group_mod

Signed-off-by: Zhang Dongya <fortitude.zhang@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
ryu-manager: stop modifying CONF.app_list

to make cli show-options a little prettier.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
log-cleanup: remove an unused logger instance

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
log-cleanup: remove an unused logger instance

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
log-cleanup: per RyuApp logger

let RyuApp provide its own logger.
use it instead of per-module logger where appropriate.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
log-cleanup: honor --default-log-level in case of --verbose

if the default log level is explicitly specified by --default-log-level
option, use the level rather than defaulting to logging.DEBUG.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
doc: fix bug in tls.rst

We need to use absolute file names when running set-ssl command.

Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
wsgi: remove unused logging code

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
ofp: send events to others before calling own handlers

Some own handlers change the state so needs to send events before
calling own handlers.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
MANIFEST.in: include XML schema files

Later XML schema will be added.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
netconf: import xml schema

This is stolen from flowforwarding enetconf
git://github.com/FlowForwarding/enetconf.git enetconf/priv/xml.xsd

This is a slimmed down version of http://www.w3.org/2001/xml.xsd.
Without this, validator can access to network when loading/validating XML.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
netconf: import XML schema for netconf

This is from IANA defined by RFC6241.
stolen from
http://www.iana.org/assignments/xml-registry/schema/netconf.xsd

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
netconf: improve schema for netconf

RFC6241 defines only message layer, doesn't operation layer.
So adds definitions for operation layer.
Note: notification layer is still missing yet.
Plus indentation fix.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
netconf: add constants for netconf

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
of_config: import XML schema files for OF config.

Import XML schema files for OF config. They are stolen from flowflowarding of_config.
NOTE: They adds operation attribute where they accepts.
When we supports another OF-config capable switch, they needs to be updated.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
of_config/schema: add missing import

Otherwise lxml.etree.XMLSchema complains.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
of_config: constants for of-config

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
of_config: OF capable switch class to issue OFConfig request

This class implements direct API to ofconfig.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>