1198 Commits

Author SHA1 Message Date
Thomas Vachuska
762a2d8d0b Fixing various exception issues.
Change-Id: Ic02d66c2ebceda8c05f93b367aa9ff38a11a7a5b
2016-01-06 18:49:59 +00:00
HIGUCHI Yuta
1979f55af7 Bug fixes for ONOS-3509
- Forwarding behavior added to {Device,Link}Store by ONOS-490
  cauesed false update information sent from ONOS node, which has been detached from the cluster,
  to be accepted by rest of the cluster after the detached node has rejoined cluster.

- Fix for periodic mastership check was left out
  when MastershipService#requestRoleFor(..) return value was changed to Future.

- Fix for triggerProbe() related messages getting dropped,
  right after STANDBY -> MASTER role change.

- Local state (connectedDevices) was preventing
  vertical (Core -> switch) Mastership state synchronization.

- Various debug log, comment added during investigation.

Change-Id: I777beadf04db8a879830a07bfdc7ab0e2279f190
2016-01-06 09:12:33 +00:00
Changhoon Yoon
e71dfa4847 ONOS-3521: SM-ONOS performance improvement
Change-Id: I8643187f2ceb35f8e0701d9e7ddb10098f05b244
2016-01-05 14:14:18 -08:00
Jian Li
fc5ca93765 [ONOS-2809] Support a TransactionalSet data structure
Change-Id: Ia99bc2285b3fea39ee3845f5f6613a45a6a61626
2016-01-04 22:29:54 +00:00
Jonathan Hart
89e981ff59 Update 'last seen' field on flow rules
Change-Id: I7400bd181c41e605c03a60d05b08337e529e080a
2016-01-04 22:17:27 +00:00
Brian O'Connor
880dc20ddb Starting snapshot 1.5.0-SNAPSHOT
Change-Id: If9ce4ca5f5f6d089e9f088e710367f4e2ca1c9b6
2015-12-16 22:53:14 -08:00
Brian O'Connor
5a2856fd01 Tagging 1.4.0 (Emu release)
Change-Id: I55e4dbcecbfac86cccae27aa99a813910bd5557a
2015-12-16 22:47:51 -08:00
alshabib
1400ce9def fix for host remove event when an instance comes back online
Change-Id: Ie9099eabcda7f7e0435a09eeca17e2f8954e051d
2015-12-16 15:05:47 -08:00
Charles Chan
7ba33f498e Add MplsBosCriterion into KryoNamespaces
Change-Id: I7053d616f596be684dbaeaafa3ad9d1a116d622a
2015-12-16 04:34:20 +00:00
Brian O'Connor
6b7707101b Switching back to snapshot 1.4.0-SNAPSHOT
Change-Id: Ie726afc2df730a1009db421328267f2dcfedfd66
2015-12-15 15:48:42 -08:00
Brian O'Connor
d1cdd19530 Tagging 1.4.0-rc3
Change-Id: Iddb1e8adff820e81794bf83f5861519e9a787880
2015-12-15 15:36:45 -08:00
Brian O'Connor
b22ba656bb Switching back to snapshot 1.4.0-SNAPSHOT
Change-Id: Ic0ff8fe27d46b0662f596db9185591736efa6cf9
2015-12-11 17:02:48 -08:00
Brian O'Connor
4aded4c8b7 Tagging 1.4.0-rc2
Change-Id: I7e2916f7b02d297818ad65153aee5e5946f882ac
2015-12-11 16:55:13 -08:00
Saurav Das
423fe2b487 CORD-354 OF-DPA support for link-failures.
Bug fix in flowObjectives store. Adding a removeNextGroup API to the store.

Change-Id: I5890411e5b4eabdc057402687ada26e539500f8f
2015-12-11 17:00:52 +00:00
Madan Jampani
d61f2b1a54 DistributedPacketStore: Retry indefinitely if consistent-map operations fail due to concurrent modification exception
Change-Id: Ibb9fd6ec65f61077cb8fa7313a350315914ea69d
2015-12-11 05:30:17 +00:00
Madan Jampani
c7f49f94a2 ONOS-3565: Retry host store updates that fail due to concurrent modification
Change-Id: Id2af2795b0c9f9b1c8d0c4985781ff24e576c7e3
2015-12-10 20:41:05 +00:00
Charles Chan
f4838a77fe ONOS-3552 Do not return group information when a device is unavailable
Change-Id: I84753bf95c47bbebb3156474c03c2860c51ecb4e
2015-12-10 01:30:47 +00:00
Brian O'Connor
a3e5cd5cde ONOS-3023 Changing flowTable sets to map so that we can compare
stored vs. new rule when adding and removing

Change-Id: Ibd885023d550af3b2220056fbdf44ad8ec7fefda
2015-12-10 01:16:46 +00:00
Brian O'Connor
777b0ae500 ONOS-3567 Protecting against NPE in MapValue isNewerThan
Change-Id: I8f2a46956a34d4bf50cb5b116d1c4001917daf1d
2015-12-08 19:42:52 -08:00
HIGUCHI Yuta
1c8493c97b bug fix: type mismatch in mock Database
Change-Id: I529a76207e048f2a53ff66f17cd7a6b7bfa22797
2015-12-08 16:17:34 -08:00
Brian O'Connor
dab0974eca Perform check before updating host in DistributedHostStore
By checking to see if the host needs to be updated, we can
avoid invalidating the local cache in many cases.

This also helps to alleviate slow pingall times with fwd
enabled.

Change-Id: I7d58a488cd91878e6028ddfaae407e849fc10211
2015-12-08 06:30:43 +00:00
Brian O'Connor
905ea22db6 Starting snapshot 1.4.0-SNAPSHOT
Change-Id: I0398bb2093e70d39788888038abb9df6193ccb42
2015-12-05 00:57:06 -08:00
Brian O'Connor
b209dc68e2 Tagging 1.4.0-rc1
Change-Id: Idec5c65021283fa03a8f2530aebba968a5451d8b
2015-12-05 00:56:21 -08:00
Madan Jampani
44d8fbbe9c Revert PersistenceManager change to use karaf data directory
Change-Id: Icc43b4e5718e1834cf93ddcd042bdac2a8a524a8
2015-12-04 12:55:10 -08:00
Saurav Das
4ce4596d62 CORD-367 L2 bridging and L3 routing support with internal VLANs in OF-DPA.
Also includes:
     All forwarding in app is now via nextObjectives (not treatments) - Spring Open driver converts
     non-ECMP forwarding to flow-actions, while OF-DPA driver continues to use groups.
     Convert 'setMeta' methods to 'withMeta' in Flow Objectives API.
     Bug fix in Flow Objective Manager - set of PendingNext is now threadsafe.
     Bug fix in ArpHandler - now recognizes routerIp in addition to gatewayIps
     Removed a bunch of testcode
     Added group count in CLI

Change-Id: Id3b879c5dda78151ca0ec359179f1604066d39fc
2015-12-04 19:49:00 +00:00
Madan Jampani
2b8e189ea5 Added an adapter for PersistenceService to be used in unit tests
Change-Id: Ided127f848b97632b021ea1f1c88d912fe28492c
2015-12-04 19:33:24 +00:00
Thomas Vachuska
41fe1ecad0 ONOS-3515 Added ability to configure different link-weight functions as defaults; or inject custom ones.
ONOS-3516 Added ability to inject alternate graph path search algorithms.

Change-Id: If5831c198a831ae79a9933fc794eb7deab776e2f
2015-12-04 18:22:14 +00:00
alshabib
8a4a600ce6 fix for reactive forwarding failing in a
distributed setting.

Change-Id: I992d62bbbd3d873bc8715419592951704903c49d

making the ECHostStore respect sequentiality of events.

Change-Id: I14fa65fc78742c3ea7d417cddefef9f171472246
2015-12-04 18:21:13 +00:00
Sho SHIMIZU
44f3761e4c Abondon the concept of resources under a link
Resources under a link are tied to resources under both ends of the link,
and resources under a port are thought to be first-class objects compared
to concept of link resources. We will deal with only device related
resources from now on.

Change-Id: I6aa418d1bf64b28374f325db0bc7e393f770dcdd
2015-12-02 17:41:04 +00:00
HIGUCHI Yuta
14e865d063 ONOS-3472 Fixing ConsistentMap key equality
- ConsistentMap's key equality is based on serialized byte[].
  2 Problems fixed by this patch:

 (1) By caching Key -> String representation,
     Cache will use Key's Object#equals for look up,
     which can possibly have different equality than byte[] equality,
     leading to wrong String to be used as a key in backend Database.

     Fixed by reversing the mapping.

 (2) Similar issues with keySet(), entrySet()
     Set based on reference equality needs to be used to avoid
     deduplication based on Object#equals

     Fixed by replacing Set implementation with MappingSet.

Change-Id: I1b727abd2614a9b72b5b1d02ecca2de26493adcc
2015-12-02 04:56:11 +00:00
Saurav Das
8a0732e8ae CORD-48 Implementation of hashing Next Objective in OF-DPA driver. Major changes to ensure multi-ONOS-instance group-chain installation.
Also includes:
     Changes to Next Objective that adds metadata field for applications to optionally send auxillary info to drivers
     Changes to Next Objective that allows more explicit modification of the next objective
     Changes to Forwarding Objective and PendingNext to include hashCode() and equals() method
     MplsBosInstruction included in kryo serializer
     GroupKey's byte[] represented as a hex string
     Bug fix in mpls flow installation to report failure in install
     Bug fix in linkUp in SR app to disallow non-masters to modify groups
     Bug fix in ordering of actions in group

Change-Id: I3e7003f55724c2de79589e43e11d05ff4815a81d
2015-11-30 19:00:42 +00:00
HIGUCHI Yuta
d9fe3a3f87 ONOS-3461 Disable LinkDiscovery on specific device/port.
- Configuration moved from "apps" -> "devices", "ports"
  in network configuration tree

Change-Id: I030bab489939ce5326a6ebea14f246726ca024f0
2015-11-25 23:13:38 +00:00
Sho SHIMIZU
549464b04e Clean up the test which is no longer used
Change-Id: Id7e4d519c82f2c18480bde6b274079db5f26711c
2015-11-25 22:42:16 +00:00
Aaron Kruglikov
dfb325a88e Cancelling timer at close to prevent attempts to commit closed DB.
Change-Id: I01d2984e69ea8329c06a6fc3610d4a419f9bd6a2
2015-11-25 03:42:36 +00:00
Sho SHIMIZU
03d4253f20 Avoid double wrap of IndexedLambda
Change-Id: I2acaa255529949e8443542904df465e6b0fbb72a
2015-11-24 20:10:39 +00:00
Aaron Kruglikov
eb0ae4e802 Adding fingerprints to avoid interference between clusters.
Change-Id: I5e5278916f8b9b900d7d403b6d08f1f66a866fb2
2015-11-24 20:04:09 +00:00
alshabib
880b6445f2 decoupling extension types from of protocol
numbers renaming extension instruction to
extension treatment

Change-Id: Ie949d6235c2a5a984f7c7867262f8336721f1ee7
2015-11-24 19:42:43 +00:00
Rimon Ashkenazy
e2410ff01c [Emu] Register ODU TributarySlots on OCH ports
Change-Id: Iff6010259485f2402f1b645de8f83af5627bee3c
2015-11-24 17:12:38 +00:00
Sho SHIMIZU
a88db496d5 Avoid double wrap of Bandwidth class
Change-Id: I6bb95beafd55364499df64429c0788153a0b1624
2015-11-23 23:57:09 +00:00
Sho SHIMIZU
60ac58efe9 Add sub-types to distinguish type of resources
Change-Id: Ia43cbf4a13937c9bd9dbc97221062ef5fa3e578f
2015-11-20 07:54:39 +00:00
Aaron Kruglikov
66cf0b9e9f Modifying eventually consistent map and tests to make use of the persistence service.
Change-Id: I44ffcabb9d765a1c70c2790366c6d7381416dac6
2015-11-20 03:58:44 +00:00
Sho SHIMIZU
c9546a3646 Refactor ResourcePath internal implementation
Change-Id: Idb3aa467b4d0e8181adf0d1766812a038b5408ac
2015-11-19 22:34:20 +00:00
Thomas Vachuska
ce0bbb3f62 ONOS-3387 Adding ability for network configurations to be validated before being accepted into the system.
Change-Id: I26a7e2adb20318cf17a35081ff753b3448105e31
2015-11-19 08:30:31 -08:00
Charles Chan
33f28a96f7 Carry previous host subject in HostEvent
This is an enhanced version of gerrit 6085 that provides not only the old location
but also the entire old host subject.
The main purpose is allowing apps to be aware of the change of IP address as well

Change-Id: I448d73b0d1e705996259cb0ec777f959f485d9c2
2015-11-18 18:17:44 +00:00
Charles Chan
e889e2d0f2 [ONOS-3370] Extract hostprovider and lldpprovider from openflow
There are three independent apps:
    - openflow-base
    - hostprovider
    - lldpprovider
And there is also one meta-application called openflow that
contains all three of them.

Also fix the dependency issue when the apps are loaded from disk

Change-Id: I6da584e03593db9094b3a57976b28291f207c3c6
2015-11-18 18:12:50 +00:00
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
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
Phaneendra Manda
bcdb7c9c6a Tabs converted to spaces in pom files
Change-Id: Id20ba34388b1f41d0d542e773d49b221c0bfb3f7
2015-11-13 14:03:30 +00:00