2809 Commits

Author SHA1 Message Date
Ayaka Koshibe
35c71e12ee NullDeviceProvider now takes configurations for :
- Number of devices per ONOS instance.
  - Number of ports on the devices. This value is global.

The islands created by each instances' providers are joined together
in a chain (circle).

Reference : ONOS-860

Change-Id: I875ad1fbc1d4441869373c25de2ae5b62838e0d4
2015-01-29 04:50:07 +00:00
Sho SHIMIZU
5e5d4aa4b6 Change the second type parameter of BatchOperationEntry
- Remove the bounded type parameter for BatchOperationTarget
- FlowRule and Intent don't inherit from BatchOperationTarget
- Remove BatchOperationTarget because nothing depends on it

Change-Id: I3b414d25409e9bbe5de37ffef10b08bc1799be74
2015-01-29 02:32:33 +00:00
Sho SHIMIZU
bdc17e7a94 Move inner interfaces to upper level to reduce IntentManager's size
Change-Id: Ice4fba9e0e70f72904fe7dfa9f371f61ca739b48
2015-01-29 02:31:35 +00:00
Sho SHIMIZU
28e72715b8 Change IntentUpdate and CompletedIntentUpdate to be interface
Instead of abstract class, defined as interface by using default method

Change-Id: I23135da32db3e1bf3b161edca4db8a61f392eb78
2015-01-29 02:31:34 +00:00
Simon Hunt
b0ec1e55fc GUI -- Added TopoPanelService to encapsulate summary, detail and instance panels.
- Rudimentary handling of 'showSummary' event implemented.
- Fixed resize behavior of topo SVG.
- Created 'migrate' mock-server scenario.
- Added 'restart' command to mock-server.

Change-Id: I90ac93dbc9efb8f17ef95825d3159030145267a2
2015-01-28 18:13:49 -08:00
Simon Hunt
a11b4ebec0 GUI -- Continued porting topology behavior over to the new codebase. WIP.
- added FnService.windowSize() function.
- added MastService and mastHeight() function.
- implemented SvgUtilService.createDragBehavior().

Change-Id: I5dae35244ab8220e1b95ddfd55b180e6adcb7a00
2015-01-29 00:24:11 +00:00
Bri Prebilic Cole
159830132b GUI -- summary-list table CSS edited to look cleaner.
Code to integrate directive into d3 created table -- WIP

Change-Id: I182ad1c66fdce36bb4097459e55a5271d47b700c
2015-01-28 15:57:07 -08:00
Sho SHIMIZU
23f36f0abf Refactor: remove unused method in IntentManager
Change-Id: Ifcec1a80674131379516f53ffdfb600651160f6d
2015-01-28 14:25:34 -08:00
Sho SHIMIZU
9ea3453b45 Avoid empty check of BatchWrite in the caller side
Change-Id: I5672b2d6fab719ab9a5c642a942bf4a6191e808d
2015-01-28 22:17:00 +00:00
Marc De Leenheer
cb9c0ba6c5 Fix rewriting of LINC-OE config for long controller IPs (ONOS-834).
Change-Id: I1e60ca4dc4d5d444eca905e13e234ad781009755
2015-01-28 22:15:32 +00:00
Yuta HIGUCHI
93356bcabc Update hazelcast version to 3.4
Fixes ONOS-864

Change-Id: Ib8ba93de2bcc5fd278039d24482a9019f2d1eae8
2015-01-28 12:33:59 -08:00
Yuta HIGUCHI
190ed19e18 Suppress Hazelcast multicast joiner warning
Related to ONOS-864

Change-Id: I7e7a27f09cadaf0a4d5cba4caf2757fa6012561d
2015-01-28 12:32:53 -08:00
Simon Hunt
737c89fb53 GUI -- Starting to migrate the 'force layout' functionality from the old GUI.
Change-Id: I38c5e5cd45a3bdc9cf6f0ec68736f3b5fbcb289f
2015-01-28 12:23:30 -08:00
Jonathan Hart
539a6460ad Modified GossipIntentStore to use EventuallyConsistentMaps.
All IntentStore operations are now implemented.

ONOS-858

Change-Id: I5081805b61c7e25e28707b90093cae12b5a4374b
2015-01-28 11:33:21 -08:00
Ray Milkey
9c3d3367a1 Make REST API unit tests choose a free port to allow concurrent builds
Change-Id: I05579d38e9374c40ef67251a30869361e31fc6d8
2015-01-28 11:09:45 -08:00
Jonathan Hart
7d656f4e91 Remove "throws IOException" from ClusterCommunicationService APIs
that never throw IOExceptions. These APIs already return boolean to indicate
if sending failed.

Change-Id: I339949fe59f3b8b18a117aabc8d67402dc66c2a3
2015-01-28 10:14:34 -08:00
Sho SHIMIZU
968c70d34a Remove an unused constant
Change-Id: Ib0c9d6cc5fbe057a27be6fe480d587311bf3d775
2015-01-28 08:50:32 -08:00
Jonathan Hart
db3af8974a Initial implementation of EventuallyConsistentMap.
The map uses the gossip schemes to replicate data between instances. It seems
to work for basic add and remove use cases right now, no anti-entropy yet.

ONOS-844.

Change-Id: I7d05a7b532e40c95ab14e2c8911f18514bd0a8ca
2015-01-27 21:30:22 -08:00
Sho SHIMIZU
adf8c48529 Refactor IntentManager: apply state pattern for intent state transition
Resolve ONOS-471.
- Define IntentUpdate sub-classes for intent state transition
- Define CompletedIntentUpdate and its sub-classes for parking intent state
- IntentUpdate.execute() handles one state transition and generates next state
- IntentInstall monitor is splitted into IntentBatchPreprocess and its sub-classes

Change-Id: Ie2d3a0b2ce9af7b98fd19a3a8cc00ab152ab6eaa
2015-01-27 23:50:19 +00:00
Sho SHIMIZU
500c317c2e Use diamond operator to simplify codes
Change-Id: I2cb27782c6f47c908d06e1877705921a5f57f91e
2015-01-27 23:44:18 +00:00
Ray Milkey
8fd68cae15 ONOS-792 Implement Unit Tests for Links and Devices REST APIs
Also added a missing attribute to the Devices codec

Change-Id: I824a3559ca6278297a52169249f413c850204a9b
2015-01-27 15:33:44 -08:00
Sho SHIMIZU
9f4aa09490 Apply multi-catch to reduce duplication
Change-Id: Ic42335acadb3422034d9396066fc92791632af61
2015-01-27 23:21:16 +00:00
Thomas Vachuska
683b31b7f9 Creating tools to aid in ONOS release process.
Change-Id: I6fba9c6cfbd943fead7005fa09eba2d7af6ac821
2015-01-27 22:29:02 +00:00
Thomas Vachuska
d9813e66b1 Fixing and enhancing the build and release tools.
Change-Id: Ia780762d70bc681751749ef0fd5a1954d6a637e1
2015-01-27 20:15:51 +00:00
Bri Prebilic Cole
4c89177cd0 GUI -- Updated TableService to use d3 table creation methods.
Change-Id: I318ee4e81624118a82c52efe380213c661b743c5
2015-01-27 12:01:39 -08:00
Simon Hunt
fd1231a0a6 GUI -- Refactored Topo View to move websocket code into TopoEventService.
- now it is more properly encapsulated.

Change-Id: Ib5cb88acf63e78be648ff45e737c76041b53e44b
2015-01-26 22:14:51 -08:00
Simon Hunt
bb596362db GUI -- First pass at TopoEventService - to encapsulate sending/receiving events from server.
Change-Id: I604d63a715f1ee25ca7ed05bacccb9eb8d65a0f4
2015-01-26 21:27:42 -08:00
Bri Prebilic Cole
5c2cab98ab GUI -- TableService can take a div, config object, and data object in order to programmatically render and load data into a table. Test functions added.
Change-Id: I585cee8331612be984ca7ead2829525af7f3d3e5
2015-01-26 15:42:42 -08:00
Jonathan Hart
23b5a763bc Add resources into intent toString() outputs.
Change-Id: Id3903a89e77073c5fa74b48851716b95adfc72de
2015-01-26 23:21:30 +00:00
Simon Hunt
c4ae83038d GUI -- Fixed broken table-spec unit tests.
Change-Id: I3b4d777a3f514759a2b19e442ad320280f46e5b4
2015-01-26 14:22:48 -08:00
Simon Hunt
54442fac5f GUI -- Implemented Panel Service.
Change-Id: I5e60c6ffa5676bc11f7312681af7bca85b4f8036
2015-01-26 14:17:45 -08:00
Jonathan Hart
229794bebc Fixed couple of GossipIntentStore bugs.
* Register Collections.emptyList() in Kryo (some intents contain this)
 * Other stores set INSTALL_REQ state implicitly when a CREATE_INTENT
   batchwrite is received, so we should do this too. 

Change-Id: I19167ab0d3c7b98c32d5af9198843ff33b7c8a23
2015-01-26 22:07:12 +00:00
Ray Milkey
521d3709dc Removed prototype REST resource
Change-Id: I3edf7b7e1b4f8e7b1d26b3c5945e614da328014d
2015-01-26 12:29:41 -08:00
Ray Milkey
3f02569dde Use JsonBodyWriter directly rather than converting JSON to strings first
Change-Id: I2facf51d0bf9b6ea4ccb47b0ac4214af203982a1
2015-01-26 11:50:49 -08:00
Ray Milkey
c401e6e3c6 ONOS-792 Unit tests for Topology REST GET APIs
Change-Id: I2e82b9b9b6133ba80aa8f02df582f867b924a641
2015-01-26 19:07:56 +00:00
Bri Prebilic Cole
aa8d2ed957 GUI -- TableService can take a div, config object, and data object in order to programmatically render and load data into a table. Test functions added.
Change-Id: I95f82108d7bb4f84a701b49e0e419afbdbac6f14
2015-01-26 10:18:16 -08:00
Thomas Vachuska
9ea3e6f477 ONOS-841 Renaming ONOS threads to simplify profiling.
Change-Id: I83a96bd875a0af9f3b78c06a9f9107c093b8e64e
2015-01-23 16:34:22 -08:00
Ray Milkey
f25d1353d3 Fix Javadoc warnings
Change-Id: I857d8bd7d9fc0862f3c0097d3e65cbedfb997b0f
2015-01-23 15:47:00 -08:00
Ray Milkey
82e5031545 ONOS-792 - topology related REST GET APIs
- GET /topology
- GET /topology/clusters
- GET /topology/cluster/{clusterId}
- GET /topology/cluster/{clusterId}/devices
- GET /topology/cluster/{clusterId}/links
- GET /topology/broadcast/{connectPoint}
- GET /topology/infrastructure/{connectPoint}

Change-Id: I2a5053b9e7f8bb7f4e3daa4b82b31376a47578cf
2015-01-23 21:51:12 +00:00
Thomas Vachuska
c31d9f1dcc ONOS-745 Refactoring topology to compute only broadcast tree and not pre-compute paths.
ONOS-744 Refactoring graph search to allow requesting max number of paths.

Change-Id: I28467246b92df32ebb3155c45774ecc051fdd3dd
2015-01-23 12:57:34 -08:00
Simon Hunt
988934ec2d GUI -- Start of implementation of Panel Service.
Change-Id: I2729acc88c7130172587856f1af80ca0d66e4c5b
2015-01-23 11:49:24 -08:00
Simon Hunt
3b0916b2e7 GUI -- Implemented sendEvent() in WsEventService.
Change-Id: Iac4833e66e7688e490b24b4cbaca3514a59ce618
2015-01-23 11:06:56 -08:00
Bri Prebilic Cole
093739a751 GUI -- Created onosWidget module and TableService with respective Karma Test file.
Change-Id: I0b164877bcd70503d126ccfe19e03a96d6b84b56
2015-01-23 10:29:51 -08:00
Jonathan Hart
dac3008f5f Remove unused IntentStore write APIs.
All write operations now come through the batchWrite API.

Change-Id: I982c5f785bf108dc2c9716db5ed744882d88aa55
2015-01-23 18:26:41 +00:00
Simon Hunt
acf410ba9d GUI -- Cleaned up websocket callback wrapping and beefed up unit tests.
Change-Id: I3457e7d8009d0c7ebb900d06ae01c59cf7370cba
2015-01-23 10:05:54 -08:00
Ayaka Koshibe
8851ed97c7 Trim whitespaces before and after .cfg file arguments.
Change-Id: Iaf165b4e289075376deab806d3c7c15169e3dca7
2015-01-23 17:47:04 +00:00
Ray Milkey
82895d772b Fix typo in help string
Change-Id: I86b774dfe59ef8659657bbbad295fd8840f80f5e
2015-01-23 08:46:49 -08:00
Ayaka Koshibe
0cd4282c8e NullLinkProvider only generates links between local devices.
Reference: ONOS-835

Change-Id: Icc378a053e54f2a3ffa0f29abd01782b80588239
2015-01-23 06:56:00 +00:00
Pavlin Radoslavov
492cc3ab10 Fix startup dependency between features onos-app-config and onos-app-sdnip:
* Expose NetworkConfigReader as a service - NetworkConfigService
 * Add reference within SdnIp to NetworkConfigService

This fixes bug ONOS-735

Change-Id: I85cdd0ce0a4f6293e8a5633bddd140a23ecddc10
2015-01-23 06:33:02 +00:00
Sho SHIMIZU
7446da93e0 Modify unit test for serializing FlowRuleBatchEntry
Change-Id: Ifdd3b7fcbb37a9d304154c46ad2628aead626a00
2015-01-23 04:38:18 +00:00