byllyfish / zof Goto Github PK
View Code? Open in Web Editor NEWOpenFlow Python3 Microframework
License: MIT License
OpenFlow Python3 Microframework
License: MIT License
If there is no datapath_id 0x03, it should return an error status, so the prometheus "up" metric will be updated correctly.
GET http://localhost:9244/metrics/ports?target=0x03
Currently yields:
# HELP port_tx_bytes_total bytes transmitted
# TYPE port_tx_bytes_total counter
# HELP port_rx_bytes_total bytes received
# TYPE port_rx_bytes_total counter
# HELP port_tx_packets_total packets transmitted
# TYPE port_tx_packets_total counter
# HELP port_rx_packets_total packets received
# TYPE port_rx_packets_total counter
# HELP port_tx_drops_total packets dropped by TX
# TYPE port_tx_drops_total counter
# HELP port_rx_drops_total packets dropped by RX
# TYPE port_rx_drops_total counter
# HELP port_rx_errors_total receive errors
# TYPE port_rx_errors_total counter
# HELP port_duration_seconds_total duration in seconds
# TYPE port_duration_seconds_total counter
# HELP port_up port is up
# TYPE port_up gauge
$ python -m zof.demo.lameduck --x-oftr-args='trace=rpc'
jsonrpc: Unknown command line argument 'trace=rpc'. Try: 'jsonrpc -help'
Sep 26 13:42:52.706 zof ERROR Unable to get description from oftr [TimeoutException xid=8093 timeout=10.0]
Sep 26 13:42:52.708 zof ERROR Exception in Controller._start
Traceback (most recent call last):
File "/Users/bfish/code/pylibofp/zof/controller.py", line 176, in _start
await self._get_description()
File "/Users/bfish/code/pylibofp/zof/controller.py", line 194, in _get_description
result = await self.rpc_call('OFP.DESCRIPTION')
zof.exception.TimeoutException: [TimeoutException xid=8093 timeout=10.0]
Sep 26 13:42:52.712 zof ERROR oftr exited with return code 1
Sep 26 13:42:52.713 zof INFO Exiting with status 11
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.