2809 Commits

Author SHA1 Message Date
Pavlin Radoslavov
5e4f754f19 Implement some of the missing Selector and Match Conditions
Work toward ONOS-509

The following match conditions are added/implemented:
  - IPV6_EXTHDR

Also, fixed the match criteria for the optical signal type
to represent unsigned 8 bits integer (per spec).

Change-Id: I925db19cb43c5d9f589c1f090b6a75faabe0a19b
2015-02-09 01:20:09 +00:00
Pavlin Radoslavov
f3b693381d Fix toward ONOS-960 - Signed/unsigned value mismatch for OpenFlow-related
match/action conditions

Fixed the signed/unsigned issue for the match conditions

Also:
  * Reordered some of the code in CriterionCodec.java so the order
    of handling various Criterion types follows the order as defined in
    Criterion.java
    - In the process, removed a duplicated entry for Type.MPLS_LABE
    - Fixed an issue with TCP/UDP/SCTP ports being accessed as 8-bit integers
      instead of 16-bit integers

  * Updated some of the unit tests in CriterionCodecTest.java to use
    larger integer values that could expose better potential bugs in
    the tested code.

Change-Id: I531d13bd258ebc559ce6be716863c01613427a98
2015-02-09 01:16:31 +00:00
Yuta HIGUCHI
32a53c5a85 Instruction related fixes
- Fixed PushHeaderInstructions bug, where half-baked Ethernet instace was used
  only to hold ethernetType. (ONOS-987)

Change-Id: I330a862c8a18206250befbd4e22ee6d189beed83
2015-02-08 01:41:43 -08:00
Thomas Vachuska
4a51e57cbf Adding and fixing javados.
Change-Id: I38eddb0b11630cdd83c5d1e5d5dc393ee2555897
2015-02-07 21:36:23 -08:00
Thomas Vachuska
a1c4ccd831 Updating Javadocs
Change-Id: Iad04f377f571c4879db245c9b96030678faad5b9
2015-02-07 20:54:14 -08:00
Simon Hunt
205099e56b GUI -- TopoView - added node selection logic.
- added inArray() and removeFromArray() functions to FnService.

Change-Id: I0e9631fa9e5865cb171e8d505f45c1963a1903dc
2015-02-07 13:15:16 -08:00
Madan Jampani
cb7ab08e95 Pom fixes to correctly shade copycat jars.
Change-Id: I1ed97b32ad242e1c6d7c06387219308802a1f773
2015-02-06 15:33:57 -08:00
Ray Milkey
9ee62f52f2 add unit test for criterion codec
Change-Id: I0797c164dbbc03cd46a9d861e758f85cd27845d6
2015-02-06 14:52:07 -08:00
Simon Hunt
445e815d51 GUI -- TopoView - working on mouse gestures - drag, click on nodes; mouseover,mouseout (WIP).
Change-Id: I2ecd4f805267fe72685381eb297a3d4cbbbd360a
2015-02-06 13:00:22 -08:00
Bri Prebilic Cole
5e940e21a9 GUI -- VeilService Implemented and some changes to device view.
Change-Id: Iad496e2ca698213dce4da4d1894eee6e6fe5a874
2015-02-06 11:34:14 -08:00
Madan Jampani
94c2353875 WIP: Partitioned Database based on Raft.
Removed the implementation based on previous Copycat API.

Change-Id: I6b9d67e943e17095f585ae2a2cb6304c248cd686
2015-02-06 19:04:24 +00:00
sangho
6a0bb17d28 ONOS-961: Supports GROUP_STATS and GROUP_DESC_STATS events in OpenFlowController for OpenFlowGroupProvider.
Change-Id: Iea5e7a2a37a7a44367c54e99db44eb9399d48175
2015-02-06 18:57:18 +00:00
Ray Milkey
73ba84aa42 Refactor criterion codec
The previous implementation was a huge switch statement. These
changes attempt to use polymorphism to avoid all of the branching
inherent in a switch.

Change-Id: If997f028346de02b883356bcde07f62674e319be
2015-02-06 10:02:26 -08:00
Simon Hunt
1c367111b5 GUI -- Implemented cycleDeviceLabels() - themed too.
- cleaned up findDevices(...) .. all devices, or offline devices only.

Change-Id: Iac64cdc64393e3c30798975e4aab8ed480deda31
2015-02-05 18:02:46 -08:00
Bri Prebilic Cole
47bb780a28 GUI -- WIP - VeilService
Change-Id: I56ff07f712e43f404e5ef5b8da2ba8cfa62102ff
2015-02-05 17:25:45 -08:00
Simon Hunt
5724fb4505 GUI -- Implemented Show/Hide Offline devices & Show/Hide Hosts (also used Flash Service).
- added 'toggle(cb)' to panel API.
- deferred keybindings to allow direct reference to sub-API functions.
- re-implemented tick() function.
- added 'list scenarios' command to mockserver.

Change-Id: I1cc0009266e1015747b1d8106bd1f088adb2feb5
2015-02-05 16:59:56 -08:00
Yuta HIGUCHI
cca5e72f99 L2/L3 modification instruction bug fixes
- Fixed instanceOf with wrong type (ONOS-974)
- Aligned #toString() format to be the same as other instructions

Change-Id: I526c2ef8d92660e0b821a10f0cf87ee72a84cdf3
2015-02-05 16:22:57 -08:00
Bri Prebilic Cole
aa0f088f5f GUI -- Cycling through icons in table headers:
- An object is returned that has the current column ID and which icon/sorting needs to take place when sent to the server
- clicking on each header will display to the debug console which way it will be sorted

Change-Id: I686d417a5b9b0e5c9b591380b8a6166c70c3c401
2015-02-05 14:39:23 -08:00
Jonathan Hart
9a4157bb6b Update AddSinglePointToMultiPointIntentCommand help string
to include ingressDevice.

Also modified help strings for consistency.

Change-Id: I9c35fdbdae539f92411da089ff48b4c0951e8481
2015-02-05 21:31:14 +00:00
Simon Hunt
e33889d53e GUI -- Implemented the flash service.
Change-Id: I4fb03f4c8df687ab499921d1bf2b8cb424ec306e
2015-02-05 11:39:37 -08:00
Ray Milkey
ed0b1663ab Fix tests that were hiding the setUp() mthod in the JerseyTest framework
REST API tests were defining a set up method called setUp(), which had
the unwanted side effect of hinding the parent class' implementation.
Made the set up and tear down methods for the tests have unique names so
both will be executed.

Also fixed some javadocs while editing the files.

Change-Id: Ifaa75fe650d5909b066769e5e12cb5c834267a20
2015-02-05 18:25:54 +00:00
Yuta HIGUCHI
151cad848a Use TestHazelcastFactory
- Modified Hazelcast related tests to use TestHazelcastFactory.
  Hazelcast instances generated by it uses mocked network, which might resolve timing issue (ONOS-368).

  See: https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/test/java/com/hazelcast/test/TestHazelcastInstanceFactory.java

Change-Id: I18f1c2d855eebf679a4be97a53cea2c808acfd04
2015-02-05 18:12:38 +00:00
Kunihiro Ishiguro
f1bff5075a WIP: proxy NDP for IPv6.
ONOS-924

Need to implement test cases.

Change-Id: I86b0cb8c3c8d75f7276778e04c1a7166c9bb2f59
2015-02-05 08:58:39 +00:00
Yuta HIGUCHI
293ede0bcf Workaround for ambiguous isA method
- Eclipse complains isA() is ambiguous.
  'isA' method does exist in both EasyMock and hamcrest Matcher.

Change-Id: I6b98dbe1b4f1f0ce4fcbc2dcaded9b666fc19b33
2015-02-05 00:08:41 -08:00
Pavlin Radoslavov
d0fd841978 Implement some of the missing Selector and Match Conditions
Work toward ONOS-509

The following match conditions are added/implemented:
  - IN_PHY_PORT
  - IP_DSCP
  - IP_ECN
  - METADATA

Change-Id: I6f529ee90b2b9e0d5046f83c034e8be3faf86d8b
2015-02-05 05:44:00 +00:00
Thomas Vachuska
ebf5e54d44 ONOS-542 Added ability for app bundle to carry it's own artifacts, including feature repo. Fixed onos-package script. Added JSON output to CLI.
Change-Id: If4f2c774d3fc2d68c0a8e91b3084b99d7c75d927
2015-02-05 05:22:53 +00:00
Sho SHIMIZU
301dc8ed29 Mask files under core/store/trivial/data/ from git
Resolve ONOS-913

The directory is added to .gitignore

Change-Id: If70e4f96961bc49df6ef70f1dc5aa0d13c1fadfa
2015-02-05 05:11:23 +00:00
Yuta HIGUCHI
088e268b43 Fix fall back default version
Change-Id: Ic6cf20e71323e75b5a0359c99bc6206030f96a0d
2015-02-05 05:10:05 +00:00
sangho
5afd02ad09 ONOS-894 : Implemented GroupProvider
Change-Id: I2755abd433921a420ad545fcf6fef61e90a8b89f
2015-02-05 05:02:48 +00:00
sangho
8995ac580d ONOS-958: Add a Group action to TrafficTreatment subsystem.
Change-Id: I2a377508b9721ee96a5a52b0bb2ed3a960c982ce
2015-02-05 05:00:56 +00:00
Ray Milkey
540b2ce182 Make JSON codecs immutable
The contract for JSON codecs requires that they have no
local context.  Make them all immutable, and test that they
stay immutable.

Change-Id: Ia3930b844ede231940da05699f5f08605f946e0c
2015-02-05 04:59:22 +00:00
Pavlin Radoslavov
203189901e Renamed private method to avoid naming confusion
DefaultOpenFlowPacketContext.inport() -> pktinInPort()

There is a public method DefaultOpenFlowPacketContext.inPort()
and having another method called inport() is confusing.

Change-Id: I6b703eb640edab24fb0112bd2019395eeb3d8421
2015-02-05 04:54:51 +00:00
Simon Hunt
24077f15ff GUI -- Refactored (condensed) the Topo Event Service.
Change-Id: I58ecac5ed6fe91ae81a44097c3a48d564ccac4bb
2015-02-04 17:58:21 -08:00
Simon Hunt
1894d798d3 GUI -- Added handling of hosts and links. (Still WIP).
Change-Id: I0ad3b16d47b264b6812f732f220230a2ae92de02
2015-02-04 17:09:33 -08:00
Pavlin Radoslavov
f8a0f6c2e4 Fix for bug ONOS-959: BgpSessionManagerTest unit test failure
Previously, when checking the winning BGP routes, we expect-and-wait until
the size of the table with the winning routes has certain size, and
then we verify whether it contains a particular value.

This is error-prone and time-sensitive. For example, if we are testing
whether a particular route from one BGP peer is replaced with the
same route from another BGP peer, the test might fail because the
table size doesn't change.

Modified the unit test to expect-and-wait until the expected route
is received.

Also, fixed some of the paragraph tags in some of the Javadocs.

Change-Id: Ia96dc7c412e78bbc9279dd935dec6919096adeb3
2015-02-04 16:03:51 -08:00
Yuta HIGUCHI
f61665d730 Update jacoco version to 0.7.2
- It seems to have Java 8 related fixes:
  http://www.eclemma.org/jacoco/trunk/doc/changes.html

Change-Id: I5093ff1337fb074b4a6865c14887cb98c370ff1e
2015-02-04 12:31:14 -08:00
Yuta HIGUCHI
1cb9a52fb4 Fix for pom related error
Fix for following error:
[ERROR] Project requires an incorrect minimum version of Maven.
[ERROR] Either change plugin versions to those compatible with 3.0.0
[ERROR] or update the pom.xml to contain
[ERROR]     <prerequisites>
[ERROR]       <maven>3.0.1</maven>
[ERROR]     </prerequisites>

Change-Id: I0ba1530a97ab37ccfa1655e74ebbc11ebcf2a18f
2015-02-04 20:23:04 +00:00
Yuta HIGUCHI
ee839a6665 Remove duplicate dependency
- commons-configuration

Change-Id: I774180d2525497a52c2e730aebf2d5eb5fcf09f8
2015-02-04 19:58:31 +00:00
Ray Milkey
51365f3751 Fix Javadoc warning about IOException throws
Change-Id: I65d7b37da0a30a1f56640eec65a43f12e723f8f2
2015-02-04 11:24:22 -08:00
Jonathan Hart
ecaa8a8f29 Increase delay for time-based test which is failing a lot.
ONOS-867

Change-Id: I4e93f72ca6a07dba83bffc76f3cf2c09fa909c1f
2015-02-04 18:19:32 +00:00
Jonathan Hart
4f397e80d8 Explicitly disallow null values in the map
Change-Id: I3b8d287a534e85d9454ca261a8eb666c477c43c1
2015-02-04 09:10:41 -08:00
Jonathan Hart
9e817ec6dc Enable GossipIntentStore by default
Change-Id: I31e7fc590436b6d784b896b90776bc1fe348f7a5
2015-02-04 08:52:00 -08:00
sangho
87af81190e Added SpringOpenTTP switch driver (ONOS-822/ONOS-682).
Modified OpenFlpwRuleProvider to support FlowRule with multiple-table feature.

Change-Id: If95284077b96213593c5c1e3ab12900001bf49a2
2015-02-04 05:53:53 +00:00
Simon Hunt
51056590c1 GUI -- Refactoring updateNodes() to make the code more readable.
Change-Id: Ib375b5573a4670a67dd94a6532caf078be33beb0
2015-02-03 21:48:07 -08:00
Simon Hunt
78c10bf559 GUI -- Minor fixes to themed coloring of device icons.
Change-Id: I4084b7c640f70d43a57953749f11a78530620c17
2015-02-03 21:18:20 -08:00
Simon Hunt
5064c2223e GUI -- fixed broken unit tests.
Change-Id: I6563d9965d1d4fd47b0302b090f09431eb25a49a
2015-02-03 20:49:10 -08:00
Simon Hunt
ac4c6f732a GUI -- Migrating the add/update device functionality to the Topology View. (WIP)
- still a lot of work to do.

Change-Id: I0453b7e2ec20a8a8149fd9d6440a13a3d43fbfd6
2015-02-04 04:33:50 +00:00
Jonathan Hart
f910823cae Pulled internal event classes out of EventuallyConsistentMap class
for clarity.

Also switched to using Pair instead of my own Entry class for returning
entrySet().

Change-Id: I78d84f9fe931257d4ffe1d48c9d0de25f18c638f
2015-02-04 04:22:03 +00:00
Jonathan Hart
584d2f3c54 Unit tests for EventuallyConsistentMapImpl.
Most functionality is tested here, except for the anti-entropy code.

ONOS-859.

Change-Id: Ib9e83518f8a91d599364106bc0f7d869e62f5133
2015-02-03 19:34:54 -08:00
Bri Prebilic Cole
dee466269f GUI -- Icon service work:
- Changed color of check and xmark icons for dark and light themes.
- Only appends glyphs that don't have a "-" as the name.
- Wrote unit tests for new icons.

Change-Id: Ia21fa33673e3adcfd8717f899d226b0d24dfcc51
2015-02-04 01:08:00 +00:00