commit | e86d35fb5612648ee161baa563764e8684edca5b | [log] [tgz] |
---|---|---|
author | Harold Huang <baymaxhuang@gmail.com> | Wed Jun 14 15:15:18 2017 +0800 |
committer | Yoonseon Han <yoonseon@onlab.us> | Fri Jun 16 05:14:22 2017 +0000 |
tree | 632e67bd40fc536187d109d6efe73dae45713b2e | |
parent | 9986c0714a632544691ef91d23f4a9fdb3308c6c [diff] |
[ONOS-6627] Revise adding and removing packet processor for virtual network At present, we have to use requestPackets to trigger adding packet processor for virtual network and use cancelPackets to trigger removing the packet process for the virtual network. But if we call cancelPackets more then one time in the deactivate() method when the application is deactivated, if will throw a NullPoint exception. Furthermore, if a user does not requestPackets() in the application, the packet processor will never be added. It may be a confusing trouble for a tenant user. As a result, I think the packet processor should be created when the virtual network is added and be removed when no virtual network exists. Soultions: Listen to the network event to add and remove packet processor for virtual network. Change-Id: I583d453219bef2f271b4a1e96f9869a28b4f0250
ONOS is a new SDN network operating system designed for high availability, performance, scale-out.