1270 Commits

Author SHA1 Message Date
Michele Santuari
3ea539086a fix egress packet treatment ONOS-3467
Change-Id: Ia88568d0ed8f1a982479e5212495923d55238d7b
2016-02-17 16:03:43 +00:00
Sho SHIMIZU
f08cb4c0e0 Define valueAs() to get the enclosed value and remove volume()
volume() is replaced by valueAs()

Change-Id: I3dbcbd6a0b8fcd28f0064272fe1fa6d7259e0a87
2016-02-17 01:20:22 +00:00
Sho SHIMIZU
ef7e290e20 Make use of Optional more idiomatic
Change-Id: I42b3261169e7cb8408f46c5831f72115f77fd779
2016-02-17 00:38:48 +00:00
Sho SHIMIZU
b08d58635c Refactor: Rename Resource#isTypeOf() to isSubTypeOf()
Change-Id: I83eed95d53ecc06cd14695cae22bd4e71646040a
2016-02-11 12:46:25 -08:00
Jonathan Hart
56151262f8 Roll back resource API changes that triggered a bug in the Java compiler
Change-Id: I9e6891fe156148692e59476cb2bec6defb1f9a70
2016-02-11 20:18:21 +00:00
Sho SHIMIZU
fc64ffe4d5 Refactor: change method parameter type of ResourceStore#release()
Use ResourceAllocation as parameter of ResourceStore#release()

Change-Id: I1833b9b23985cd42820093633591fa21daf2f98e
2016-02-11 17:47:32 +00:00
Sho SHIMIZU
84515f36cc Use lower bound wildcard for API to be more flexible
Change-Id: Ia6bcec5afb2e872b55bae4bbd9139ad35ce01284
2016-02-11 02:38:20 +00:00
Sho SHIMIZU
7b32697856 Simplify method names by removing redundancy
Change-Id: I36df7e23792f7004dfae823a8700f6c887ea1efd
2016-02-10 21:36:33 +00:00
Sho SHIMIZU
72f81b1830 Use ResourceId when unregistering resources instead of Resource
Change-Id: Ib3d1c611ad9eb4491693ea10ee50ea0123f20ee2
2016-02-10 20:06:50 +00:00
Sho SHIMIZU
9c02f3af02 Hide underlying components from public use
- Remove components() method from Resource
- Add isTypeOf() method to Resource

Change-Id: I390eb6057fc7e2c3e93eb2a18d161f661ad6c180
2016-02-10 02:59:33 +00:00
Sho SHIMIZU
2fbc33c1bf Fix the compilation error introduced by be394c8
Change-Id: I9104d91541f0f2fcd8476264772a920b59626003
2016-02-09 14:04:30 -08:00
Naoki Shiota
be394c82ba bug fix: ResourceManager#unregisterResources only unregisters given resources and didn't unregister descendants (ONOS-3827).
Change-Id: I48956234553053e2a54834129b5f10357ca116ea
2016-02-09 21:41:51 +00:00
Rimon Ashkenazy
8ebfff047b Add OTN device and ports
Change-Id: I18f3376d1466077e95d7324a27a660302f0123b3
2016-02-09 20:36:40 +00:00
Sho SHIMIZU
dd3750cf01 Use ResourceId or DiscreteResourceId when specifying a resource
Change-Id: I4e29558ec649510c8d08bb5e5f8ed10c189252e5
2016-02-09 20:32:50 +00:00
Shashikanth VH
387a1cad9d null dereference fix.
Change-Id: I98b6226fea3f457fef11c65c092453ffa881b59e
2016-02-09 20:35:35 +05:30
Andrea Campanella
fe1d473f97 Dropping log level of device not having driver for default provider to DEBUG
Change-Id: I79d14ec87ffe24f71407e10f9beb5438c41ac54b
2016-02-09 07:41:18 +00:00
Simon Hunt
3da1a1827d Fix incorrect method prerequisite checks in NetworkConfigManager.
Change-Id: I460190952a4493544cf94dd0e2cec70ad1292ecb
2016-02-09 01:20:37 +00:00
Andrea Campanella
b8d3f3dfcb Adding device information to log of default driver providers
Change-Id: Ie25f6aee76e9ef72052570177dcf2f4a6da8edf4
2016-02-08 15:31:09 -08:00
Andrea Campanella
e427390195 Logging information about device not being driver programmable instead of throwing exception
Change-Id: I1d64e83ca0cabc9378bcaf19badddbba584128f8
2016-02-08 22:28:42 +00:00
Naoki Shiota
bbc7ead126 Fixed a bug that optical intent compilers never release resources reserved during compilation.
Removed tempoary code from optical app (ONOS-2129).

Change-Id: Iee0343964f886196922469eaabe4a72c3f404888
2016-02-08 18:39:39 +00:00
Michele Santuari
0ff59c27e4 fix on VLAN intent encapsulation ONOS-3467
Change-Id: Ia0a72d13a551fd4183531d35c04ca19d87b85280
2016-02-06 00:58:01 +00:00
Jonathan Hart
b68919e831 Catch and print Errors as well as exceptions in CoreEventDispatcher
Change-Id: I8c41404aba26ad9c09b9b1bdc2e31b8350b1924c
2016-02-05 23:47:40 +00:00
Madan Jampani
c27b6b2deb Fix files with windows line endings + Add checkstyle rule to catch this issue
Change-Id: Ic1905f2121c5c2ab66259f7f531c1e36fe58e9d4
2016-02-05 19:51:54 +00:00
Andrea Campanella
5b240530a0 ONOS-3759 Packet fallback driver provider
Change-Id: I8d526f66200b68d21aad3bd88575f6021d10c9a1
2016-02-05 19:46:47 +00:00
Andrea Campanella
6ee7392adb ONOS-3759 Group default provider
Change-Id: I318c8036a1836d13f57187bfd28464c740e09f08
2016-02-04 19:34:49 +00:00
Thomas Vachuska
c4ee7372c5 Adding first fallback provider for flow rule subsystem.
Fixing onos-check-apps.

Change-Id: Ic8c2bac4403bb7a49813826262706e857932b6c0
2016-02-03 04:51:57 +00:00
Thomas Vachuska
3afbc7f34a Adding ability to project device, link and host model as alternate entities.
Change-Id: If23c018b024a3bbe693f0e66888c5f1707e3f66d
2016-02-02 22:43:22 +00:00
Sho SHIMIZU
2f26fb2682 Remove mutating methods in IntentData
Change-Id: I1d9ac694922f4a12b2d94a92b64be2c336c31ae3
2016-02-01 14:02:32 -08:00
Madan Jampani
620f70d03f LeadershipStore updates:
- Now tracking leader and candidates for a topic using a single map.
 - Using term numbers that are incremented by one every time a new leader is elected.
 - Introduced a separate LeadershipStore to conform to the  manager-store pattern

Change-Id: I1d03a6c5e8ff0e68ef0c1e3a6c2d425c4856e470
2016-01-30 23:14:12 -08:00
Sho SHIMIZU
83258ae504 Use more concrete type for return value
Same resources are not allowed for a parent and Set is more suitable than
Collection

Change-Id: Ib45179819d81376678bf8949864b12b5bd721085
2016-01-30 16:33:41 +00:00
Charles Chan
0c7c43b136 CORD-394 Purge group/flow store when device goes offline
Stage 1: (this commit)
Add a component config purgeOnDisconnection, which is false by default.
When set to true, GroupManager and FlowManager will purge groups/flows
associated with a device when the device goes offline.

Stage 2: (upcoming commit)
Enable these configs in SegmentRoutingManager
Clean up group related information in SegmentRountingManager

Change-Id: I46d047d690d4641e030f6cdd084ce16ac02d8919
2016-01-29 21:00:45 +00:00
Charles Chan
93fa727942 ONOS-3763 Change flow state to PENDING_ADD when retrying
Will emit a RULE_UPDATE event if the state is changed.
Update unit test accordingly.

Change-Id: Ie84778c62f52f15b7636d41db246814145e73f77
2016-01-29 19:29:24 +00:00
Sho SHIMIZU
460b97251b Move static factory methods to the utility class
Change-Id: Icf458adf78f51823e4ffa31346595fa9716485bf
2016-01-28 13:43:21 -08:00
Sho SHIMIZU
763be92118 Avoid using fully qualified name
Change-Id: I273ccfe4bded393ec17128f485842c458cbffac4
2016-01-28 09:41:54 -08:00
Sho SHIMIZU
f95b96eaa3 Change the APIs to instantiate Resource and ResourceId
Now, DiscreteResource/DiscreteResourceId is provided by DiscreteFactory.
Similarly, ContinuousResource/ContinuousResourceId is provided by
ContinuousFactory. These factory instances can be obtained by static
factory method such as Resource.discrete(...) or Resource.continuous(...).

Change-Id: Ic94f7336c0e1f74cf2dddcac899de300362aff3e
2016-01-28 17:31:58 +00:00
Sho SHIMIZU
d978d9ac01 Move variable declarations out of the loop
Change-Id: I7d89e942e459e65838282f0c7dc9a1399c4af166
2016-01-28 08:57:48 -08:00
HIGUCHI Yuta
1d7c9cbe6d ONOS-3732 Bandwidth resource registration using netcfg.
- Uses netcfg defined value as available resource if defined,
  else uses port speed as available Bandwidth resource

Change-Id: I2dde9a9194025194ed8785b4608f064debab182b
2016-01-27 13:09:56 -08:00
Sho SHIMIZU
4a1e59f28e Rename: use plural according to the returned type
Change-Id: I7db9ae2fda2f7240d69ad7dbd028ccc0ea8a8fd8
2016-01-27 03:57:51 +00:00
Ray Milkey
2693bdab3e Add a builder for DefaultLink to hide multiplying constructors
Change-Id: Iaf073d07989c398a8f44541ffdb8dd93e5715162
2016-01-26 21:33:28 +00:00
Thomas Vachuska
5923b9a5c6 Fixed an NPE in DeviceManager provider service.
Change-Id: I9afc5e715ee88855384652dc81677b3de5b89300
2016-01-26 20:38:33 +00:00
Thomas Vachuska
bb062ecd45 Fixing a discrepancy in driver manager implementation.
Change-Id: I774a3ed26dc6d34d6bdc5834e8e38d4d1741c5ed
2016-01-26 18:55:59 +00:00
Jian Li
dfba739230 Fix javadoc warnings
Change-Id: I3de24a04593f47c786f698f5ee1669b3d2f2fdfc
2016-01-23 02:38:40 +00:00
Saurav Das
49cb5a1f0f Changes to vRouter to accomodate ofdpa and softrouter pipelines.
Adding arp-spa to flow from vRouter to distinguish between multiple untagged
interfaces with the same macAddress.

Change-Id: Ifd6e00f70c538c780c0f5728d9ba960a4c70b1db
2016-01-22 20:49:46 +00:00
HIGUCHI Yuta
dff91af6a7 Add resource API to query registered resource
Change-Id: Ibf53a0fa383043d17e78578093eb3055631796d0
2016-01-22 18:12:57 +00:00
HIGUCHI Yuta
6f828c3864 Bugfix and cosmetic changes to resource subsystem
- Continuous resource was always considered not available
- Support querying for child resource against Continuous
   (result is no children)
- Resource equality to compare id and exact type

- Add missing information in Continuous resource toString()
- More concise String representation for ResourceId

- additional logging added during above bug investigation.

Change-Id: I58a95b95b91c246c3c5dbb136a1820f988c6fccd
2016-01-22 17:45:00 +00:00
Jonathan Hart
c43fd1cc65 Ensure basic SubjectFactories have been initialized before NetworkConfigLoader
Change-Id: I233a5c40f83cc969f187c176af2a9e31e3526c1c
2016-01-22 02:57:53 +00:00
Sho SHIMIZU
4a14185032 Move method to IntentProcessPhase
Change-Id: Id9e898d983f3b041dbb376070ef31e36318b40c3
2016-01-22 00:49:53 +00:00
Madan Jampani
ad3c5269ef Using provider pattern for cluster metadata.
Change-Id: I5a572b3df9149be959dde9868a9c594dec26a3e0
2016-01-20 23:01:29 +00:00
Jian Li
115991625f Bump up Karaf to 3.0.5
This commit bumps up karaf to 3.0.5.
This commit also bumps up the jetty to 8.1.18.v20150929.

Change-Id: I52849c38b535205db8c4e00e799b332f63b7e3f2
2016-01-20 22:11:10 +00:00
Sho SHIMIZU
d1a33b6b77 Rename instance field
Change-Id: I00ecd3fe74806dc800af1f48153b18941755a0d2
2016-01-19 18:42:01 -08:00