3637 Commits

Author SHA1 Message Date
Brian O'Connor
d12267c7b1 changing FlowRuleManager from cached threadpool to fixed thread pool
Change-Id: Ie24dae672e699447b55411bf3492efa96e2e16c2
2015-02-18 21:04:54 -08:00
alshabib
78baaf2af2 fix for flows stuck in pending add state
Problem is due to two packet requests from different services
for the same selector resulting in the same flow rule.
Since these rules where the same, only one ended up on the data plane,
but sadly only the first request made it into the flow service meaning
that in cases where what was in the flow service does not match what is
on the dataplane resulting in a PENDING_ADD situation.

Change-Id: I4c03e753be6e198e04f0b5263a2aa8cf2edc51e1
2015-02-19 03:05:17 +00:00
Thomas Vachuska
62ad95f3f1 Added ability to upload apps as both app.xml or app.zip.
Added a number of app.xml files for built-in apps.
Added ability to install & activate in one command.

Change-Id: I3fa5fa487ef76d9fe3da4d6dce8045d538cba423
2015-02-18 21:33:52 +00:00
Sho SHIMIZU
36a8a6e8ef Move IntentUpdate subclasses to the dedicated package
Resolve ONOS-1051
- Create package "phase" under intent.impl
- Rename IntentUpdate and CompletedIntentUpdate
  - IntentUpdate -> IntentProcessPhase
  - CompletedIntentUpdate -> FinalIntentProcessPhase
- Loosen method/field visibility as short term hack

Change-Id: Idc0fd9a74aadd227d62006d00fee473c63b1fc05
2015-02-18 21:24:10 +00:00
Ray Milkey
024798622b ONOS-1058 - Add application Id to intent withdraw command
Change-Id: I6f660f2e115e4acc9d3c7d1ab2e2115caaf1822f
2015-02-18 19:09:03 +00:00
Ray Milkey
da36c40e9d ONOS-1057 - Remove references to deprecated applyBatch() method
Change-Id: I9215fde6be2acaa2becea58d8b6e5b171ff16817
2015-02-18 18:59:48 +00:00
Jonathan Hart
90a02c2539 Moved routing/bgp config into common routing bundle.
This allows the configuration to be used from multiple applications.

 * The class that reads the configuration file is now a service so that
   config can be consumed by components in other bundles.
 * Name of config reader classes has been generalized to RoutingConfigService
 * All config has been added to RoutingConfigService, instead of having
   two service interfaces like we did previously

Change-Id: Iaec9daf0f5b72abe2d6709fb75188d6d81947478
2015-02-18 18:52:35 +00:00
Thomas Vachuska
8ab196c409 Fixing some javadocs.
Change-Id: Id4a1097c0f210d5c550d4b166437b82c03a8887d
2015-02-18 18:40:41 +00:00
Yuta HIGUCHI
8f068279b4 Fix potential race conditions in HazelcastLeadershipService
Change-Id: Iac232652155830c8e054760ea371ffb5639cf464
2015-02-18 17:18:51 +00:00
Hongtao Yin
36f79aa93b Updated calendar server code. Added intent for bi-dirctional path. Added latency as one more parameter in constraints.
Added exception catch for parsing parameters.

Fixed Jenkins checking errors.

Use intent key and 2way intent P2P setup.

Change-Id: Ib2bd25deb793b2a34179cbf8794ca5aa3e427f91
2015-02-18 06:29:22 +00:00
Sho SHIMIZU
d3dcaa16b1 Fix comments
- Delete obsolete TODO comment
- Write Javadoc for IntentUpdate subclasses which have no Javadoc

Change-Id: I2b233fa9741733fd3642bbbe639990b1ce0b7405
2015-02-18 06:27:18 +00:00
Brian O'Connor
ab8ef82294 Fixing bug in withdraw request when current intent is null
Also, demoting some log levels

Change-Id: I4c7e85bc2bc06e08fe62819d4f66ec8111050a07
2015-02-17 18:08:54 -08:00
Brian O'Connor
916de34f16 Disabling FlowRuleExtService components
Change-Id: Ia4a53da3af577280966ad06cb343bcdb4eb68d01
2015-02-17 18:07:32 -08:00
Jonathan Hart
f2fda81f63 Automatically rebalance intent key partitions on cluster change.
Also sorted output of leaders command by leader IP.

Change-Id: Ie85896a4f6f50489ebd7994c905808ce34fca94c
2015-02-18 00:27:18 +00:00
Madan Jampani
64689559d7 WIP: Revamped transaction API. Introduces a transaction context for running blocks of code that can be committed
atomically.

Change-Id: I6ba21050a2644a42f3c073fa04ff776ef2c5ff4c
2015-02-18 00:22:57 +00:00
Marc De Leenheer
b473b9dd2d Injecting topology through JSON ConfigProvider works for multi-instance (ONOS-490).
Change-Id: Ib977f4cf9a59ddec360072891fd803c6f9ee84f1

Injecting optical device annotations and ports works for multi-instance (ONOS-870).

Change-Id: Icdde16ef72fc4e47eec7213250b04902083f0537
2015-02-17 23:55:59 +00:00
alshabib
a66a05635c do not initialise the flowext subsystem
Change-Id: I760a95a27fce91c80b5f5f3d396c80e4b0eca378
2015-02-17 15:50:54 -08:00
Madan Jampani
2546111a36 Added copy right headers.
Change-Id: I3a42d1af23f4afb8d584c788ade026c3ed8db0e5
2015-02-17 14:23:51 -08:00
Pavlin Radoslavov
3ebe170d87 MPLS-related bug fixes:
- Use subtype() instead of type() inside method
   ModMplsLabelInstruction.toString()
 - Check whether the MPLS value is negative inside the MplsLabel()
   constructor.

Change-Id: I770194774219f0c919474928803e078226f2005d
2015-02-17 21:13:24 +00:00
Madan Jampani
e97fec4ffb Remove deprecated code.
Change-Id: Ifd68e4ddfaade2a8dd7de43a83bf222b48b9291b
2015-02-17 21:03:09 +00:00
Ray Milkey
f7329c77eb Remove some deprecated APIs and warnings from BatchOperationEntry
Change-Id: I44daf9646f6d2a60fd7c0ce96d6692ab8a9cdda2
2015-02-17 20:53:41 +00:00
Hongtao Yin
142b758ba3 Initial implementation: The init extended flow rule and store interface APIs
The APIs are for supporting service data to install on network devices.
This is related to JIRA ticket ID ONOS-869.

Updated API code and added implementation code files.

Modified API for supporting payload abstruction, and added routing mechanism for pushing flow rules to devices.
Added more javadoc, and fixed some minor issues.

Updated javadoc, removed unnecessary method, and test code.

Change-Id: I105defc92a9e01b30601fcb56a9dafa086d4adc0
2015-02-17 11:29:03 -08:00
alshabib
9af70070c8 support for corsa pipeline. EXPERIMENTAL.
Change-Id: Ic3db0a7a18f11c41c8a84f25a249dfb63109da97
2015-02-17 18:48:00 +00:00
alshabib
93cb57f160 Fix a bug where default rules were not pushed after restarting mininet.
Change-Id: Icf4c7ed009a5938d28b58128cfc226067a0d4c9e
2015-02-17 18:43:34 +00:00
alshabib
371abe85c2 allow flow to be marked for removal from flow store when device is disconnected
Change-Id: I0f60ff4f010d0d149be31272b9e592c5d812bef9
2015-02-17 18:43:20 +00:00
Srikanth Vavilapalli
ed12ae5e81 ONOS-985: Sample integration test application for group subsystem
Change-Id: I68352f922e5c7a0800fcc4fa839955769bf925a6
2015-02-17 17:58:49 +00:00
Jonathan Hart
77bdd26ac6 Moved EventuallyConsistentMap classes into their own package.
Change-Id: I930a988a8cd8d47826a6f7d0f4ce23c56446df20
2015-02-17 17:40:49 +00:00
Sho SHIMIZU
c4ebc717a0 Avoid unnecessary instance creation in hashCode()
Change-Id: I9967020cfa80c616909932181be7e3b6862c3757
2015-02-14 10:08:06 +00:00
Michele Santuari
4b6019e449 ONOS-631 #Initial MPLS intent implementation
Change-Id: I6f906b953f06f395cc67e612648802e333c0e581
2015-02-14 10:00:48 +00:00
Pavlin Radoslavov
a1e2656a8e Fix a copy-and-paste bug within method
LinkCollectionIntentInstaller.deactivate() to unregister as an installer.

Change-Id: Ia4ba3aefcbdc8c4e4c23c1ab831c71b6c61626f7
2015-02-13 16:10:43 -08:00
Brian O'Connor
e2eac102fc Using replace instead install when there is already an intent
Fixes the problem of flows being left on the data plane

Change-Id: Iec3db8b460123f2744a57d8c08d14c8effe9ec34
2015-02-13 14:16:23 -08:00
Jonathan Hart
9288836389 Return null instead of throw exception for invalid event states.
Change-Id: Ie40ca4dc1c241aa4f27652aa4e8b3f99eb924169
2015-02-13 14:16:23 -08:00
Sho SHIMIZU
95a7baf4fa Remove IntentStore access in IntentUpdate subclasses
Change-Id: I923c62f1d34dc2c911323f11990de5c9788bf655
2015-02-13 14:16:23 -08:00
Brian O'Connor
998f0cc744 adding and removing tracked resources
Change-Id: I5030e1c21a61e54f251dbc5760783f1ac2e4d2d7
2015-02-13 14:14:00 -08:00
Jonathan Hart
2085e0751a Removed deprecated IntentStore#batchWrite() API.
Also javadoc fixes.

Change-Id: I4ccd109a22189f4762afec15a719e42a3b9e4f7b
2015-02-13 14:14:00 -08:00
Ray Milkey
8010bb48a6 Unit test for IntentData class
Change-Id: If98b737b4ddd92ebfb8b2a35ad5d80984b0e681a
2015-02-13 14:13:59 -08:00
Brian O'Connor
ea2ba3e713 Intent manager cleanup
Change-Id: I5a83a69cbaa8f498e5c0ed21588dedf15790d877
2015-02-13 14:13:58 -08:00
Jonathan Hart
07e58be5db Fixes for GossipIntentStore
* State checking to prevent state updates outrunning.
 * Copy IntentData on the way in and out of the store.

Change-Id: Id18164d15c896c5a62376aac17b7c8c2cac420c2
2015-02-13 14:13:58 -08:00
Sho SHIMIZU
bb4d827c44 Handle exception that is potentially occurred in WithdrawCoordinating
- Introduce a common parent class, AbstractFailed for IntentUpdate
  subclass representing failure
- Write Javadoc for each class representing failure

Change-Id: I3945642f5985ddd66c11b6de1924b9c1d23a5fc6
2015-02-13 14:13:56 -08:00
Sho SHIMIZU
6aa4fb422d Avoid unnecessary state transition
Change state from WithdrawRequest to Withdrawn directly when
there is nothing in the store with the key

Change-Id: Ia38d02bcff8df7aad35fbb975843c6741ff540f4
2015-02-13 14:13:56 -08:00
Jonathan Hart
2f669364ca Generalize the MultiValuedTimestamp.
Change-Id: I691730d59f440778856afd0e4808ba775eccba0a
2015-02-13 14:13:54 -08:00
Ray Milkey
9f74c08c6b Fix intent manager unit tests
Change-Id: I4bdde294a6cd181d3acf9218824645714c227bae
2015-02-13 14:13:53 -08:00
Jonathan Hart
5ec32ba0f3 Finished implementation of GossipIntentStore based on new API and semantics.
Change-Id: I1a71d075e5d34ab7b9f7c2533d389235d6da1d9a
2015-02-13 14:13:52 -08:00
Jonathan Hart
d0ba217c33 Fix javadoc issues
Change-Id: I68b5e8feba625104f9a5c9eb62a56654ddea0516
2015-02-13 14:13:48 -08:00
Brian O'Connor
47bc855fff Updating SimpleIntentStore
Change-Id: Ide940216f05a69875fcb844d36b073e2e4b9988e
2015-02-13 14:13:22 -08:00
Ray Milkey
abbdcb7761 Unit tests for intent key class
Change-Id: I691b37f1df331e72fcbd1eec356e37547385dcf5
2015-02-13 14:13:22 -08:00
Ray Milkey
4f5d93e992 Fixes for ObjectiveTrackerTest and IntentServiceTest
Change-Id: I10acda2220c2012e0aa07493c2dc91b1a6a81109
2015-02-13 14:13:21 -08:00
Ray Milkey
3af1386461 Keys based on longs should display in hexadecimal
Change-Id: I45d826a4e8c24271d6689f9438d5eca78f557241
2015-02-13 14:13:21 -08:00
Ray Milkey
65cb59ab2a Add toString() method to IntentData for debugging
Change-Id: Ie7787b87df17edf342233980431d87fbb01568c7
2015-02-13 14:13:21 -08:00
Ray Milkey
5ad3966707 Fix bug where the values of keys could change
Change-Id: I34993c413c3f928690701a055ec38c1e7029b473
2015-02-13 14:13:19 -08:00