Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

        To configure Rabbit MQ event notification from ONOS the following components needs to be configured:

    • ONOS Rabbit MQ App

Before proceeding to the following steps, see “wiki: Installing and Running ONOS” and “” for make it ready to run ONOS.

  •  Build package

    Code Block
    $ cd ~/onos/apps/rabbitmq
    $ mci
    • Run ONOS

      Code Block
      $ ok clean
    • Install bundle

      Code Block
      $ export OC1=<ONOS running ipAddress>
      $ onos-app $OC1 install ~/apps/rabbitmq/target/onos-app-rabbitmq-1.7.0-SNAPSHOT.oar
    • Activate rabbitmq app

      Code Block
      $ app activate org.onosproject.rabbitmq  
    • Rabbit MQ Server (External to ONOS)

      1. The latest release of RabbitMQ server can be available at https://www.rabbitmq.com/download.html
      2. Please refer the server documentation at administrator's guide
      3. You can access the user-management with rabbitmqctl and use the command:

      Code Block
      rabbitmqctl add_vhost <vhost>
      rabbitmqctl add_user <username> <password>
      rabbitmqctl set_permissions -p <vhost> <username> ".*" ".*" ".*"
      rabbitmqctl set_user_tags <username> management

      4. Please refer the /resources/rabbitmq.properties file for sample mq properties.

    • ONOS Rabbit MQ App

Before proceeding to the following steps, see “wiki: Installing and Running ONOS” and “” for make it ready to run ONOS.

  •  Build package

    Code Block
    $ cd ~/onos/apps/rabbitmq
    $ mci
    • Run ONOS

      Code Block
      $ ok clean
    • Install bundle

      Code Block
      $ export OC1=<ONOS running ipAddress>
      $ onos-app $OC1 install ~/apps/rabbitmq/target/onos-app-rabbitmq-1.7.0-SNAPSHOT.oar
    • Activate rabbitmq app

      Code Block
      $ app activate org.onosproject.rabbitmq  

    • Rabbit MQ Client (External to ONOS)

      Please follow below steps to setup MQ consumer application.
      1. Extract below attached message-consumer-app.tar.gz
      2. Refer MQConstants.java for sample MQ server consumer configuration.
      3. Build and generate the jar using command :- mvn clean install
      4. Run the consumer application using command :- java -jar MessageConsumer-jar-with-dependencies.jar
      5. The consumed messages from the MQ server will be displayed on console.
      message-consumer-app.tar.gz

...