2466 Commits

Author SHA1 Message Date
Madan Jampani
14a38dade6 Ensure local read/write operations are causally consistent when a ConsistentMap is build with weakConsistency option
Change-Id: I1ec96048b646f5074e5e50001e08753212b98395
2015-11-16 23:08:37 +00:00
David K. Bainbridge
03c1fa9b31 ONOS-3326 allow more control over heuristics to select an IP address used for clustering
Change-Id: Ie313efe9249df7581234e7e2e5952cdf3ac43dbb
2015-11-16 23:00:17 +00:00
Jonathan Hart
f563830299 Protect against exceptions thrown in application's packet processors.
These exceptions should not bubble up to netty because that will result in the
connection to the switch being closed.

For now we catch and log the exception - in the future we could consider removing
misbehaving packet processors.

Addresses ONOS-3368.

Change-Id: If507adafba39bf705c27286c8e48af3f955d1eff
2015-11-16 19:17:17 +00:00
BitOhenry
914c7ad302 [ONOS-3363] Create arp_tha selector to onos
modified:   core/api/src/main/java/org/onosproject/net/flow/DefaultTrafficSelector.java
	modified:   core/api/src/main/java/org/onosproject/net/flow/TrafficSelector.java

Change-Id: Id97469c133e0c10e44cda385dabb7c4ecca4af2b
2015-11-16 17:42:42 +00:00
BitOhenry
b53ac6cdbb [ONOS-3361] Add nicira extension of resubmit instruction to onos
modified:   core/api/src/main/java/org/onosproject/net/flow/instructions/ExtensionType.java
	modified:   drivers/src/main/java/org/onosproject/driver/extensions/NiciraExtensionInterpreter.java
	new file:   drivers/src/main/java/org/onosproject/driver/extensions/NiciraResubmit.java

Change-Id: Ib0a4a7b6360dd1629d0d2f74ef0d56f2c2a91a20
2015-11-16 17:22:33 +00:00
Jonathan Hart
d9df7bd278 Fix naming convention issues in preparation for stricter checkstyle enforcement
Change-Id: I918b7b1dcf6424a526b6b26b89acc9a57d807fec
2015-11-13 16:28:02 -08:00
Thomas Vachuska
710293f3af ONOS-3346 Fixed NPE when disallowing devices via network configuration.
Change-Id: I88986681e446f2fd298aa5c4d47e709da5be9e52
2015-11-13 21:39:03 +00:00
Thomas Vachuska
1627dc8ed6 ONOS-3356 Fixed NPE when processing configuration of a non-existent device.
Change-Id: I00369a67c406634b2ee7d379cad6e0fc41842388
2015-11-13 21:38:43 +00:00
Phaneendra Manda
2be2f88066 Class name corrected while retriving stream from json
Change-Id: I325bf61d001194953db137131c414bb877d8613b
2015-11-13 19:16:16 +00:00
BitOhenry
cc024ebd7e [ONOS-3273] Add arp_sha or arp_tha Criteria to onos
new file:   core/api/src/main/java/org/onosproject/net/flow/criteria/ArpHaCriterion.java
	modified:   core/api/src/main/java/org/onosproject/net/flow/criteria/Criteria.java

Change-Id: I4a7aa2e0de720aab7f49363a1f28ca93bf36d067
2015-11-13 18:59:42 +00:00
ilhem fajjari
b0a0684b43 add key parameter to PathIntent and MplsPathIntent constructors
Change-Id: I157c1e3e10dc3e3ebc1dbc6f9a1c9fe769337ee3
2015-11-13 18:51:09 +00:00
Phaneendra Manda
bcdb7c9c6a Tabs converted to spaces in pom files
Change-Id: Id20ba34388b1f41d0d542e773d49b221c0bfb3f7
2015-11-13 14:03:30 +00:00
HIGUCHI Yuta
14c0436b3f Reversible String representation for PortNumber
Change-Id: I2b5f45bd0652ef7fdcacfac64248e299dda10785
2015-11-13 05:36:39 +00:00
Thomas Vachuska
761f0040f3 ONOS-1684 Added support for app dependencies.
Change-Id: Iae318c24c3c9bd43d84318c79ac420fc85d5d599
2015-11-12 21:37:58 +00:00
Aaron Kruglikov
a62fdbb9ca Adding an option for persistent flow storage.
Change-Id: I1dd70c9f2ea9cd99ef5a55eaa4b54968f7d3c55f
2015-11-12 18:26:06 +00:00
Charles Chan
ec0425c18c Carry previous location information in HostEvent
Change-Id: I06957d368a8a547cc3adb36bce4aaf96c432f4c8
2015-11-11 12:09:38 -08:00
Sho SHIMIZU
7326188f3f Fix grammatical errors
Change-Id: I0bade79fc8c1ca528785732a2340d28f500830e5
2015-11-11 02:57:48 +00:00
Charles Chan
009c30805c Fix duplicate host event
Change-Id: I632a1482e7b1b768ce7a0243cc8b6b398b9825b7
2015-11-10 18:19:53 -08:00
Sho SHIMIZU
73130f790f Refactor: Use putIfAbsent() to show the intention more clearly
Change-Id: I2fad1709cc6f8827d382a07b55cd89d2814ede36
2015-11-10 17:46:55 +00:00
Luca Prete
f70d399a81 Refactor ProxyManager Tests and added functionality to manage traffic coming and going through vlan interfaces
Change-Id: I8d748c42b48d0956c670be12ff2742cb2022fa62
2015-11-10 00:09:13 +00:00
Madan Jampani
a85c6941dc Fix eventDispatcher cleanup in ResourceManager
Change-Id: I37c82c7dab75def607268e36f2f98e04d41581d9
2015-11-09 14:41:48 -08:00
Sho SHIMIZU
93a74b301f Fix bug that exception is thrown when key doesn't exist
Change-Id: Ic107b82202f64fb81709310b5e9a705c7e66d542
2015-11-09 22:17:05 +00:00
Sho SHIMIZU
e7db6149b4 Register the root resoruce path
The root resource path must be registered before use of ResourceService

Change-Id: I9739522dd28300c27e209f2c88c937537f6a110e
2015-11-06 23:53:11 +00:00
Saurav Das
4f98008c10 CORD-48 Added support for broadcast next objective in OFDPA driver.
Changed groupid to show in hex for cli command 'groups'

Change-Id: I86474912a9fd775c36d5bc49545eaa58ecc46b47
2015-11-06 23:41:10 +00:00
Sho SHIMIZU
364cbacee8 Make the old resource APIs deprecated
Change-Id: Ib3158f3f363c928353f6ef82aac98a8e4e589953
2015-11-06 23:39:06 +00:00
David K. Bainbridge
34cc1025ac ONOS-3325 - enable configuration of local IP via environment variables
Change-Id: Ia8df1c126a76c8060e869554316593598dc5ec3e
2015-11-06 23:28:05 +00:00
Sho SHIMIZU
0b9c46889f Remove dependency on LinkResourceService from ObjectiveTracker
This resolves ONOS-3262.

Change-Id: I57b51b9d8ef1ed2d847ecddeca279b8afdb8725e
2015-11-06 11:25:45 -08:00
Sho SHIMIZU
fa62b475da Implement event notification of resource event
When a resource is registered or unregistered, a resource event is notified

Change-Id: I40e66761966ef2126366424a14bb3193fc850e5a
2015-11-06 11:25:37 -08:00
HIGUCHI Yuta
ca9cc8e28e Avoid use of Objects.hash when there's only 1 params
- directly call #hashCode() when hashed Object seems non-null
- replace with Objects.hashCode(Object) when Nullable
- replace with Long.hashCode(long), etc. when primitive

Change-Id: I08c24ebbe94cf4162d1491209a14baf953163e41
2015-11-05 21:47:59 +00:00
Sho SHIMIZU
3e255b1b73 Remove misleading todo comment
This patch relates to ONOS-3279.

Change-Id: I58d758dafa6e04fca0979d9a478078b03f51b5a1
2015-11-05 16:39:18 +00:00
Thomas Vachuska
c65dd7198e ONOS-3321 Added ability for applications to register a deactivation hook.
Change-Id: I284321474dbf9e39e8b61f7b907f637ba6b80aaf
2015-11-04 17:26:58 -08:00
Simon Hunt
cd1502725f ONOS-3320: PropertyPanelTest fails in non-English locale.
- Added formatter() instance method that can be overridden by unit test.

Change-Id: I38ee045edee852c95e27bead46800fb5dad4cf88
2015-11-05 00:04:57 +00:00
Sho SHIMIZU
f1a6279ea0 Enable ResourceRegistrar
Change-Id: I23b1c33ada224f302e08c0f6e8dfa7264048e19b
2015-11-04 21:12:07 +00:00
Sho SHIMIZU
1e0a34cea7 Fix bug that true is always returned even in failure cases
Additionally, remove catch block handling TransactionException, which
doesn't have to be caught in user side any more.

Change-Id: I359b50dbe0e1074a2bc4c8850459cb4463669aa8
2015-11-03 23:10:10 +00:00
Steffen Gebert
ba2d3b7871 Implement OFActionEnqueue (OpenFlow 1.0 only)
Realize the QUEUE Treatment using OpenFlow 1.0 Enqueue action.

The ConnectivityIntentCommand's --setQueue parameter is extended by a notion of
<port>/<queue> to support the difference from OpenFlow 1.3 Set-Queue, which is
not bound to a port.

Change-Id: I28cf70a7c004a1a3a14361e5186cfe42f09f1356
2015-11-03 22:55:40 +00:00
Sho SHIMIZU
d936b42182 Change the return type of commit() to indicate the result
Change-Id: I4658a89fb0a496baa929579ab7800d00e842d685
2015-11-03 18:54:28 +00:00
alshabib
dc5d8bd75d fixing bug that would not let device come back online
Change-Id: Ie2cc9c35159320d5abab0b38984baecc2928b00e
2015-11-03 00:58:25 +00:00
Jonathan Hart
3c25916dff Generic extensions to the treatment API to support protocol extensions like
OF experimenter actions.

Change-Id: I88cc5896d17fdbf89807f911f9c23e4f19f6a5ad
2015-11-02 22:02:11 +00:00
Ray Milkey
ccda0b5dc7 Enable checkstyle rule to enforce package-info.java files
Change-Id: If837601380e4950b46ad1332bd3c20ef59cc216e
2015-10-30 17:21:08 -07:00
Sho SHIMIZU
f26e692cf3 Remove dependency on LinkResourceService from MplsPathIntentCompiler
In addition, revise test to make the situation more realistic

Change-Id: If23648b77f2eddbe27873711dab3b196a4a2729d
2015-10-30 17:26:57 +00:00
Sho SHIMIZU
cc0e65dbb0 Move MPLS label selection logic to MplsPathIntentCompiler
Change-Id: I2c64ca2a6ac363a0138e6940471893673ce3b83f
2015-10-30 15:48:58 +00:00
Ayaka Koshibe
144bab0c35 opticalUtils advertises correct port types
This should proactively prevent linc-OE from misbehaving if support for changing
port type through the network config system is added.

Change-Id: I80667f0292922eca37a51f3e461b6745ecbf9d46
2015-10-30 05:58:44 +00:00
Sho SHIMIZU
81cdc395b7 Make MPLS label request specifiable for a particular MPLS label
Change-Id: I4626229040c61e927a468ab5c486a907af0108ae
2015-10-29 22:47:47 +00:00
Sho SHIMIZU
36163f94bb Make LinkResourceService deprecated
Change-Id: Iff92b25f51b9b1d8da4e8ed869afc51e5048d978
2015-10-29 22:47:08 +00:00
HIGUCHI Yuta
501c465c04 Add DataRateUnit to help specifying Bandwidth.
Change-Id: I2b83922d98cab5571408b920a89bb8b704934255
2015-10-29 22:39:44 +00:00
Sho SHIMIZU
7f44cfc47d Remove dependency on LinkResourceService from optical intent compiler
Change-Id: I1fae0a33817de973676a02cf40d4bb378aac0460
2015-10-29 22:16:47 +00:00
Sho SHIMIZU
4a503af8c5 Add a missing field to show it in toString()
Change-Id: Ie2d4a2c37319fe60914d8e8a270f6b420e8df06e
2015-10-29 14:45:16 -07:00
Charles Chan
c42e84e5b2 [CORD-46] Create a broadcast group for each subnet
DONE
- Expose subnet-to-ports information from DeviceProperties and DeviceConfiguration
- Create subnetNextObjectiveStore to store <DeviceId, IpPrefix> to nextId mapping
- Implement broadcast NextObjective in SpringOpenTTP
      Use ALL group type to achieve broadcast

TODO (not in this submission)
- Push ARP table for a host when its location is learned
- Push default ARP table miss rule. Action = to the broadcast group

Change-Id: I2de28095e85289e75af3fc7a02c811b270b342ad
2015-10-29 21:16:45 +00:00
Sho SHIMIZU
c25a00860a Move wavelength selection logic to OpticalConnectivityIntentCompiler
Now, LinkResourceManager doesn't have a logic to select lambda(s)

Change-Id: I008d770f4f142f3d67afa734e50bd8761a0aafd2
2015-10-29 17:09:16 +00:00
Madan Jampani
fcc49c5467 Remove mapdb dependency from core api pom
Change-Id: Idab32efc1c2f627949a8476bbbcc910323e6f8ff
2015-10-29 16:49:09 +00:00