get_known_devices

command
v0.0.0-...-a7b7eb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

README

Get Known Devices Tools

This example demonstrates how to query oftee for the DPIDs of the devices which oftee is aware.

Help

This application is configured via the environment. The following environment
variables can be used:

KEY          TYPE             DEFAULT                  REQUIRED    DESCRIPTION
HELP         True or False    false                                show this message
OFTEE_API    String           http://127.0.0.1:8002                HOST:PORT on which to connect to OFTEE REST API

Usage

assuming GOPATH is set, package are downloaded, and jq is installed for pretty printing JSON

$ go run src/github.com/ciena/oftee/misc/get_known_devices/get_known_devices.go | jq .
{
  "devices": [
    "of:0x000062bfe0fd4e45",
    "of:0x0000663d64f9a142"
  ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL