3637 Commits

Author SHA1 Message Date
Pier Ventre
f5d7236e14 [ONOS-5070] Adds mirroring functionality.
Changes:
- Adds mirroring behaviour;
- Adds mirroring description;
- Adds mirroring name;
- Implements for Ovsdb the mirroring;
- Adds OvsdbMirror entity;
- Adds constants related to Mirror table;
- Fix one issue related to Mirror table
- Extends OvsdbClientService introducing mirroring;
- Implements mirroring functionality in DefaulOvsdbClient;
- Support for different types of device id

Change-Id: Ie291f49b3c61b7998010f555ae11deb8c021063d
2016-08-31 16:56:50 +00:00
Sho SHIMIZU
2712419ddb Use primitive boolean because of being synchronized already
Change-Id: Ie9d454fe03a92a9f865d45882de5749f55f2f2f9
2016-08-31 07:31:15 -07:00
Sho SHIMIZU
b837cb72cf Use light collection because of being synchronized already
Change-Id: I206e8a392f8bb158a8de42ef0c536e509fd21433
2016-08-31 07:31:14 -07:00
Aaron Kruglikov
b06078c683 Fixes for a hanging issue when creating treemaps and multimaps through the storage parition client.
Change-Id: I3886310bcabbec7499a57f1e91b21e8a36d33e4e
2016-08-30 17:44:59 -07:00
Simon Hunt
c217cb999d Updated topo toolbar to use mojo glyphs and give it a cleaner look.
- Changed color scheme / hover behavior
- Differentiate between regular buttons and toggle buttons (visually)
- (Added temp. placeholders for 'endstation' and 'relatedIntents' glyphs)

Change-Id: I0338b076fe71e58a274542360b2b077c93dd867d
2016-08-30 16:24:47 -07:00
Yuta HIGUCHI
f15065e46b Mark remnants of ConfigProvider deprecated
Change-Id: I018c46a81e50cdaffcc92aadeebb90cdf23d846c
2016-08-30 14:43:57 -07:00
Sho SHIMIZU
2d7c53932d Make FlowOperationsProcessor thread-safe with synchronized modifier
Different threads could call run(), satisfy() and fail() method.
Each of the methods reads/writes multiple fields during the method call.
These method calls need to be synchronized to gurantee to see the
latest value.

Change-Id: Ic252b56e0902170d7e0fdb83f96f0fb2e55ec56b
2016-08-30 14:28:07 -07:00
Sho SHIMIZU
7c9b73ab7d Tighten method visibility
Change-Id: I47d46be0c36bf3ee7e4a9bab7f6dd3dfc4d80256
2016-08-30 14:09:49 -07:00
Sho SHIMIZU
ecfbeb60b7 Read the latest value of lastSink
Multiple threads could access the field, lastSink, then they should read
the latest value of lastSink

Change-Id: I279ed6fa3db357008603cde5cb2c57671e66b33c
2016-08-30 13:34:42 -07:00
Sho SHIMIZU
d21c4ddaee Read the latest value of dispatchFuture
The field, dispatchFuture, is accessed in activate() method and the thread
where Watchdog is running. Then, different threads could access the field
and couldn't read the latest value.

Change-Id: Iceb390bcf3c5711c1dbb59198667138c8a90b036
2016-08-30 13:30:36 -07:00
Sho SHIMIZU
723907835a See the latest value of dispatchLoop
The field, dispatchLoop, is accessed in activate() method and the thread
where Watchdog is running. Then, different threads could access the field
and could miss the latest value.

Change-Id: Id218522f5b318fb3d05833ba57d908a1bf6d2949
2016-08-30 13:29:14 -07:00
Ray Milkey
3032af15c0 Fix javadoc syntax error - @throw -> @throws
Change-Id: I91853be5b1a73d460425221439f011a28fd2c5cd
2016-08-30 13:17:03 -07:00
Victor Silva
df1eeae080 [ONOS-5169] GroupStore: properly add updated buckets
Adding buckets to group was ignoring the addition of groups
with different weights because they had the same treatment
and type. We'll now update such groupbuckets with the desired new
parameters.

Change-Id: I5f102c5fd78912844883c897bd858ee282f3cc12
2016-08-30 19:48:29 +00:00
Ray Milkey
f13feb84e8 Recover from NPE that can sometimes be thrown by Felix
Change-Id: Ib9415df4708dc1265edfdaf4168bd29eb0805614
2016-08-30 18:39:34 +00:00
Aaron Kruglikov
ed88ff683e Adding additional resources for instantiating async consistent treemaps.
Change-Id: I7bfc602ac22eda1844fea2a7b3e3133f83157bf3
2016-08-30 17:58:42 +00:00
Murat Parlakisik
c6759e80bd ONOS-4374 Enable installing flows with hard_timeout
Change-Id: I4e60e93aad44c7e8f8913fa4dd3ed5a2565d7034
2016-08-30 17:46:55 +00:00
Jonathan Hart
38feb6eddc Revert "Fix for ONOS-5032 and ONOS-5034"
This reverts commit 50ad080683317df192a0f7159d9902dc1c403ed2.

Change-Id: Id2f9924a28c18686b4be30200244dbd0c975e90a
2016-08-29 23:16:45 +00:00
Yoonseon Han
feb95f1632 Just a copy from FlowObjectiveAdapter of org.onosproject.sfc.util.
Now, FlowObjectiveAdapter is not exposed to external applications.
So, each App developer has to define own FlowObjectiveService in their test code.

I removed the previous copy in sfc package.
FlowObjectiveAdaptor is renamed into FlowObjectiveServiceAdaptor

Change-Id: I25545669eea3a73deebaf2a6f2c46e2ff2890b34
2016-08-29 19:19:13 +00:00
Deepa Vaddireddy
50ad080683 Fix for ONOS-5032 and ONOS-5034
Change-Id: Ib964252dd05754ce7069a7a82ccb1d1c29bfa978
2016-08-26 03:22:47 -07:00
Ray Milkey
2b6ff4250e Fix ONOS-4976 - buffer underflow from flow backup serialization
Change-Id: I924e53cfd436c38a45d1c9a237553a56acf888ef
2016-08-26 13:11:39 -07:00
yjimmyy
cfcb0535ae Add Oplink attenuation extension and channel power drivers.
Change-Id: I2558595b03cbb6cc58237dc48b8a03e83357fe1f
2016-08-24 22:12:22 +00:00
Thomas Vachuska
d4955ae9e5 Preventing NPEs in stores via notifyDelegate
Change-Id: I1c4b83c6a03b1f69a3ea1329724a7208d47cefa4
2016-08-23 22:19:12 +00:00
Ray Milkey
2f6f907260 Fix NPE when processing an event when the delegate is undefined
Change-Id: I44d6c50db8804ccfda1c8b8800360ee705fb331d
2016-08-23 21:57:53 +00:00
Madan Jampani
884d4436ed Using non-static serializers in Flow Rule Store
Change-Id: Ifacd9ca98d8c6d3bbf03b3b9784234f7eab458a5
2016-08-23 20:09:54 +00:00
Yuta HIGUCHI
ad0c990e6c Evict pipeliner/driver cache only on DEVICE_REMOVE
- step toward runtime driver reconfig

Change-Id: I55a9db9a6c2e54a25ca18bec326f4fb33a013d74
2016-08-23 10:37:32 -07:00
Jayasree Ghosh
d3ff540f36 Fix for ONOS-5152:Encoder for Disjoint Rest API with NPE:onos-1.7
Change-Id: I172e247353f7d70f6d7761e8a6be27f21b3c2684
2016-08-23 04:49:45 +00:00
Yuta HIGUCHI
1fb0a8cfa1 Lazily populate Pipeliner cache
Change-Id: Ibbb9312b47c2c61df9ed15370b46fb07a8c7a16c
2016-08-22 20:05:48 +00:00
Viswanath KSP
22774cd863 Addressing review comments of patch-3
Addressing review comments of patch-2
Fixing javadoc warnings
Pushing changes for onos-5146 - Added 2 new APIs in DeviceService.java to get port specific PortStatistics by specifying Device ID & Port Number. Also implemented the APIs in SimpleDeviceStore etc. This will be a very useful API for app developers who are intersted to query port specific port statistics

Change-Id: I8f3e5a443eb5b50237a679999311b48609e54a44
2016-08-22 20:00:07 +00:00
varunsha
34b306051c Fix ONOS-5091
Change-Id: I11762eb799c1f93536f472807167cdba20a7c8e6
(cherry picked from commit 45f806ccedf844dfc8fe1722eca653f274b83f12)
2016-08-22 18:31:40 +00:00
Pier Ventre
d48320e892 Fix [ONOS-4857] and impement [ONOS-5143]
Change-Id: I7159ff9deaacaf10070e1535f4a80f2f846a5784
2016-08-22 18:07:18 +00:00
Yuta HIGUCHI
b47c9535b4 Revisiting netty configurations
- Revisiting netty configuration based on:
-- http://normanmaurer.me/presentations/2014-facebook-eng-netty/slides.html#11.0
-- http://normanmaurer.me/presentations/2014-facebook-eng-netty/slides.html#14.0

Change-Id: I6fe5586908ce2b7c87fd00c8f9da6cca3d907d10
2016-08-22 18:06:41 +00:00
Madan Jampani
c5a1754f88 ApplicationStore to use Topic instead of AtomicValue for app activation notifications
Change-Id: I25cf6d1744969d0b0dfd0557ec1dd163ad3148d0
2016-08-22 10:26:11 -07:00
Madan Jampani
ecf9971d82 Update TestTopic to confirm to the new Topic API
Change-Id: Ieade9340ac32d50f4e8304f3a347687a77ef49e3
2016-08-22 10:05:20 -07:00
Madan Jampani
03fb8b24ef Topic: Support for passing a executor to subscribe method for invoking the callback
Change-Id: I9db485ee381c61fbfc38aba0c2bd90cb5af171e0
2016-08-22 16:55:40 +00:00
helenyrwu
a1c41154de Distribute failover event with topic
Change-Id: I8629e7e19ebd4a18f95b32ad3ce1eba7ddf4ecc6
2016-08-22 16:11:39 +00:00
Ray Milkey
dbf59f0281 Unit tests to improve API test coverage
Change-Id: I2193b1b29968f2d2b7ba3ddb5947a38343c193c8
2016-08-19 20:01:58 +00:00
Madan Jampani
ae538ff419 ONOS-5101: Ensure app activation order reflects the dependency order
Change-Id: I77e0579436d80643b8262f0ec5ad6efb57936a0b
2016-08-19 12:49:28 -07:00
Yuta HIGUCHI
d08e2e97f1 Binary incompatible serializer changes
- If the field type is fixed and the type is final, Class info can be omitted
- Annotations serializer to use optimization based on the fact Map<String, String> and non-null key/value
- Reduce number of Map copy required for ImmutableMap serializer
- Reduce number of array copy behind Immutable{List, Set} serializer

Change-Id: Ie467a943a33fbfb43b289b8b71ad91ee5890bfb0
2016-08-19 17:26:57 +00:00
Yuta HIGUCHI
a5cda89971 Reduce number of Map lookups
Change-Id: I6ea71c120e9143dabdb44dfd86b78f570647eb4b
2016-08-19 16:51:24 +00:00
Jonathan Hart
6f4d586421 Disable NettyMessagingManager test which is failing sporadically
Change-Id: Iffb518c80a5b06354c8966c621cc1190fb104499
2016-08-19 16:47:36 +00:00
Yuta HIGUCHI
7c298f3e9e Fix javadoc
Change-Id: I19b57879ccf76c085363b6be53dd0f838f5673bd
2016-08-18 14:32:32 -07:00
Yuta HIGUCHI
f24b88c87e Fix map type mismatch
Change-Id: Iadda7707b4ab4f01b5026d314f25a10748d94915
2016-08-18 13:54:46 -07:00
Madan Jampani
13f6515c70 Distributed topic primitive
Change-Id: Ia3ccd84c33075f297d7e6b9bc205efe92aec9bea
2016-08-18 20:46:55 +00:00
Yuta HIGUCHI
c012dda796 Workaround for NoClassDefFound issue in Netty.
SimpleChannelInboundHandler generates `message` instance check code on the fly,
using JavaAssist. Which was not working, when a new Connection was created on the thread
outside of NettyMessagingManager bundle, which did not have access to netty classes.
- Implemented equivalent for SimpleChannelInboundHandler<InternaleMessage>
  without specifying type parameter, avoiding on the fly code generation.

Other changes:
- Add a method in IpAddress to return InetAddress instance.

Change-Id: Ie97294a5650683457b9395e773269c5232d8e602
2016-08-18 19:06:00 +00:00
helenyrwu
89470f1d99 Group event indicating failover of previously used live port
Change-Id: I32749b38d5e4fab93fa97bbf6587bd0dc91db88c
2016-08-18 16:56:47 +00:00
Yuta HIGUCHI
0de4ba9401 Remove duplicate version specifications
Change-Id: I0fe6027e66815ab2e7db5e090dd5aea39b3c36e1
2016-08-18 15:59:50 +00:00
Sho SHIMIZU
07e31cf54d Remove public from definition in interface
Change-Id: I7554f04a230a7a5cc85dda4cd6b41171a523fd80
2016-08-17 16:37:19 +00:00
Sho SHIMIZU
695bac68ec Check if the logger is configured as trace when logging as trace
Change-Id: I58738913b18198fe8a01b313e776e20c6a21f1d0
2016-08-17 16:35:32 +00:00
Simon Hunt
ba8c80501f Replace comparator definitions with their Lambda equivalents.
Change-Id: Ib626e086f78aa950be20cb84e56a3769517bac0a
2016-08-17 16:35:05 +00:00
helenyrwu
e6aaa3376e Filters intent list before installation
Change-Id: I6f73ff65ab7e31fac8e9a6f28f20f0119e24793d
2016-08-17 16:33:07 +00:00