3094 Commits

Author SHA1 Message Date
Bri Prebilic Cole
09e464bc62 Starting GUI server-side code
Change-Id: Id3d5e198a2326f50ef2661f6971cf23271bf7644
2015-01-07 17:13:54 -08:00
Sho SHIMIZU
8cd9fb8ad5 Make timeout and max attempts configurable
- Resolve ONOS-472
- Define instance variables for timeout and max attemps
- Add a constructor that initializes the added instance variables

Change-Id: Ia70421122cd6042b01850eabec9f249e7cea5e88
2015-01-06 22:30:42 +00:00
Ray Milkey
9a39eca2e7 ONOS-423 - Throw a specific exception when resources are exhausted
Create an exception to throw when no resources are available
Simple, Hazelcast and Distributed link resource stores throw ResourceAllocationException
Unit tests for successful and unsuccessful bandwidth and lambda allocations

Change-Id: If062d10d2233935dd59efabfa5f37a446e275a5b
2015-01-06 20:51:15 +00:00
Thomas Vachuska
f4df00560f ONOS-537 Provided maxLen setting to make sure packet data is sent with packet-in message. Also added support for TrafficTreatment.Builder.punt();
Change-Id: I9f5577cf83b4d25c79459e56492be747a245397c
2015-01-06 12:30:18 -08:00
Jonathan Hart
4fb5cdeb37 Register FlowRuleEvent.Type with Kryo.
Fixes ONOS-504.

Change-Id: Ia8a9b229c9eb212cf97ce3ed81c31febe84e3184
(cherry picked from commit df2e65297cd43bebbd938e37583f3109e616455d)
2015-01-06 19:54:52 +00:00
Charles M.C. Chan
36eb6e1154 Bugfix: Criteria.toString() does not convert unsigned variables properly.
For example, in the response of 'flows' command, the ethType of IPv6 (0x86dd) is shown as ff..ff86dd instead of 86dd
Note: VlanId/VlanPcp still remains in signed format in this commit since:
  * VLAN tag is actually 12 bits. There should be no problem even if it is printed as signed short.
  * VLAN PCP is actually 3 bits. There should be no problem even if it is printed as signed short.
  * -1 is used in many places to indicate untagged vlan

Change-Id: Ib68161d552a0011e6a6666970907cf9ca846f620
2015-01-06 17:38:13 +00:00
Jonathan Hart
ab17b27828 LinkCollectionIntentInstaller - reuse same code for install and uninstall
+ cosmetic changes

Change-Id: Ie8dbeab8b3b3fafcebc6e48306660533dd0af4e3
2014-12-19 23:54:05 +00:00
Yuta HIGUCHI
e59c7e3bfd GossipHostStore: allow location change + update
- Actively sync with peer on anti-entropy message
  to improve convergence speed
- Timestamp not only location
- Refresh timestamp on delta update

Might fix ONOS-436

Change-Id: I271f9af04b87d78124d055e79b93413deaf1fa3c
2014-12-19 21:46:01 +00:00
Yuta HIGUCHI
24d483d1c6 Cosmetic fixes to SMap
Change-Id: I2b45227c19ee2d6595d52dda35a139ed3a898ce8
2014-12-18 17:32:33 +00:00
Yuta HIGUCHI
1773d0ad14 Set dependency scope test to unit test libraries
Change-Id: I0d8e9897cc3a3693a76e7ebb1270a88cea9416cf
2014-12-18 17:31:01 +00:00
Sho SHIMIZU
0908275d1c Refactor: Use Duration instead of primitive value
Change-Id: Id7de939fd8f1c74cf669207edf16378019b2acc3
2014-12-18 17:23:13 +00:00
Sho SHIMIZU
c647b1e5cf Null check at the head of the constructor of IntentOperation
Change-Id: Iaa25c6c7e49cf1c629687b0ba95b548fad4f7d71
2014-12-18 17:18:58 +00:00
Yuta HIGUCHI
467ccf7f9e DefaultFlowRule: remove deprecated constructor
Change-Id: Iac8dbc0f8fc2386f3f3b6435965503a2050e4b38
2014-12-17 18:03:53 -08:00
Yuta HIGUCHI
08f156b45e DistributedFlowRuleStore: always add FlowEntry on batchStore
related to ONOS-481

Change-Id: I9f82c7d9736dab7326062af9c38ae6e290a9b818
2014-12-17 17:53:21 +00:00
Yuta HIGUCHI
ddb7772971 LinkManager: log only if link actually disappeared
resolves ONOS-474

Change-Id: I61ec56795eca18b11c61b8fe5722729928bb370c
2014-12-15 18:13:01 +00:00
Yuta HIGUCHI
24f79eb3f3 DistributedFlowRuleStore: getFlowEntries should never return null
resoves ONOS-478

Change-Id: I3fd84088afd9c9f616858037829cac70708cc66e
2014-12-13 02:47:51 +00:00
Yuta HIGUCHI
800fac669f LinkStores: Concurrent readable {src, dst}Links
resolves ONOS-473

Change-Id: Id9c684ded610b30b059c3d83097b0fe4a7f7350b
2014-12-13 02:42:14 +00:00
Ray Milkey
7bbeb3fe15 ONOS-393 - In a multi ONOS system, a ink may not yet be known about.
Change-Id: Ife53b41ec9ff577e7e5c80bbd8a25f89e08942cf
2014-12-12 17:08:40 +00:00
Sho SHIMIZU
fcf9162409 Check if not null in the constructor
Change-Id: I5e73660004e5bb8e9e3c5ba6b02d1070ee977c22
2014-12-11 12:53:04 -08:00
Sho SHIMIZU
2c255db302 Remove type parameter by using type interence
Change-Id: I59868219a34a7280a0df4173ec0b401170f10457
2014-12-11 18:41:02 +00:00
Ray Milkey
f2695400a5 Fix for ONOS-393 - NPE when one of the devices can no longer be found
Change-Id: I5c907d8124585f9af5b3f6e7315c41cbcdd03fb9
2014-12-10 17:29:07 +00:00
Ray Milkey
7c44c0528c Unit tests for Objective Tracker
- Fixed a bug in ObjectiveTracker turned up by tests, it
  could not handle an emptry list (it was checking for null only)
- Implemented tests for topology, resource and leadership
  events

Change-Id: I1318a0e8655f5b44b30d2ecb527f665f13d54243
2014-12-05 20:35:22 +00:00
Yuta HIGUCHI
c5783598a3 Logging bug fix
fix for ONOS-435

Change-Id: I2766e7205ab6173abc427485ecb7697d2743b894
2014-12-05 11:13:29 -08:00
Brian O'Connor
7f2e9bf19a bumping version to 1.1.0-SNAPSHOT
Change-Id: I35f10fa7ffab12365ad852f5253bc1f395282f9b
2014-12-04 23:45:40 -08:00
Brian O'Connor
5b29ebd309 Bumping version to 1.0.0
Change-Id: I0cdd1f64a9292c91af27b86e89bd8251b2c298f3
2014-12-04 21:54:26 -08:00
alshabib
ab98466b10 adding license to ALL files
Change-Id: I9df3277760d79732317816fe5b2f1f482e9f5375
2014-12-05 05:05:32 +00:00
Pavlin Radoslavov
97b9abc161 Fix a typo in a comment.
Change-Id: I17cbd20ffb6906d108544ab58c8a0e5fb75ff0ac
2014-12-04 18:07:02 -08:00
Yuta HIGUCHI
6593489028 Scrubbing store related TODO/FIXMEs
Change-Id: I4e6bf026845bbd5be127ecacd9956d12f3386c9e
2014-12-05 01:58:49 +00:00
Thomas Vachuska
6dd018f7ea Added a simple constructor for code demo tomorrow.
Change-Id: I4bdebf68cc35c98b4c141f244cac424335094c9c
2014-12-05 01:00:03 +00:00
Brian O'Connor
4400853c6e cleaning up some TODOs
Change-Id: Ib2380e9533ba30c6f9fdf79aed1879dbbe3589a7
2014-12-05 00:59:46 +00:00
alshabib
4785eec529 removing some TODOs
Change-Id: Ic98c811573a1b37813993eedddec512ec85729f3
2014-12-05 00:59:35 +00:00
Thomas Vachuska
045c01da31 Adding packaging on onos*.zip file.
Modified Version.java to allow 3-segment version.
Changed onos-next to onos as default for ONOS_ROOT.

Change-Id: Ifbde9dfbc7af9a5891e9f41db6932859c0f59660
2014-12-04 08:22:00 +00:00
Yuta HIGUCHI
9796cc623d HazelcastIntentStore: workaround to provide Event subject on WITHDRAWN
Change-Id: Ie9562d2223fb7e7a89f91f5faaad4bbeec6f4bd9
2014-12-04 07:10:55 +00:00
alshabib
0ad84ec76d setting periodic calls to reasonable intervals
Change-Id: I92f790ff3ea632d39bf6656201addf0346dcbd98
2014-12-04 06:58:29 +00:00
Pavlin Radoslavov
0d972b9594 Fix the logic for printing a log message
"Intent ... removed installable still found", and change the level
from INFO to WARNING.

[Discussed with Yuta]

Change-Id: I0b40559de10983c3330f1174e3ab1cbe06f07b32
2014-12-04 05:46:15 +00:00
Jonathan Hart
1e37d561ef Suppress stacktrace of benign exception when computing topology
Change-Id: Ifb1e4ae9d46c1db6a0c918b7a750f5f54bdfd67b
2014-12-04 04:51:26 +00:00
Sho SHIMIZU
30f45fbb0d Refactor: add static factory method in BatchWrite, instead of in IntentStore
Change-Id: Ic0cecc4b3cc4facbc469d2eb87a36c4d5166a6f2
2014-12-04 02:53:26 +00:00
Ray Milkey
e9a3e22234 Add some test cases to Intent Manager tests
- test that getIntents() returns the proper items
- test that subclass compilers work
- test the behavior of intents with no compiler
- test the behavior of intents with no installer
- test the behavior of installs that never finish

Change-Id: If0bff389e7fce2f71eb7a97051547dbd05ab588c
2014-12-04 02:52:57 +00:00
Pavlin Radoslavov
369c643802 Use two thread pools for handling the OpenFlow STATS and BARRIER messages.
This fixes a problem where a large number of incoming STATS messages
is practically using all available threds from the pool (16), and
there are no available threads to handle the BARRIER messages.

Change-Id: I1130eb8f3b5a17d5d3a7825f32da68eacb99569a

fixing other threadpool issues, ie. not using cachedThreadPool

Change-Id: I40ef10e1f704aef779b2a23c0497dfb7992520eb
2014-12-04 02:06:53 +00:00
Yuta HIGUCHI
81419e2fcd HazelcastLinkResourceStore: bug fix for ONOS-379
Change-Id: I783b51d4d937918c0bca9feb09d29263266145ee
2014-12-03 17:02:40 -08:00
Yuta HIGUCHI
7a9fdddb81 IntentManager: give each thread a uniq name in ThreadPool
Change-Id: I64c2e45aba3ae65a747271d02d1d9b83bcfc848c
2014-12-03 17:02:40 -08:00
Yuta HIGUCHI
c1ee6746aa DeviceIdSerializer: use case normalized String
Change-Id: I6995e224ed5567e3d2d65dac3891252dd8c4dd7b
2014-12-04 01:02:19 +00:00
Sho SHIMIZU
351e2f63ef Add ToDo comment
Change-Id: I4fc91ab84122629054c06a1dd4ec89b3cc0045b5
2014-12-04 00:57:26 +00:00
Sho SHIMIZU
64ae11c73f Move nested class to top-level class
Because BatchWrite is public and no need to place it as an inner class in
IntentStore interface

Change-Id: I17e87e06baa4f0af55fa30b09a891bc23932a6fd
2014-12-04 00:57:01 +00:00
Yuta HIGUCHI
6b98ab6141 Dist.FlowRuleStore: log operation, when encountered no master situation
Change-Id: I6b6df423f747f35248c4f675147dfd32e471e1b5
2014-12-04 00:53:33 +00:00
Praseed Balakrishnan
1516f489ca Fix NP found during optica re-route on multi-instance
Change-Id: Ia7d9c221b36e1224004273b3884b8d0385af086d
2014-12-03 16:34:36 -08:00
Sho SHIMIZU
4c464fb01d Correct indent
Change-Id: I4ff249f604813ab42b7f61d5ca12be68eb7bf596
2014-12-03 23:23:58 +00:00
Yuta HIGUCHI
43772d7125 HazelcastIntentStore: fix checkstyle issue
Change-Id: I1a912e44dbaa6798095ebec17d61f4a3074d6004
2014-12-03 14:14:22 -08:00
Yuta HIGUCHI
36dd7e4422 FlowRuleManager: properly name thread pool
Change-Id: I4a804c5b7eca9f746746773e36fba10e5d920811
2014-12-03 14:14:22 -08:00
Praseed Balakrishnan
db8a9d21f9 Fix serializer exception while using optical intent on distributed store
Change-Id: If19a0c12eb0d88d2daa57c16fb1b626b7c0f428f
2014-12-03 21:44:22 +00:00