265 Commits

Author SHA1 Message Date
Priyanka B
c1e4e4c67a [ONOS] cherry picked from 1.6, bandwidth, CR and resilency fix
Change-Id: Ifd7bf886d2725db1f5e2f7a1eac739d9a446f868
2016-07-05 13:00:55 +05:30
Priyanka B
7e48cb25ed cherry pick of [ONOS-4794] [ONOS-4793] [ONOS-4669]TE_COST and bandwidth information on update flow was not correct
Change-Id: I66090e6da1307c8530e89c92f2dcbcdf12e18220
2016-07-04 02:52:38 +00:00
helenyrwu
0407c641ef NetconfAlarmProvider alerts core about notifications given subscription.
Change-Id: I7561ba680eb8bac33a8543d6aa1bccf6732e95db
2016-06-29 22:00:16 +00:00
Carmelo Cascone
728b1cd9cd Fixed stack overflow bug when using BMv2 table entry service
Similarly to ONOS-4206, due to a bug in kryo, a non-registered class
(Date in this case) was causing such a problem.

Change-Id: I993f4b41d4deaa617065b29086a49d834832eca8
2016-06-29 21:03:38 +00:00
Carmelo Cascone
eeeabecdf1 More readable toString for BMv2 extension selectors and treatments
Also, added a test for serialization

Change-Id: I77e80fa7597b552c71e80c9d39d03549e0325778
2016-06-29 20:52:21 +00:00
Carmelo Cascone
62f1e1e089 BMv2 performance improvements
- Implemented a non-blocking Thrift server for the controller (before it
	was limiting the number of active connections)
- Improved configuration swap times by forcing it
- Minor bugfixes and polishing
- Update onos-bmv2 repo URL in thrift-api pom.xml

Change-Id: I13b61f5aa22558c395768e3b445f302b20c5bd33
2016-06-29 16:25:47 +00:00
Carmelo Cascone
0ec92f1977 Implemented convenient builders of BMv2 extension selectors and
treatments. 

Match and action parameters can now be built from primitive data types
(short, int, long or byte[]) which are then casted automatically
according to a given BMv2 configuration. Also, simplified demo
applications code / structure.

Change-Id: Ia5bebf62301c73c0b20cf6a4ddfb74165889106f
2016-06-28 23:22:29 +00:00
Carmelo Cascone
6256d01c1c Fixed deadlock in BMv2 device context service
Also minor refactoring of synchronized blocks.

Change-Id: Ifea25208ca4f1839bb3f21ba5b5ecfb2441baa35
2016-06-28 23:04:51 +00:00
Carmelo Cascone
ee4cd7e406 Improved consistency for BMv2 flow rules handling
Change-Id: I3a4798af3f35f135e8162385a1bf7fc059028307
2016-06-28 22:41:23 +00:00
Carmelo Cascone
9e39e31c56 Polished BMv2 protocol module
- Improved and fixed typos in javadocs
- Added missing beta API annotations
- Refactored the default interpreter implementation

Change-Id: Ibfb21d31415d8f25cc67307f8bea2871951c9a8f
2016-06-28 22:40:42 +00:00
Carmelo Cascone
c18e82cf10 Simplified Bmv2 device context service and context handling in demo apps
Change-Id: I2a13ed673902d0616732d43c841f50b1ad38cd4c
2016-06-28 19:56:35 +00:00
Carmelo Cascone
3f85684f42 Added caching for bmv2 thrift sources
No need for internet connectivity after the first maven build.
Also switched to rawgit.com hosting (no throttling of requests). Minor
polishing of the patch script and module structure.

Change-Id: I065a62bddc779c698f4b76865525bf4d973ad2ab
2016-06-28 19:54:50 +00:00
sunish vk
7bdf4d4daa ISIS protocol manual merge from 1.6 due to cherry pick merge conflict
Change-Id: I6c3abf6a83ddaeba76293dc7864fcec88e9b4e7e
2016-06-24 14:28:17 +05:30
Avantika-Huawei
3c2d3eba52 [ONOS-4722] cherry-picked GoldenEye:Fix exception on learning unknown PCE-initiated LSP from PCC
Change-Id: I8abc003aeb187f18e51de533f0c51e265dfd8661
2016-06-22 07:12:13 +00:00
Avantika-Huawei
f849aaba05 Cherry picks from 1.6 branch
Change-Id: I596247425802fc759463bcf77ea3c885f3161581
2016-06-22 03:07:03 +00:00
Akihiro Yamanouchi
5e5d4df902 [ONOS-4654] NETCONF function for FUJITSU OLT #1
Change-Id: I3565d127252de732d249ed5dd919874d6438c2fa
2016-06-22 00:52:25 +00:00
Andrea Campanella
c385126fcd Adding post method with String return type
Change-Id: I4483ad2494ccaca08f7460de212e432d46cba710
2016-06-21 16:19:31 +00:00
Priyanka B
dc93bee22f [ONOS] Capability defect fix and component activation fix
Change-Id: Ie7336d1b445a14820a948e4b20c7ad2d6478682d
(cherry picked from commit b19d0349a605d82f516e6b98ae93f38160ff813c)
2016-06-21 13:30:17 +00:00
Hyunsun Moon
1251e19d7a Refactored bridge config to take bridge description
OVSDB provides lots of bridge configuration options but the exisisting
bridge config implementation only allows some of them by overloading
addBridge method. Also some of the bridge properties were set static
and unable to configure. This patch fixes these limitations.

- Added some bridge config options to the bridge description
- Deprecated multiple overloaded addBridge methods
- Some code clean up

Change-Id: Ibc828177b210bd4b215aea0b63cc359776c13e03
2016-06-16 07:52:07 +00:00
Brian O'Connor
1b2aea88c0 Removing gratuitous relativePath from pom.xmls
The default value for relativePath is: ../pom.xml

Change-Id: I1f5e5e6bfa1e91fcddae4f8cb8ab0c00c276e6b0
2016-06-16 07:05:31 +00:00
Priyanka B
4c3cef0159 [ONOS] RSVP defect fix in master
Change-Id: I090d389f65a457cf5756ce73fe0c37468b46db5b
2016-06-16 05:17:34 +00:00
Carmelo Cascone
25f1888414 Various bmv2 changes to reflect onos-bmv2 v1.0.0 (onos1.6 cherry-pick)
Most notably:
- Updated repo URL and commit ID to official onos-bmv2 fork
- Removed ugly string-based table dump parser, now there's
	a proper API to retrieve table entries (added support in
	Bmv2DeviceAgent)
- Removed unused arguments in packet-in API

Change-Id: I5ff0948eb8fec5283a085913496c187e7b278d8d
2016-06-16 01:30:12 +00:00
Carmelo Cascone
0831efb0b5 Various changes in BMv2 driver and provider modules (onos1.6 cherry-pick)
Driver notable changes:
- Implemented new behaviors, removed deprecated ones
- Removed flow rule translator classes (now under protocol module)
- Improved FlowRuleProgrammable: now it uses BMv2TableEntryService
	to lookup/bind flow rules with BMv2 table entries, retrieves flow
	statistics, better exception handling when adding/replacing/removing
	table entries.
- Improved PacketProgrammable: better exception handling and logging

Provider notable changes:
- Bmv2DeviceProvider: detects and notifies device configuration
	changes and reboots to Bmv2DeviceContextService, added support for
	periodic polling of port statistics
- Bmv2PacketProvider: implemented workaround for OutboundPackets with
	flood treatment

Change-Id: I79b756b533d4afb6b70025a137b2e811fd42a4e8
2016-06-16 00:48:51 +00:00
Carmelo Cascone
17fc9e41df Major refactoring of the BMv2 protocol module (onos1.6 cherry-pick)
- Created 3 separate sub-modules: API (doesn't depend on
    Thrift), CTL (depends on Thrift), THRIFT-API (to generate Thrift
    sources)
- Implemented 2 new services (for device configuration swapping and
    table entry management) needed to distribute BMv2-specific state
    among ONOS instances.
- Implemented a BMv2 controller (previously other modules where
    using separately a Thrift client and a server)
- Added a default BMv2 JSON configuration (default.json) and interpreter
    to be used for devices that connect for the first time to ONOS.
    This allows for basic services to work (i.e. LLDP link discovery,
    ARP proxy. etc.).
- Changed behavior of the flow rule translator and extension selector,
    now it allows extension to specify only some of the match parameters
    (before extension selectors were expected to describe the whole
    match key, i.e. all fields)
- Various renaming to better represent the API
- Various java doc fixes / improvements

Change-Id: Ida4b5e546b0def97c3552a6c05f7bce76fd32c28
2016-06-16 00:47:42 +00:00
Yuta HIGUCHI
839b6edf50 Fixing file permissions
- removing executable bit from .java files

Change-Id: I7e993372e1edf942fefb5aaea2e302b3b2baebd9
2016-06-15 02:22:16 +00:00
Avantika-Huawei
fc10dca2dc [ONOS-4687] GoldenEye - Label map download issues.
Change-Id: I5b56ccc6b8bad3c585f4d33ddd6d9094751c8797
2016-06-10 16:13:55 +05:30
Priyanka B
cdf9b10912 [ONOS-4671]PCECC defect fix , bgp pcep provider having same scheme problem
Change-Id: Ibfb18cfa79ec04ec2a62b2139d28b9c7b03d0a07
2016-06-07 15:22:17 +00:00
Andreas Papazois
2e557be44d [ONOS-4662] Removing "ERROR" string from error netconf replies.
Change-Id: I7937e4140d5997dd61d70cc13ea933be3381cbe4
2016-06-06 16:08:14 +00:00
Priyanka B
19c0873384 [ONOS-4171] Proper Router ID format.
Change-Id: I97c714792e56cc92d761d1d7e85baa1ca8e78893
2016-06-06 02:58:10 +00:00
Avantika-Huawei
3524d85a34 [ONOS-4663] [ONOS-4664] ST defect fixes in session establishment/sync
Change-Id: I0bdb4ad08295fe30c488e9170923847112fab647
2016-06-05 14:22:52 +00:00
Priyanka B
259847d20b [ONOS-4171] Merge PCEP and BGP providers into common BGPCEP provider.
Change-Id: I13c367313c372d4b3f76b942b6c147244bf683ce
2016-06-03 17:32:37 +00:00
Avantika-Huawei
fe44ea6f47 [ONOS-4166] Store device capapbilities using network config
Change-Id: Ib085c516bec0ecf9845e009eca090aad9302fbb0
2016-06-03 00:58:24 +00:00
HIGUCHI Yuta
5b4b6c6010 Remove duplicate test
- copy exist in src/test/java/org/onosproject/bgpio/types/attr/

Change-Id: I25cec163e5493b509281500df7d7f80cd1c2aee1
2016-05-31 03:11:32 +00:00
Priyanka B
658aa6981e [ONOS-4166] Add the capabilities for links and devices in the resource manager. Also update the resource information from BGP-LS update.
Change-Id: I3ac50941c2841c104393fc543107496bffe92bbc
2016-05-29 07:46:58 +00:00
Avantika-Huawei
d1e36bd01e [ONOS-4170] LSP-DB sync
Change-Id: Icda3afd9cca8d1fb8c58b44da6bc26064b300388
2016-05-27 19:44:01 +05:30
Shashikanth VH
e38c21e21e BGP routepolicy distribution bug fixes.
Change-Id: I2176e3872391658263d6817ac8850a3390de00de
2016-05-27 03:43:49 +00:00
Shashikanth VH
83f77e46eb BGP non root user port issue fix.
Change-Id: Ia2de9425807898f4e1e8c04f81475f77b5320c93
2016-05-26 15:07:07 +00:00
Priyanka B
413fbe86d1 [ONOS-4167] Identify the impacted tunnels based on network events, notify to PCE app and trigger MBB flow.
Change-Id: I1766f4afbc0ee2f4c05c75cf788c91f9df8aaa9a
2016-05-26 06:36:02 +00:00
Priyanka B
94395bf02c [ONOS] PCEP provider changes, added node listeners to topology provider
Change-Id: I98bc6445ee78a8f0bf53f897f0a25f678ec7fc99
2016-05-25 08:48:03 +00:00
Jonathan Hart
8a39361937 Removed orphaned Java file that is no longer built or used
Change-Id: Ib9bfbd7666233f1debfc3673ca568b7ca55fe159
2016-05-24 16:33:16 +00:00
Brian O'Connor
e642f7cf7b Bumping version to 1.7.0-SNAPSHOT
Change-Id: Id105bf08ecbdac6d4e214ae035b4220aea90f29f
2016-05-23 18:35:29 -07:00
Mahesh Raju-Huawei
e853602a41 [Code Review] PCEP Report message min length should be 18 & PCE web java doc
Change-Id: I62046aeed2e75b666d85dfedbc7b1c1ba9ad9570
2016-05-18 21:02:09 +00:00
Bob zhou
e9795fdc97 [ONOS-4426] [ONOS-4511] [ONOS-4502] Upgrade Vtn Module when access same network segment.
Change-Id: I3afe6b36a44f0eedd642eeadfc23fc3233e7621e
2016-05-17 16:18:47 +00:00
Avantika-Huawei
7c14e664d4 [ONOS-4170] Label Db sync
Change-Id: I7322d962551e3c5a046b64884ebc7a2f15ee0cd3
2016-05-17 03:56:54 +00:00
Avantika-Huawei
7f7376a6ec [ONOS-4170] PCEP provider changes for LSPDB sync
Change-Id: I9229fec9d97dd46343cc809e33c92b9722ab7ed3
2016-05-14 06:28:07 +00:00
Carmelo Cascone
2c72ac7f04 Fixed race condition in bmv2 SafeThriftClient
This was due to the fact that multiple clients were instantiated over
the same tranposrt. Now SafeThriftClient locks over the transport.
Also fixed a bug where some exceptions where uncaught in
SafeThriftClient.

Change-Id: I841ef64e64c28fc78016a0e0dc33e59052cd983e
2016-05-12 12:33:20 -07:00
Carmelo Cascone
f8cf288d75 Added ability to poll flow counters in BMv2
Also fixed few minor things here and there.

Change-Id: Ib5e6a92de46870f52510cd6fad0cef8da022bb62
2016-05-12 12:24:02 -07:00
sunish vk
c3824e8f18 ONOS-4505: Bug Fixes
Change-Id: I190b4e6b950381eef8d6fba1e3ac345ea6854e40
2016-05-11 17:13:26 +00:00
Carmelo Cascone
2bf44a41a3 Added dump of table entry ids in bmv2 protocol
Change-Id: I54534cfb2c6188c922b36a2f8eb8e5c0851bc681
2016-05-10 17:09:51 +00:00
Carmelo Cascone
b57a134cf8 Added methods to Bmv2ThriftClient to dump the device JSON config
Change-Id: I8ad334d3030f2754f9361731e4c53d446efcb663
2016-05-10 16:49:12 +00:00