411 Commits

Author SHA1 Message Date
Ray Milkey
aeb0079719 Refactoring of provider buck builds.
Change-Id: I9b5e2566b83c13a8b7b086005a08a8182305ffdb
2016-04-25 17:03:49 +00:00
Charles Chan
b713dded6c ONOS-4395 Fix NPE in OpenFlowDeviceProvider
Change-Id: I88c3671fa490cf978485267a104bf2bcc0f57e58
2016-04-24 21:24:07 -07:00
Charles Chan
4211baa138 Fix NPE in FlowEntryBuilder
Change-Id: I1675ff7d6604ce289532f6f6e8bf9ebc40935512
2016-04-21 04:12:54 +00:00
HIGUCHI Yuta
d9e0105d79 log uncaught Exception
- Use execute instead of submit so that uncaught Exception will
  be dealt and logged by ExecutorService's handler.
- Use component's own logger

Change-Id: I761264aea00748980929b5048e111756776dd2f6
2016-04-19 17:10:00 +00:00
alshabib
44852fbaed fix for erroneous unsupported messages for devices with extensions.
Change-Id: I63264cd360f260daa4b8a394c9339f1f8c7a1267
2016-04-18 17:13:08 +00:00
Ray Milkey
7abe50bafd Fix unhandled exception during shutdown due to provider service being unavailable
Change-Id: I891b2d3c64576fe7cace80ff7907551b46054db6
2016-04-13 19:22:21 +00:00
Madan Jampani
7a3ba96a35 Turning adaptive flow sampling off by default
Change-Id: Ia1501e6b904c8f16656d650761630d60c1e712c3
2016-04-11 17:11:14 +00:00
Jian Li
55cbd5c385 Notify all metric reporters when metric registry has been changed
With existing implementation, it is difficult to notify the
metric reports on metric registry changes. With this commit,
we can spontaneously notify all reporters about the metric
registry changes, so that newly added metrics can be automatically
reported to third party monitoring system.

Change-Id: I1273194553900f6bb03e2ef6bb1b54838af1da00
2016-04-11 17:08:19 +00:00
Brian O'Connor
5ab426f9ff Updating copyrights
New format: 'Copyright .year-present Open Networking Laboratory'

Change-Id: I1a9e58b355b775e75245ad875a2d7a4df3f03098
2016-04-09 01:20:21 -07:00
Jian Li
a371e7ad25 Resolve NPE during control message aggregation
Change-Id: I1945a3ec23fbe6c54af53845b89f489fa9857605
2016-04-08 01:00:45 +00:00
Brian O'Connor
1f1659868c Generate onos_app rule
There are three genrules:
 1. Build features.xml
 2. Build app.xml
 3. Generate app.oar

Change-Id: I6adfd47fadf40ad2440998071a01894458629ac6
2016-04-07 15:33:32 +00:00
Ray Milkey
7c25182db9 Fix buck tests
Change-Id: I3d681e6e5c1d3e98c87ccb3d20a619b216ae6133
2016-04-06 19:04:52 -07:00
Brian O'Connor
b86c920526 Updating Buck files to build OSGi jars
- Using osgi_jar for all modules except apps
- Adding target for installation of core modules to .m2 repo

Change-Id: I65d9e3a9567918e275191724842d7d9b1f485128
2016-04-06 18:17:37 +00:00
Jian Li
ffef500b4a Remove redundant extensionTreatmentInterpreter support check
Change-Id: I1bcaefcdf8f97a7bed4916734142cabc04f566e4
2016-04-06 17:38:49 +00:00
Brian O'Connor
85f28d0a0a Updating test sources in several BUCK files
Change-Id: I17b83cb978f7b8fc1d31a1e96bec59a077dbdfbb
2016-04-06 16:57:45 +00:00
Jian Li
daf55eadaf Add resource name into MetricsDatabase, handle exception gracefully
Change-Id: Icf19965a0fcbfd9696c42b12c32441fd3b161734
2016-04-06 01:57:56 +00:00
Ray Milkey
ada9e2d9de Don't crash if a message is processed after the provider service goes down
Change-Id: I098cebaffdd8d80bca640fe29b746c91b75689ac
2016-04-06 00:01:24 +00:00
Brian O'Connor
284fb69b0d Updating BUCK files to match pom.xml changes
Change-Id: I7fb4bf2acdc2a8933f1037fdbdb6b6ca00ffff1e
2016-04-04 19:28:47 -07:00
Brian O'Connor
01ac79ec64 Updating onos-of-api
We not longer shade openflowj in onos-of-api, instead we used an
OGSi-compatible version of it.

Change-Id: If083c355f441783de3790d3e87ca824f386cccd8
2016-04-05 02:27:59 +00:00
Ray Milkey
0ae473d4fc STC fixes
- NPE when a switch has already been removed and an attempt is made
  to access stats on the switch.

- NPE in group provider if the system is in the process of shutting down.

- Lower ERROR to WARN when switch resources are not available.

Change-Id: I5b90ff328b19c2d661fde3a24e90614999c4c900
2016-04-04 21:37:33 +00:00
Jian Li
7ceb7b024a Bugfix: filter out msg type other than pkt-in, flow-mod, stat-rep
CPMan only deals with PACKET-IN, FLOW-MOD, STATS-REPLY types for
incoming control messages. With other message type, it throws
NPE. This commit tries to fix this problem.

Change-Id: Iedd264030e404b14d15e33907e082c3d73608baa
2016-04-04 12:42:40 -07:00
Thomas Vachuska
95caba3459 Fixing OF flow and group provider run-time dependency.
Change-Id: I25fa3c72ab01500c39fc90198abc4c383a9512a2
2016-04-04 10:42:05 -07:00
Jian Li
a0d9a17352 Remove duplicated treatment building from GroupBucketEntryBuilder
Change-Id: I0f956dd11d990209eb3dc00c866dd535843506ea
2016-04-04 16:51:39 +00:00
Jian Li
d416388566 [ONOS-4245] Support resubmit experimenter action for nicira driver
Change-Id: I7beac62d5c23fb8e2fe7d7d23947c55fbb849064
2016-03-31 17:24:25 +00:00
Saurav Das
a2d37500d9 CORD-613 Adding ability to administratively enable or disable a port via CLI.
Currently uses the OpenFlow device provider to change portState.
Also fixes a bug in PortNumberCompleter.
Adds completion options to portstats for deviceId and portNumber.

Change-Id: Idcce775fe8bc5484fdd0e630bcb5026b85125478
2016-03-30 21:46:43 +00:00
Ray Milkey
f80bbb22c2 Initial BUCK build
Change-Id: I64e8a979301989062f4545a4841b06c15a372049
2016-03-29 21:39:14 +00:00
Jian Li
a1d7f27d7e [ONOS-4142] Restart failed tasks when using SharedScheduledExecutor
With current SharedScheduledExecutor, all failed tasks are simply
suspended in background. This commit enables tasks that are
executed using SharedScheduledExecutor to have the ability to
be restarted even if the tasks are encountered failures.

Change-Id: Ibe00c7f5920b8ae3fe5a433a6f9ec08684d88f36
2016-03-29 00:41:09 +00:00
Sho SHIMIZU
f60e45f18b Remove L0SubType.LAMBDA which now gets unnecessary
It's because IndexedLambda the type heavily depends on is removed

Change-Id: Ie549255353a2d605f528decfefd0c11f9728d7d8
2016-03-28 18:16:59 +00:00
Sho SHIMIZU
cc137a9058 Remove method Lambda.indexedLambda() deprecated in Emu
Change-Id: Ie5a50d9d3df7b4af7af2d42edef3a63d622a721c
2016-03-24 17:10:33 -07:00
Sho SHIMIZU
57f2efd60e Remove Instruction.DROP deprecated in Emu
Change-Id: Ida5a5f489815dd1e972f6bfc8646e1e1bf0e8edd
2016-03-24 23:50:22 +00:00
Saurav Das
8be4e3a4cb In this commit:
Removing dependence on hashing for unique groupkeys in ofdpa driver.
    Group-store no longer removes groups from store if a group-operation fails due to GROUP_EXISTS.
    Group-store also checks for unique group-id when given by app.
    Group-provider now logs warning before making call to core.

Change-Id: I4a1dcb887cb74cd6e245df0c82c90a50d8f3898a
2016-03-22 18:26:04 +00:00
Brian O'Connor
955c316b54 Starting snapshot 1.6.0-SNAPSHOT 2016-03-10 15:27:19 -08:00
Brian O'Connor
55b4d80176 Tagging 1.5.0 (Falcon) 2016-03-10 15:24:41 -08:00
Madan Jampani
23696428f8 Starting snapshot 1.5.0-SNAPSHOT 2016-03-09 14:02:04 -08:00
Madan Jampani
b7a5420285 Tagging 1.5.0-rc3 2016-03-09 13:47:32 -08:00
Simon Hunt
877ee987d8 Added title to Application View table and details panel.
Change-Id: Id225c3b315a0fd96dfad1e44138551f131bc54df
2016-03-09 10:53:24 -08:00
Jian Li
fd46e1d293 Refine application title and category in app.xml and pom.xml
- Remove ONOS keyword from application title
- Capitalize each keyword in application title
- Make it consistent to use App, Provider and Driver in
  application title
- Add right category name for each application
- Add missing application title and category
- Make application category comment more descriptive

Change-Id: Ib886b4a4293c38bd546a4107b20569f1bd7031a7
2016-03-08 18:41:50 +00:00
Jian Li
2b746f4cbd Add missing application titles in app.xml with pom.xml clean up
Change-Id: I543572d696f30f2ceebd39d9c6c33be55f5da38d
2016-03-08 06:06:32 +00:00
Saurav Das
0fd79d91ea Group handling changes:
Edge case fix in group store where extraneous group buckets are updated so the group can be reused
      Bug fix for broadcast group in OF-DPA as there can only be one l2flood group per vlan
      Group operation failure codes are now reported by the provider to the core
      Group ids are displayed in hex in a couple of places

Change-Id: Ib48d21aa96e0400b77999a1b45839c28f678e524
2016-03-08 02:12:14 +00:00
Simon Hunt
afae2f71fc Apps-- added onos.app.title property to applications.
Change-Id: Id845390ee0bee5b871c0ce9f47b2ce98fbcf26b9
2016-03-07 19:30:59 +00:00
Thomas Vachuska
5d8994ffce Starting snapshot 1.5.0-SNAPSHOT 2016-03-03 17:13:26 -08:00
Thomas Vachuska
40d5255ca9 Tagging 1.5.0-rc2 2016-03-03 17:08:36 -08:00
Jonathan Hart
e4e74f09ed Use DeviceId in FlowEntryBuilder to avoid creating deviceId many times per
flow entry build.

Change-Id: I89e90426e1b94b8828b6f83a6dbfc33f4e7cf259
2016-03-03 12:58:47 -08:00
Jian Li
66f1526cf2 Add SharedScheduledExecutors for ease of using ScheduledExecutors
- LogScheduledExecutorService -> SharedScheduledExecutorService
- Add a utility classs for SharedScheduledExecutorService
- Add unit test for SharedScheduledExecutors
- Revise the control message provider to use
  SharedScheduledExecutorService

Change-Id: Ia4dea245543b4751e6edcce1aaab4991d897cc77
2016-03-03 20:29:15 +00:00
Jonathan Hart
84f4f31cce Cleaned up NewAdaptiveFlowStatsCollector logs to prevent excessive
object creation and string concatenation.

Dropped per-flow-stats-request logs to TRACE level.

Change-Id: I2dd55030bd1faa00d6fbfef74c7da1debb7f1d7d
2016-03-03 19:34:43 +00:00
Jian Li
1b4cb33aaf A new ScheduledExecutorService that captures and logs exception
The default ScheduledExecutorService does not provide the
capability to capture and log the exception during executing
scheduleAtFixedRate and scheduleWithFixedDelay methods. This
makes it difficult to debug the program when the scheudled
tasks are failed for some reasons.
A new ScheduledExecutorService allows the developers to capture
and log any exceptions if the tasks are failed during execution.

Change-Id: I549ba0f479b9e302f0e668482873b3032dfea147
2016-03-03 06:16:23 +00:00
Simon Hunt
f0c968df57 Added onos.app.url for openflow provider
- temporary choice, so we have something interesting for ONS demo.
 - it would be better if openflow provider had a wiki page.

Change-Id: I8c9216782f9b8c5de0a07bb7985b988b86320203
2016-03-03 04:07:08 +00:00
Marc De Leenheer
c662d328f2 SNMP based device and flow rule provider for Lumentum SDN ROADMs.
ONOS-3690 and ONOS-3842

Change-Id: If00ba70fa26e01924c225596c52a5ffb24987cc2
2016-03-03 01:01:31 +00:00
Ray Milkey
125572b666 Remove methods deprecated in Drake from L2ModificationInstruction API
Change-Id: I30dbc2e9c590d4bc2bc672e13581dbd1c3b3561b
2016-02-23 08:51:36 -08:00
Ray Milkey
84d5a29b29 Remove methods deprecated in Drake from TrafficTreatment API
Change-Id: I9de9331611c79ae60195c738ee1d3912f4081e3d
2016-02-23 00:33:51 +00:00