3538 Commits

Author SHA1 Message Date
Thomas Vachuska
d32bfdcaa9 Fixing javadocs.
Change-Id: I49faf425e0f9aa53547caf42f1d4025fb8d9dba6
2015-02-21 16:39:25 -08:00
Thomas Vachuska
fe8c98ad0b Adding support for user interface extensions.
Change-Id: I1e41d16efc11be31ad4c2fb0c09e86e3dfd26706
2015-02-21 16:17:35 -08:00
Thomas Vachuska
6f94deddef Converted all executors that previously used namedThreads to use groupedThreads instead.
Change-Id: I048709308270de5b7552bc4e8395b0f7201d5949
2015-02-21 14:02:38 -08:00
Sho SHIMIZU
6c28f8371c ONOS-1066: Move IntentCompilers to the dedicated package
Change-Id: I3e588cab0559093d389c9d44d2c7df536cabe953
2015-02-21 18:05:12 +00:00
Sho SHIMIZU
b70521702d Remove dependency on PointToPointIntentCompiler
Create an installable intent, not relying on an IntentCompiler.
This change enables IntentCompilers to be moved to a dedicated package.

Reference: ONOS-1066

Change-Id: Ie5bca33720232afaa4d6642d4f9fda933f6d00e3
2015-02-21 18:01:51 +00:00
Sho SHIMIZU
0e738806ff Move unit tests to PointToPointIntentCompilerTest
The unit tests only depend on PointToPointIntentCompiler and it would be
obstacles when IntentCompiler subclasses are moved to a dedicated package

Change-Id: Ifbfe5ef2a4bae014d2b6cae599fe8860a54e01ca
Reference: ONOS-1066
2015-02-21 17:58:07 +00:00
Sho SHIMIZU
575a364517 Remove obsolete todo comment
Change-Id: I9ebb573e8c259abd71f2cc90bae20764c10cf620
2015-02-21 09:47:50 -08:00
Sho SHIMIZU
b0a47d41c8 ONOS-1048 - Define interfaces instead of using IntentManager
- Define IntentProcessor interface containing methods to process an intent
- Pull out IntentCompiler related tasks to CompilerRegistry
- Pull out IntentInstaller related tasks to InstallerRegistry
- Create an IntentProcessor subclass as inner class in IntentManager

Change-Id: Ia3e8d574a1053e7ddc9b961873ef758c9e0b1b26
2015-02-21 09:33:13 -08:00
Jonathan Hart
054da97e83 Implement command to view Raft partitions
Change-Id: I9d3cea49877d69c2d7935dadbbad2770349e793a
2015-02-21 17:00:39 +00:00
Pavlin Radoslavov
b9e50dff43 Fixed a bug when parsing configuration properties for ReactiveForwarding
by catching the appropriate exception.

Apparently, if a property is configured/enabled in file Foo.cfg, e.g.:
  flowTimeout = 10
then the corresponding object/value in the Dictionary returned by
ComponentContext.getProperties()
has class type String.

However, if the property is commented-out, e.g.:

then the Dictionary still contains an entry for "flowTimeout", but
its class type is Integer.

Also, updated similar code elsewhere that was catching the generic
Exception with catching more specific exception(s).

Change-Id: I33ec348eb9efe3188e22cfc8cee2bb704948726d
2015-02-21 15:57:17 +00:00
Brian O'Connor
71503cd103 PartitionManager: reduce number of partitions to improve stability
Change-Id: I972583c0ba397017b6bfa40f5ddf6f13253c6d45
2015-02-20 22:15:55 -08:00
Brian O'Connor
b289422189 EventuallyConsistentMapImpl: pushing serialization and sending to caller thread
This has the effect of limiting the caller so that it can't overrun the single thread that previously did the job.

If you let this back up, it will use all of your memory. :(

Change-Id: I0a3b93cfa7004e0430d228a68c60e2b7ba966d4e
2015-02-20 22:15:55 -08:00
Brian O'Connor
64a0369dfb IntentInstaller: changing from Set to Collection to improve perf
Change-Id: Ia7f0f7d893645c7528ac9f51acff133f6d82383d
2015-02-20 22:15:46 -08:00
Sho SHIMIZU
1ee563a503 Remove unnecessary non-null check assertions
Private methods need to ensure to return a non-null value

Change-Id: Ie1fffc52282660c4d32c8fbedd9f47049b2e74ae
2015-02-21 05:53:30 +00:00
Ray Milkey
8dc820868c Fix some compiler warnings about unchecked types
Change-Id: Ib360aa05fd0e194a65bbc0b624447e4bdb4ced93
2015-02-21 05:52:36 +00:00
Pavlin Radoslavov
bf23c550f1 Added new methods IPv4.getDscp() / IPv4.setDscp()
and IPv4.getEcn() / IPv4.setEcn().

Those can be used to get/set the DSCP and ECN bits in the IPv4 header
without explicit bit manipulation at the caller.

Change-Id: Ia7c5779abae5c4fc7a343e3f7ef3355eb7e86e3d
2015-02-21 02:49:01 +00:00
Thomas Vachuska
0249b5377d Enhancing intent-perf logging
Fixing defect in distributed app mgmt
Reducing DB manager heartbeat aggressiveness

Change-Id: I9ba948a2b2166625c56566502143c0d27f9a2c44
2015-02-21 01:32:52 +00:00
Pavlin Radoslavov
ab8553a52a Fix a bug: there are two ECN bits in the IPv4 header, not three.
Change-Id: Ibdfce817f2a506644e0f9cd16f46cf6ab1f75eb7
2015-02-20 14:13:50 -08:00
Ray Milkey
144eec5207 Fix Javadoc warnings
Change-Id: I366f2b9f3c11645a3392e0689619bfbad7a9eedd
2015-02-20 20:54:26 +00:00
Simon Hunt
2bfbad2d7a GUI -- TopoView - Oblique - removed unreferenced ThemeService injection.
Change-Id: Ie993faeaeb62538f52b6289ec3e2af90282be70c
2015-02-20 11:57:11 -08:00
Simon Hunt
c3c5b678a0 GUI -- TopoView - Re-instated the oblique view function. (Keystroke 'Z').
Change-Id: I1bc4c11590660142a6bc9f5f71c06a664dbfa80b
2015-02-20 19:49:51 +00:00
Dusan Pajin
0d1d48f474 Additional configuration parameters in onos-app-fwd
Additional configuration parameters that can be configured in the configuration file (org.onosproject.fwd.ReactiveForwarding.cfg),
that determine application behavior:
- packetOutOfppTable - application will use OFPP_TABLE port in PacketOut message, sending packet back to the OpenFlow pipeline, instead of using switch port
- flowTimeout - configuring reactively installed flow timeout
- flowPriority - configuring reactively installed flow priority
- matchDstMacOnly - reactively installed flows will match only destination MAC address - behavior as legacy L2 switches. This options overrides all other options below.
- matchVlanId - reactively installed flows will match default condition with additionally with VLAN ID field
- matchIpv4Address - reactively installed flows will match default conditions, plus IPv4 address and Protocol field
- matchIpv4Dscp - reactively installed flows will match default condition, IPv4 + with IPv4 DSCP and ECN fields (need matchIPv4Address enabled)
- matchIpv6Address - reactively installed flows will match default condition with IPv6 address and NextHeader field
- matchIpv6FlowLabel - reactively installed flows will match default condition with IPv6 address and IPv6 Flow Label (need matchIPv6Address enabled)
- matchTcpUdpPorts - reactively installed flows will match default condition with IPv4 or IPv6 address and TCP/UDP ports (need matchIPv4Address or matchIPv6Address enabled)
- matchIcmpFields - reactively installed flows will match default condition with IPv4 or IPv6 address and ICMP type and code fields (need matchIPv4Address or matchIPv6Address enabled)

Change-Id: Ieef67a1a12f6341d4de3b07e1226affec66d361a
2015-02-20 19:34:35 +00:00
Yuta HIGUCHI
6a47964aad Instruction related fixes
- Removed redundant equality check. (ONOS-975)
- Enforced using Instruction Factory methods.
- cosmetic fixes.

Change-Id: I178b55f8568c1a9132f0aa88465b8b34dc2b2df2
2015-02-20 19:12:19 +00:00
Jonathan Hart
e6f8400f83 Cleaned up dependencies after routing code shuffle.
Change-Id: I1388749f77ef9b3b327df2ee745fdb7cec510708
2015-02-20 19:08:00 +00:00
Ayaka Koshibe
d2c7ad2068 NullLinkProvider restructured with a CachedThreadPool. This should in theory
allow more LinkDescriptions to be generated.

  - patch 3/4: Some cleanup/sanity checks added.

Reference: ONOS-1033

Change-Id: I0b35585d5fdec3f7e6c921172f39f67dd6723dec
2015-02-20 19:01:56 +00:00
suibin
1a7b7bd956 fix calculation on event rate
Conflicts:
	providers/null/link/src/main/java/org/onosproject/provider/nil/link/impl/NullLinkProvider.java
	tools/package/etc/org.onosproject.provider.nil.link.impl.NullLinkProvider.cfg
Change-Id: I955abaec4c3906441ada91d97ed30854a8ce44f8
2015-02-20 18:55:40 +00:00
Brian O'Connor
8fc739af47 Disabling anti-entropy messages to stabilize performance of intent store
Change-Id: Ic66c6d710e6bc4bc82496c38a5b9955e58f72e73
2015-02-19 22:32:15 -08:00
Brian O'Connor
bcfeadb223 Improvements to IntentPerfInstaller
* adding total to log
* using local devices and keys
* added delay between cycles
* print time if cycle is delayed

Change-Id: I16a3c041dd2e920695ab782d22fe6db8abad7da8
2015-02-19 21:51:29 -08:00
Brian O'Connor
2952e3b7b6 updates to EventuallyConsistenMapImpl to improve parallelism
Change-Id: I7bf29c02380f630e592d980d0795efc6ac13167a
2015-02-19 21:51:27 -08:00
Brian O'Connor
be28a87c0e Chaning IntentStore.isMaster to take a key
Change-Id: I2d04a6aa7418e06137b0688bcb4e3af060a02b63
2015-02-19 21:50:20 -08:00
Madan Jampani
7e6cfe305e ECMap: synchronization free removeInternal
Change-Id: I89b88d11b830de5ceb97fdc3fb91ae51bc1bb1cb
2015-02-20 02:20:36 +00:00
Simon Hunt
96f88c675d GUI -- TopoView - Linking Oblique module in.
- updated oblique test scenario events.

Change-Id: I590f22fbbc356c564cefe8d87e73fed701d88f98
2015-02-19 17:57:31 -08:00
Bri Prebilic Cole
40be6b2e9c GUI -- ButtonService - modified IconService to load glyphs without icon mapping
- created button and toggle functions in ButtonService with unit tests

Change-Id: If4d35e3ed7df8c1b8f7355f63f39d0c5d84db753
2015-02-20 01:23:38 +00:00
Simon Hunt
ef1138da77 GUI -- TopoView - Skeleton for oblique view.
Change-Id: Ic1b0cc6ffd83128c8267645ecff8363ba8c0de5f
2015-02-19 17:14:08 -08:00
Jonathan Hart
3469e60239 Move sending advertisement outside synchronized block
Change-Id: I1709fecbec5e6f5ac245b535c14a5c0b2aea2820
2015-02-19 17:01:40 -08:00
Ray Milkey
71ade56cbf Refactor Intent subsystem to eliminate using FlowRuleBatchOperation
Change-Id: Iee76dac5fa9935713ffc370b34ac47d9286ff351
2015-02-20 00:59:03 +00:00
Madan Jampani
97cf7c4138 Using ClusterCommunicationService instead of ITopic for notifying cluster members of leadership events.
Change-Id: I164f30da436f3e4f65c4e938c25bb2aa2faa16c3
2015-02-20 00:56:07 +00:00
Ray Milkey
cc53abd74e Favor adapter classes over service interfaces in unit tests
In unit tests that are mocking an entire interface, instead
extend the Adapter class so the unused method overrides
are no longer needed.

Change-Id: I6e332cc5cb59410f163deea223fbc94e73d83917
2015-02-20 00:35:32 +00:00
Simon Hunt
0e48c29425 GUI -- TopoView - re-instated Equalize Mastership Roles.
Change-Id: I8e3970e6da3a0854592a76141b2bc3f2fcd6a3c3
2015-02-20 00:17:21 +00:00
Brian O'Connor
9b7a32d1e3 ClusterCommunicationManager: only serialize once for broadcast
Change-Id: Ife78af3c758c87eeb8a79cdbf51b5307b8b1ca88
2015-02-20 00:12:17 +00:00
Simon Hunt
e01de782e2 GUI -- Protect against non-existent link element.
Change-Id: I6638de69c9d826c7697468727004c4392bf4925a
2015-02-19 16:01:07 -08:00
Brian O'Connor
041515f5f2 temporary fix for ONOS-1144: slow IPAddress.toString()
Change-Id: Ia7b9a71bb8c5b90dbc6256c35e8aa5a6567299c8
2015-02-19 23:50:59 +00:00
Thomas Vachuska
33bd2302ce Fixed onos-log so ctrl-c will only kill the current monitor an added onos-log-kill command to kill all monitors.
Change-Id: Id76b13f801aae0d9878baa265601717ef20613c8
2015-02-19 15:22:47 -08:00
Simon Hunt
27a5cc8b45 GUI -- Moved cap() utility function into FnService.
Change-Id: I0afdb38e5b37e085ffebaedc74d3cb2857472b12
2015-02-19 14:50:02 -08:00
Madan Jampani
337bb44579 ECMap: Moving message serialization to the background
Change-Id: I0de398c6ce77bfb0729db03ab2ec4ea7f55a8284
2015-02-19 22:49:08 +00:00
Simon Hunt
62c2f8f140 GUI -- Removed dead code from topo view.
Change-Id: I9bb7c856a13cc7bdb9e39f6f6c896bfb434658a7
2015-02-19 14:19:10 -08:00
Simon Hunt
56004a896f GUI -- SvgUtil- added scale, skewX and rotate functions.
Change-Id: If7c3af6bba81905b3bbb887edcf9bf5acbb927e1
2015-02-19 13:53:27 -08:00
Madan Jampani
b28e4ad8de Fix EventuallyConsistentMapImpl unit tests.
Change-Id: I5d114bac40c16d0f67330ba2b4b922a4301666b2
2015-02-19 12:33:03 -08:00
Madan Jampani
04f46155be Disabling all tests in EventuallyConsistentMapImplTest temporarily.
Change-Id: I22f124b1ab5ae889396d9f29ac8e49e1c3349dca
2015-02-19 20:26:34 +00:00
Brian O'Connor
4e6c17d2b9 Fixing hash for Intent keys
Change-Id: Ie7807d95b3e58f2e79c6127251ef355b77ba05ff
2015-02-19 12:00:26 -08:00