391 Commits

Author SHA1 Message Date
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
Saurav Das
9d6c86bec6 Adding eth masking in match
Change-Id: I95e0ee66b1c6c139de7672f9bc04871fd0ead6d7
2016-02-19 19:25:34 +00:00
Thomas Vachuska
708d3031de Cleaning up javadocs.
Change-Id: I67a0600fc80f9d7b0859f2e0e7634579cab6cfbf
2016-02-18 19:41:42 +00:00
Yafit Hadar
4cc65f7583 LINC-OE - Flows are stay in PENDING ADD STATE[bug 3823]
Change-Id: Ia821ce1259a36ac4afdfa1b1cd34e8f07c81790e
2016-02-15 21:04:26 +00:00
Jian Li
7772615948 Remove incoming and outgoing OF message logging from device provider
The OpenFlow incoming and outgoing message logging feature has
been implemented in a separated message provider under openflow
provider. So this WIP feature should be removed from  device
provider.

Change-Id: I5b974c96688a13ea4ee7af309f9522245f61e413
2016-02-13 00:38:20 +00:00
Jian Li
72b9b129a5 [ONOS-3535] Accumulate control message stats using monitor service
- Augment the control message class to have device id
- Initial implementation of accumulating control message stats
- Add more adpator for unit test
- Change Collection<ControlMessage> to Set<ControlMessage>
- Fix the arithmatic exception
- Fix some javadoc warnings

Change-Id: I2abaf0d91edca5419b26f1c5a69246bcdb9201bf
2016-02-12 21:34:21 +00:00
Sithara Punnassery
81afbf1ceb ONOS-420 Openflow trigger probe test
Change-Id: Ie3c5f89ea76a4d57ba94348a85af2cf57222bd3a
2016-02-12 02:01:57 +00:00
Jian Li
01a616726b Define a new control message to control metric type mapper
Change-Id: Id5b365753a3a5abc3a864c4350e427336ee69448
2016-02-11 23:52:42 +00:00
Jian Li
7d9d4399e8 Bug fix: make sure that divisor is non-zero value
Change-Id: I7214ebf552ba60db149db2b4edbb90f59d3bdd16
2016-02-11 20:16:41 +00:00
Jian Li
1446aef8a5 Add dependency between onos-app-cpman and onos-of-provider-message
Change-Id: I428d9a046086d86f037d481468c67c8875b6ec5f
2016-02-11 20:16:40 +00:00
Jian Li
1d13c261c3 [ONOS-3504] Initial implementation of control message aggregation
This commit implements control message collection feature in
OpenFlow message provider.

Change-Id: I2a3ed2e5edbe1f39b503bb74a10259026b806513
2016-02-11 01:59:04 +00:00
Charles Chan
cb13d12979 Expose cookie information in packet context
Change-Id: I7f2cb331a19aeca1a578aade6488a6480d15496c
2016-02-11 01:14:49 +00:00
Jian Li
e0e01c252a Add skeletal code for control message provider
Change-Id: I29e28ae268693f62631f2d70a5e6f74e482a4643
2016-02-11 00:28:34 +00:00
Rimon Ashkenazy
8ebfff047b Add OTN device and ports
Change-Id: I18f3376d1466077e95d7324a27a660302f0123b3
2016-02-09 20:36:40 +00:00
Jian Li
889cffb979 Fix incorrect class and method description for PortStatsCollector
Change-Id: I6d16597fed207c2ddfd0fb14848b346d216c6965
2016-02-08 18:32:45 +00:00
Jonathan Hart
42feabd852 Use DELETE_STRICT when deleting flows to avoid collateral damage
Change-Id: Ibb35023b14296752073de44f1953013f0ca8a73a
2016-02-04 23:40:14 +00:00
Charles Chan
14967c2731 CORD-389 Fix for Accton 6712 deployment
Related to this topic:
- Disable the meter collector since right now it is not supported
- Implement extension VLAN ID selector/treatment for OFDPA
    Since it requires two special flow entries to match untagged packets
        0x1ffe/no mask (filtering rule, need to go first)
        0x0000/0x1fff setvid 0x0ffe (assignment rule, need to go second)
- Not able to point /32 IP address to ECMP group. Use /31 instead.

In addition:
- Implement serializer for ExtensionCriterion

Change-Id: I621b3ad14014d7e6945c014cdae4f7cd2939288e
2016-01-27 06:39:45 +00:00
Jian Li
8bcb4f23ce [ONOS-3634] Remove readme tag from app.xml
Change-Id: I536f54f74586a0bb5c671564f71b44a0a871d5f6
2016-01-20 18:55:28 +00:00
Jian Li
c35415ddcd [ONOS-3634] Enhance app to have a category, icon, URL and readme
This commmit enhances application to have category, icon, URL and
readme. The web GUI and CLI will be implemented in separate commits

Change-Id: Ib02716d7118cc617b24f196f2213ea1fe99a34be
2016-01-20 00:30:35 +00:00
Sho SHIMIZU
4590604b64 Use Objects.nonNull() to check if non-null
Change-Id: Ib32f56c1d53e4199592f457d04660228b7f437aa
2016-01-14 08:14:31 +00:00
Toru Furusawa
72ee30ca50 [ONOS-3730] Populate portSpeed for ODUCLT and OCH ports.
Also move the enum definition of ODU client port signal type outside of OduCltPort class.

Change-Id: Ibdff21d9707ad3d79587f579ad675f673cf9afeb
2016-01-13 19:27:54 +00:00