248 Commits

Author SHA1 Message Date
Thomas Vachuska
5dd52f7ac4 Enhancing the GUI traffic-related code.
Fixed a defect in reactive forwarding.

Change-Id: I1a91f6e5f57b39425ef06092c82b06d04c9b59a0
2014-11-29 10:43:30 -08:00
Brian O'Connor
72a034c863 Initial implementation of distributed intent batch queue
Change-Id: I7ffed03651569ade1be1e8dca905bfaf369b7e03
2014-11-28 22:42:44 +00:00
Yuta HIGUCHI
1a22cc05ea Foo: Do not dump DatabaseException backtrace
Change-Id: I43e538cfcedc0c9f6f51fd6d7ccb2509f6723f0f
2014-11-27 04:09:24 +00:00
Pavlin Radoslavov
deb8a1098d Fix for bug ONOS-330:
Add missing "null" checks for IntentService.getIntentState()

Change-Id: Idd574227636f6cdd3a0dbae4c753ada6157e04e1
2014-11-26 13:32:57 -08:00
alshabib
486349db98 random demo intent installer
Change-Id: I1ac2f5a6b7efbc7c940c6d7c371af4f5befcd676

using a timer to pace ourselves

Change-Id: Ia58698f950bbbc958ad002ed56dfe54b90f317ab

all good blasts intents

Change-Id: Ia85df5ad211c01d22d4088403d789b3d6a2292f7

clean up

Change-Id: I1a6dde05f57d0e4866d3255fc28836dfa7e7c190
2014-11-26 21:31:58 +00:00
Pavlin Radoslavov
caf6337c46 Updated some of the SDN-IP log messages inside the IntentSynchronizer.
Also, fixed a typo in file TestIntentServiceHelper.java

Change-Id: I0c0f7ad0f5e02f80465fb643184e20924fd49153
2014-11-26 11:59:11 -08:00
Yuta HIGUCHI
f845cc3740 Give a name to each ThreadPool
Change-Id: Iec2b044fca542672608fd67ff43680f0d34b9da2
2014-11-25 20:44:10 -08:00
Pavlin Radoslavov
c91eebe810 Added Hazelcast-based Leadership implementation that is needed/used by SDN-IP.
This is a drop-in replacement until the generic ONOS Leadership service
is robust enough.

Change-Id: I72a84331dd948f98707eb59844dab425aa9d5c08
2014-11-25 19:39:26 -08:00
Pavlin Radoslavov
20be3e6bdc Don't withdraw the intents during SDN-IP shutdown, because this creates
flux in the dataplane during switchover to another SDN-IP instance being
the new SDN-IP leader.

Change-Id: I93e271770001678c3438637d5a804d934cd83848
2014-11-25 18:52:08 -08:00
Pavlin Radoslavov
f1288b8217 Removed bogus debug message in SDN-IP.
Change-Id: I61c3c06256508772c3e78f4ce61d1483f56107ca
2014-11-24 22:09:24 -08:00
Pavlin Radoslavov
97e8a8bd55 Fix the SDN-IP unit tests after changing the Intent IDs to use
explicit ID assignment.

Change-Id: I50bc20188922193cfa47bf0ec324a69929744745
2014-11-25 06:05:29 +00:00
Brian O'Connor
520c052e36 Changing Intent Ids to use explicit id assignment
Change-Id: I5a4bff87842c37a869e7691b353529eaefc929db
2014-11-25 05:49:35 +00:00
Pavlin Radoslavov
93ae832fed Updated the debug log messages for SDN-IP IntentSynchronizer.
Change-Id: I74ababe18113489ad64a2ca4a63bc1c63211a3ee
2014-11-24 20:54:36 -08:00
Pavlin Radoslavov
dde22ae5f4 Updates related to SDN-IP submitting intent operations:
* Updated IntentSynchronizer.submitPeerIntents() to use intent batch
    operation

  * Refactored the SDN-IP unit tests:
    The verification for intent service operations is moved to a new class
    TestIntentServiceHeler

Change-Id: Id6766ebb4d6bf492e8f9787c2c2247ac38d42964
2014-11-24 13:33:04 -08:00
Pavlin Radoslavov
a7243cca5c Updates for SDN-IP:
* Use the new Leadership Service instead of Distributed Lock to
   elect the SDN-IP Leader
 * Reimplement the SDN-IP Intent Synchronizer. In the new implementation
   the Point-to-Point Peer intents are also synchronized by and pushed
   only by the Leader (same as the Multipoint-to-SinglePoint Route intents)
 * Minor cleanups

Change-Id: I8e142781211a1d0f2d362875bc28fd05d843cd4b
2014-11-23 15:17:45 -08:00
Ayaka Koshibe
ccfa94caef LLDPLinkProvider listens to MastershipEvents
Change-Id: Iaa3655c680a8fc93921f0b83dc4fc16311222bf9
2014-11-20 20:48:40 -08:00
Praseed Balakrishnan
00dd1f9a6c Fix for optical re-reoute
Change-Id: Iad3ca0e175cb76f66ac276981f4e36bb580566c8
2014-11-19 17:22:26 -08:00
Madan Jampani
71582edbe7 1. DatabaseManager activate will attempt to listTables to ensure store is in good shape.
2. lock and tryLock can now throw InterruptedExceptions.

Change-Id: Ifa766ad441f677a4071b68d8f6caa564cf320869

Change-Id: I318ff762a96b261737831f6bd7c200b384c638e9

Change-Id: I0f509703520b3187931fa3669cd8213a91e85c96
2014-11-19 15:39:30 -08:00
Ayaka Koshibe
78bcbc1227 remove dependency on Devices for handling MastershipEvents
Change-Id: Ie1670e77d3eee5dbd597f574ebe16d687e7b551e
2014-11-19 15:39:08 -08:00
Pavlin Radoslavov
8b75244c38 Added SDN-IP Leader election mechanism based on the Global Lock service.
NOTE: This is a short-term solution until the Leadership Service is
implemented.

Change-Id: Id1f21c06e67e08efb444ebec4e45eeca360e613d
2014-11-18 15:56:44 -08:00
Thomas Vachuska
9feadc2c89 Fixing an issue with OpticalLinkProvider and reverting some topo changes.
Change-Id: If57d529127323d0d2b0f8778ce68527de6284c77
2014-11-18 12:42:26 -08:00
Brian O'Connor
772852ac32 Some fixes for the optical app
Change-Id: Ib3e317ad080d822ac41b1cf113ba388a7ce78316
2014-11-17 16:07:43 -08:00
Pavlin Radoslavov
a071b1e9a9 Moved the BGP Route Intent synchronization mechanism from the Router class
to the new class IntentSynchronizer.

Also, minor cleanup in some of the method names and access scope.

Change-Id: I38257cd1d9516ef3b3dd50f23c28015054c73d70
2014-11-17 15:47:00 -08:00
Thomas Vachuska
112c703dc5 Fixing javadocs and adding missing package javadocs.
Also marked a few packages and classes as deprecated.

Change-Id: I8629ad001f218f92c35721daa3b7c0ebe0916c27
2014-11-16 11:05:14 -08:00
Thomas Vachuska
badb93f54b Fixing optical link state issues; a few still remain.
Change-Id: I126f89384adbe5272bdaf4eb0e3b456984768a98
2014-11-16 09:40:38 -08:00
Praseed Balakrishnan
8c67d17142 MPLS label selector and treatment
Change-Id: Id1fba1e04155e6d97de4c8fd95573641537f1b7a
2014-11-15 10:42:36 -08:00
Ray Milkey
c5cd0d96c5 Findbugs fixes
Testing Sonar with a few findbugs fixes.  Suppressing a false
positive to see if it works.

Change-Id: I0cdf2921198787adc56c680840aa00bdd254269b
2014-11-14 15:39:25 -08:00
Jonathan Hart
6ec682909c Rafactored PeerConnectivityManager for code reuse between the two path types.
Change-Id: Ib05f676d071ef1c545e93244a9ed5ed89672113f
2014-11-14 15:10:31 -08:00
Praseed Balakrishnan
c0029655d9 Optical UC fixes for gui and for host2host intent provisoning
Change-Id: I5439583e92c44836632e381e0482bd485a1c5de4
2014-11-14 13:38:49 -08:00
Jonathan Hart
a42deeafc9 Fix for setting up peer paths where BGP speakers don't peer with all peers.
Returning prevents any further paths being set up, even though this isn't
an error condition.

Change-Id: I13eb4b3021c78f437dcfd2fa715bb4568e6046d1
2014-11-13 21:46:33 -08:00
Pavlin Radoslavov
7e19094616 Refactor the SDN-IP BGP code so the BGP routes are withdrawn if
the onos-app-sdnip feature is uninstalled.

Change-Id: I49c40ee172a06d5809da69f736648fa639745975
2014-11-13 21:39:34 -08:00
weibit
51234a82d7 fixed a bug in the optical path provisoner
Change-Id: Ib5960d07d044b0b2645cf98c47b3ec1c040f6251
2014-11-13 17:34:50 -08:00
Madan Jampani
f5d263b41f Bugfixes for DistributedLockManager functionality
Added a method called broadcastIncludeSelf to ClusterCommunicationService.
Cosmetic improvements: added toString methods

Change-Id: I1d58720c29e6f8642f950670c3a6d95a7019a491
2014-11-13 12:45:50 -08:00
alshabib
19678cc732 Add an empty constraint as now a constraint is required for intent creation
fix typo

Change-Id: Ib769d8c68207367a12cf1d2525889935bdaf1dbc
2014-11-12 16:29:04 -08:00
Jonathan Hart
2e3eef3e81 Compare ConnectPoints rather than Interfaces.
Now we can have multiple Interfaces per port, and the old code results in an
intent using the same port for ingress and egress.

Change-Id: I9f9ad396a0c6e7d31d654896f31c59a34240f82f
2014-11-12 13:49:02 -08:00
Praseed Balakrishnan
b6b8cabd33 Merge branch 'master' of ssh://gerrit.onlab.us:29418/onos-next 2014-11-12 12:15:02 -08:00
Praseed Balakrishnan
bf78cf75ab Fix onos-json to linc-oe json error and create a simple non-linear topo for test team to test re-routing
Change-Id: I47c5f3279f5592f235aa831c3d4ca433060b3668
2014-11-12 12:14:50 -08:00
Yuta HIGUCHI
7a0ed16b62 FooComponent: check before create
Change-Id: Ie073ebc41a4c9028a1db804c57047a95f6617e47
2014-11-12 10:40:58 -08:00
Pavlin Radoslavov
3066cf6c94 Removed leftover TODO comment, that was done in the past.
Change-Id: If4e89a19248a7915f11c408355bad9fc39442992
2014-11-12 10:38:30 -08:00
Madan Jampani
650840bc9e One last checkstyle fix. 2014-11-12 01:10:57 -08:00
Madan Jampani
12390c1203 Reworked DatabaseService API.
Initial implementation of LockManager.
2014-11-12 00:35:56 -08:00
Thomas Vachuska
56d1a7005a Adding synchronous behaviour to the calendar REST API to wait until intent is in parked state. Needs testing.
Change-Id: I218bcc7f6a1cadbf4325d5e4976a720752d26192
2014-11-11 19:16:35 -08:00
Thomas Vachuska
52cc9a7097 Merge "added demo rest api for adding and withdrawing intents in a mesh" 2014-11-11 18:29:04 -08:00
alshabib
fd23d3136a added demo rest api for adding and withdrawing intents in a mesh
Change-Id: Ic68a9054c8a1a3d4223e75845f78205d8703ae56
2014-11-11 18:14:47 -08:00
Pavlin Radoslavov
0a297b160b Cleanup in the SDN-IP related configuration files:
* The (deployed) Interface addresses configuration file "addresses.json"
   from the apps/config application is expected to be found in the
   /opt/onos/config directory

 * The (deployed) SDN-IP configuration file "sdnip.json" is expected
   to be found in the /opt/onos/config directory

 * All configuration files (i.e., addresses.json and sdnip.json) should
   be stored in the tools/package/config directory before deployment
   (i.e., before running onos-config)

 * Removed the apps/config/src/main/resources/config.json sample configuration
   file, because it was incorrect, and replaced it with "addresses.json"
   file in the same directory

 * Updated the text in files tools/package/config/README and
   apps/sdnip/src/main/resources/config-examples/README

 * Minor code cleanup in SdnIpConfigReader.java and NetworkConfigReader.java

Change-Id: I8af75e62a94e4fb701e2c6a09cde93cd8461e255
2014-11-11 16:11:41 -08:00
Jonathan Hart
857b9e005b Fix error in README
Change-Id: I08752eafa885eaef11a40d0357a22ac7370f7b68
2014-11-11 12:08:15 -08:00
Pavlin Radoslavov
49eb64d444 Added support for parsing and handling BGP Confederation related AS Path
attributes.
Note: BGP Confedertions are not supported (yet).

Also, updated/simplified the MED comparison in the BGP Path Comparison
implementation.

Change-Id: Iabe01facffd2c6912f33f647841c1244d85282f3
2014-11-10 17:14:57 -08:00
Pavlin Radoslavov
0c84da8299 Added SDN-IP CLI command to show the BGP neighbors:
onos:bgp-neighbors
OR
  onos:bgp-neighbors -n <NeighborID>
  onos:bgp-neighbors --neighbor <NeighborID>

Change-Id: I4e4185d9484384d9e3aa5304c897410b23a24238
2014-11-07 17:54:25 -08:00
Pavlin Radoslavov
e6015265a2 Updated/fixed the SDN-IP BGP unit tests after some of the BGP-related
code whas changed.

Change-Id: Ie36ad03e3ae7544e7883e2b2aca4c94537750321
2014-11-07 13:08:53 -08:00
Pavlin Radoslavov
2ce1c52b42 Updates to the SDN-IP CLI:
* Added command options to show summary of the routes:
   - "onos:routes -s" or "onos:routes --summary"
     shows summary of the SDN-IP routes
   - "onos:bgp-routes -s" or "onos:bgp-routes --summary"
     shows summary of the BGP routes

 * Implemented displaying JSON output for the "onos:routes" and
   "onos:bgp-routes" commands (and the routes summary)

Also, added static methods BgpConstants.Update.AsPath.typeToString()
and BgpConstants.Update.Origin.typeToString() to return the
BGP AS_PATH type and BGP UPDATE ORIGIN type as a string.

Change-Id: I505c55a924721838bbbaf4ffccc30ffd61e90120
2014-11-07 10:32:37 -08:00