Giter VIP home page Giter VIP logo

zof's People

Contributors

byllyfish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zof's Issues

/metrics/ports unknown target still returns HTTP status 200

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

Passing unknown --x-oftr-args to oftr should fail faster and cleaner

$ 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.