Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
ONOS Rabbit MQ App
The implementation of rabbitmq can be found at $ONOS_ROOT/app/rabbitmqRabbit MQ Server (External to ONOS)
The latest release of RabbitMQ server can be available at https://www.rabbitmq.com/download.html
Please refer the server documentation at administrator's guide
You can access the user-management withrabbitmqctland 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
Please refer the /resources/rabbitmq.properties file for sample mq properties.
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 command :- java -jar MessageConsumer-jar-with-dependencies.jar
message-consumer-app.tar.gz
...
For example device event message structure as below
...
| Code Block |
|---|
{
"switch_id": "of:0000000000000001",
"infra_device_name": "SWITCH",
"event_type": "DEVICE_EVENT",
"sub_event_type": "DEVICE_UPDATED",
"hwVersion": "Open vSwitch",
"mfr": "Nicira, Inc.",
"serial": "None",
"sw_version": "2.5.0",
"chassis_id": 1,
"occurrence_time": "Tue Aug 23 15:40:59 IST 2016"
} |
...