When a new resource is created, it is necessary to specify how to connect with its device. These parameters depend on the type of connections and the necessary credentials. For this reason, OpenNaaS works with URIs to specify the connection params to access like this:

transport://user:password@ip:port/subsystem

 

URI to connect with JUNOS routers

ssh://myuser:mypassword@1.1.1.1:22/netconf

  • ssh. It specifies the ssh  protocol.
  • user:password. Credentials to connect to the device.
  • ip. IP Address of the device.
  • port. Port TCP which the protocol uses to connect.
  • netconf. It specifies a particular communication inside the protocol.

In case you're using key authentication instead of the user-password method, you don't need to specify the "password" parameter in the URI.

ssh://myuser@1.1.1.1:22/netconf

URI to connect with WONESYS devices

wonesys://1.1.1.1:27773

  • wonesys. It specifies the wonesys protocol.
  • ip. IP Address of the device.
  • port. Port where wonesys connects.

URI to simulate  WONESYS devices

wonesys://1.1.1.1:27773/?mock=true

  • mock=true query parameter:  specifies the use of a simulator Java class (no networking involved)
  • No labels