2067 Commits

Author SHA1 Message Date
Charles Chan
cd06c69b69 Extend host structures to store multiple locations
Also update host location format in CLI and REST API

Change-Id: I0fbd655f642627dd3eb8a2925f83a3ee016fe4aa
2017-05-29 18:19:19 +00:00
Simon Hunt
9bb8fb976d Added CLI command ui-geo-map-list.
Change-Id: I867db6fe82fb94f1083beaf3e661aa0d692b1865
2017-05-26 16:49:05 -07:00
Jordan Halterman
0d1f3fa3ee [ONOS-6527] Support serializing multiple types using the same type ID when a serializer is explicitly provided
Change-Id: I4de04eaaea09eb81e2fe8bd28af934170c88a2d8
2017-05-26 20:54:32 +00:00
Jonathan Hart
46bf89b94b Implement listeners for ConsistentMultimap.
Change-Id: Ica07d444c18af8ba7a9bbb120623512def572a48
2017-05-26 17:00:41 +00:00
Yuta HIGUCHI
4d04b2c1f6 Avoid sporadic test failure
- Avoid 2-arg constructor which may endup using different timestamp

Change-Id: Id47d89c8dc9207352b56f6213a45b3cd1b0070c0
2017-05-26 16:33:09 +00:00
Jordan Halterman
6440b09d32 Fix incorrectly spelled DEFAULT_OPERTATION_TIMEOUT_MILLIS constant... Driving me crazy!
Change-Id: I9e46454f5298f8e7603438129d17f9d305da6210
2017-05-25 17:32:17 -07:00
Ray Milkey
8521f810b4 remove deprecated isDurable() method
Change-Id: I000fe7dc49b6ba231cc7483cf0ad67593b50f06e
2017-05-24 21:17:33 +00:00
Jordan Halterman
a1c8f718e6 [ONOS-6508] Copy ImmutableList in DiscreteResourceId constructor to ensure binary serialization formats match across all resource IDs
Change-Id: I7018214a4a25f619363c1b1b53d54b9dfec756e2
2017-05-24 21:01:37 +00:00
Jordan Halterman
5a1053eb46 [ONOS-6497] Add globally unique numeric ID generator primitive
Change-Id: Ic2d9214cfa885344694b8ba4250054dd6a33144e
2017-05-23 21:20:52 +00:00
Yuta HIGUCHI
6deacbde1e DisjointPath should've been immutable.
Change-Id: I8499bd53acd62425c3aa8b0bce4958d6c0054712
2017-05-23 18:15:15 +00:00
jaegonkim
80bee53a79 [ONOS-6451] Datapath type setting function for supporting OVS DPDK addBridge
Change-Id: Ib6a8fa79dc1221e1387f8888f606306c671c4133
2017-05-23 08:33:24 +00:00
Yuta HIGUCHI
b6e0e914ce Moving NetconfDeviceConfig to API bundle
- Move the class to API bundle to allow config manipulation via API
- Avoid sweeping whole device tree on every Device event.
- code clean up

Change-Id: I58ebdc89688c6c9250bb546585c227d486b30df2
2017-05-22 18:41:03 +00:00
Ray Milkey
16efe17b4f Remove deprecated flag on a method that has no replacement
Change-Id: Iece715e3c6985f0df77c23a3ef6f3b6dab9cb2db
2017-05-22 18:39:14 +00:00
Yuta HIGUCHI
a684b6ea99 Add K-shortest path API to PathService.
Change-Id: I96732666f31a7a2b2df9a16f63e77bc0a367da83
2017-05-19 15:45:52 +00:00
Michele Santuari
b1b4489de0 fix obstacle constraint to support edge links
support paths including edge links (e.g., compilation result of
hostToHostIntent) for the obstacle constraint

Change-Id: I0f82e3cb8e4b88ffd30a9275e5e7dcaf5fbae122
2017-05-19 15:43:22 +00:00
Yuta HIGUCHI
9f2d724c0b Added builder for PortDescription
Change-Id: I37cf78ba7d2cebb021806a0441f2bf231a855c28
2017-05-19 15:40:12 +00:00
Jimmy Jin
e9b7a02ff9 OpenFlow message processing for new loxi
Depends-On: Id69c8597eb4564653c56cdc90f2dcec50afbdd25

Change-Id: Ib14fbadd3debf98ce1d56343179f8e7929f8ade8
2017-05-19 15:40:12 +00:00
dingdamu
d3a0b215dd Fix latency constraint
1. Consider that the type "Duration" in the String is composed by
characters and numbers, it's not easy to convert it to double for
comparison, I modified the latency's annotation to
cfg.latency().toNanos().
2. Exclude two EdgeLinks for the calculation of the whole path's latency
3. The unit of latency in ONOS is not the same, so I set all the latency units to
nanoseconds.
4. Add the latency constraint option for ConnectivityIntentCommand.

Change-Id: Iddf5634880e43ed563db9978659db5eb9ee6c7f8
2017-05-19 02:01:23 +00:00
Yuta HIGUCHI
4f8a377740 ONOS-6468 Fix for race condition between compilation and installation complete state.
- Fix for a bug where intent compilation complete state,
  can overwrites intent installation complete state,
  if intent installation completes before compilation complete state is written to the store.
  - Introduced internalState version on IntentData,
    which is effectively mutation count, in order to avoid
    batch write of compilation result overwriting installation result

Change-Id: I5d77dfbe496e690ebdf2b4f9643d2b64c4233182
2017-05-18 21:26:07 +00:00
Andrea Campanella
5d4f9f4bd3 Removing deprecated annotation
Change-Id: I8fda28b0a5c86ff41a7005f38d128d6c578146f4
2017-05-18 00:23:58 +00:00
Ray Milkey
c916699253 Unit tests for some protection objects
Change-Id: I3c3b24e31ad473edc4fee833f6eea0047eee3cdc
2017-05-17 16:34:10 +00:00
Marc De Leenheer
552eeb6ebb Use k-shortest paths in optical path provisioner (ONOS-6289).
Change-Id: Ida22317e674e1b30dc8b385e30ff347ad040b8c8
2017-05-16 14:43:16 -07:00
Yuta HIGUCHI
f76f6d588f Add more log for debugging.
Change-Id: I384729ae6b96a5e6fb6529f92cd4606b0262d46e
2017-05-15 18:03:51 -07:00
Ray Milkey
08b03a9ec8 Starting snapshot 1.11.0-SNAPSHOT
Change-Id: I5aa84e241545dace6192243c0079924ddf899404
2017-05-15 18:40:20 +00:00
Yi Tseng
24d9be7431 [ONOS-6446] ObjectiveTrackerService is not a public service
If an application want to create custom Intent installer, it might need
ObjectiveTrackerService.

However, the ObjectiveTrackerService is not public api (in /core/net,
should be /core/api); so application outside the ONOS can't use it.

Move ObjectiveTrackerService and it's dependence to /code/api

Change-Id: Ie2ad8dd9d39ccae1c91f4b57887089e0aec83ede
2017-05-15 16:45:16 +00:00
Frank Wang
5733c387cc [ONOS-6208]Implemention of onos and loxi for OVS NAT and connection tracking support
Change-Id: I782422d41fdacc805b523b57c3bd0b6e67e483a2
2017-05-15 16:31:15 +00:00
Jordi Ortiz
df28ecdae7 [ONOS-6188] Notify to MeterListeners meter installation and removal on device.
Using the MeterStats entries and the actual MeterStore state of the meters notify
just before MeterStore converts the state to ADDED. Remove case is different since
the PENDING_REMOVE state in meter store corresponds to MeterStats meter missing.

Change-Id: I0fe46e1618312b816534c6a7bda7d9e618ca1f7e
2017-05-12 23:19:11 +00:00
Simon Hunt
bf59db2631 Topo2 - UiSynthLink aggregation in JSON structure.
- augment UiLinkId with Type field
- preparing for new JSON structure in Topo2Jsonifier
- additional unit tests

Change-Id: Ib8628fc26f72c0369bf8358af905bc6a75e31397
2017-05-12 14:59:27 -07:00
Jordi Ortiz
6c847764af [ONOS-5934] MeterId availability after withdraw.
Change-Id: Ib40b3ca53bae48d16ecbed9665a4061dd2f7eb0c
2017-05-12 21:49:26 +00:00
Saurav Das
1547b3ffd8 CORD-1180 Collection of fixes for hash-group buckets. Required the following changes:
Next-objectives that edited groups are now queued in the FlowObjectiveManager instead of the driver.
	  During linkup immediately checking for previous portups that should be added to a hash group.
	  A final retry 30 secs later to catch all ports that should be part of the same hash group.

Change-Id: I7ef450149d685890ca47932b8e559a0c11dc5ab4
2017-05-12 21:37:00 +00:00
Simon Hunt
05eba35690 ONOS-6259: Topo2 - Implement server-side highlighting model (WIP)
- Enhanced BiLink to allow a UiLinkId as its identifier.
- Corrected aggregation of traffic data for synthetic links in regions.
- Removed TrafficLink copy constructor (not needed).

Change-Id: Ia7d84f28ec69737e7474bfc100262b837effef73
2017-05-11 20:17:19 -07:00
Thomas Vachuska
2048c1f81b Cleaning up intent tests setup/teardown to avoid cascading failures
with respect to binding ID generator.

Change-Id: Ia4778f16ff5a3ecb26062e7d7b2c36493081140d
2017-05-11 09:39:42 -07:00
Yi Tseng
c927a06fe9 [ONOS-6348] Intent installer redesign
Change-Id: I9ae2e8158dc1c686eaf848f330566f9dbb78405f
2017-05-10 15:24:37 -07:00
MaoLu
bbf6e8be39 Enhance the behaviour of ProtectionConfigBehaviour
Change-Id: I5e2505cc1db3b97c78703a6c138d04abc232d65b
2017-05-10 22:01:12 +00:00
Andrea Campanella
5d73df799c [ONOS-5925] Removing 1.6 deprecated optical ports
Change-Id: I2c8583323e6c99d08f3568a81941036fa8e949d8
2017-05-10 19:06:24 +00:00
Thomas Szyrkowiec
770093f664 Extension of the LinkCollectionCompiler to support Domains
Introduced the DomainConstraint which marks intents that allow domains.
Added the handling of domains to the base compiler and its implementations.
Fixed existing test by adding the domain service and added new ones for domains.

Change-Id: I6594e92e41c2434a9b667415e6fb90a6c571df79
2017-05-10 10:06:44 +02:00
Simon Hunt
f01826c91d Fixed issue with canonicalization of link identifiers.
- added asId() to LinkKey
- BiLink.linkId() now returns LinkKey.asId()

Change-Id: Ie9069ca5302f09fca9e213ce33fa87bd8868e752
2017-05-09 17:28:24 -07:00
Simon Hunt
0e16109409 ONOS-6259: Topo2 - Implement server-side highlighting model
- NOTE: Still WIP
- Implement doAggregation() in Traffic2Monitor.
- Plumb through call to get relevantSynthLinks().
- Create UiLinkId from LinkKey.
- Add reference to original UiLink in the UiSynthLink, (so we can use as a key later).
- TrafficLink enhancements:
-- Implement equals/hashCode
-- add a copy constructor
-- add mergeStats() method
-- add stats accessor methods

Change-Id: I693626971b3511b842e80cee7fcd2a252087597f
2017-05-09 17:56:11 +00:00
Yuta HIGUCHI
2103304789 Fix to enable adding INDIRECT link via BasicLinkConfig
- addConfig will create and 'advertise' a new default Config object.
  In the case of BasicLinkConfig, default link type will be DIRECT.
  Link subsystem ignores link transition from DIRECT to INDIRECT
  in order to prefer LLDP info over BDDP info.
  As a result it is difficult to create an INDIRECT link
  via Java API calls.

Change-Id: Id736f3a8332b7558387c3eb7598e1239779c6fe8
2017-05-08 20:53:32 +00:00
Simon Hunt
8e258116dc ONOS-6259: Topo2 - Implement server-side highlighting model
- Generated highlights message now sent back to the client
  with the event id "topo2Highlights".

Change-Id: I873ebd38a0636a7d9b5c2a6caf98c6b33de2cc87
2017-05-05 13:19:16 -07:00
Simon Hunt
f27a929fbb ONOS-6372: Topo2 - Refactor "location" data to be consistent
- consistently labeled fields "locType", "latOrY", "longOrX"
- simplified code in topo2NodePosition.js

Change-Id: I73e8daadcc3e6ca3ff45f7f60e7b372ccfd8b045
2017-05-05 18:30:03 +00:00
Jordan Halterman
5f97a30982 [ONOS-6345] Track tombstones within transactions for optimistic locking on null values
Change-Id: Ib4764721e512462ec1552124ff696b8f89687d8f
2017-05-05 18:05:06 +00:00
Michele Santuari
a271faa8c3 Implementation of the DomainService
Change-Id: I012c31d113fbcc12d4c35cb10d11d7be4cd83458
2017-05-05 16:44:10 +00:00
Michele Santuari
38dd82e630 domain intent APIs
Change-Id: I4b2ac854da7808a880ef0a37b3b08ef51da812e5
2017-05-04 21:46:24 +00:00
Yuta HIGUCHI
ac8b229375 ONOS-6225 Expose k-shortest path search as part of TopologyService.
Change-Id: Idf812a707aba0b972fcfbde871c624dfc86b6e1b
2017-05-04 19:11:06 +00:00
Thomas Vachuska
11b99fc941 Refining driver subsystem to facilitate coordinated start-up.
- for ONOS-6402

Change-Id: I7f64fc62ad1d451fcf55624b2422b60631a3c8e8
2017-05-04 15:55:16 +00:00
Ray Milkey
8fd28c7b80 Starting snapshot 1.10.0-SNAPSHOT 2017-05-02 14:37:34 -07:00
Ray Milkey
f0099022d2 Tagging 1.10.0-rc1 2017-05-02 14:35:27 -07:00
Simon Hunt
6cc8645f93 ONOS-6258: UiTopo2Overlay et al.
- revert DriverMatrix app.
- simplify overlay base class to be consistent with classic topo
- add topo2overlay and topo2traffic (skeleton code for now)

Change-Id: I88fda4d7b75807bd08637d846a869846a364c1f8
2017-04-28 06:59:42 +00:00
Jordan Halterman
9bdc24f542 [ONOS-6267] Support configurable Executors for primitives
- Support user-provided Executors in primitive builders
- Implement default per-partition per-primitive serial executor using a shared thread pool
- Implement Executor wrappers for all primitive types

Change-Id: I53acfb173a9b49a992a9a388983791d9735ed54a
2017-04-27 09:07:50 +00:00