55 Commits

Author SHA1 Message Date
Roan Huang
0fa4bc413e Ensure that $ONOS_CELL variable will not be overwritten when bash profile is loaded
you don't need to reload cell enviroment when open new terminal.

Change-Id: I073a6de71376e868d96e5216509c1d6b52bc7e52
2015-05-01 18:04:23 +08:00
Charles M.C. Chan
870cc030ba Log tools improvement
- Add 'olo' command to filter log of remote ONOS instance
- Modify 'onos-log' such that it can run on OSX

Change-Id: Iddab996564af01672c14caca725397c574267bad
2015-04-23 21:09:13 +00:00
Thomas Vachuska
fcd6114552 Enhanced onos-setup-karaf to be more robust and more friendly. It will validate the specified IP, if given. Otherwise, it will attempt to use ONOS_IP and if that's not available ONOS_NIC to find an adapter with a matching IP address. Usage is backwards compatible.
Also added new onos-karaf command which runs onos-setup-karaf && karaf $@ as a convenience; aliased to 'ok'.

Corrected onos-build-selective to propagate error status only if the build fails.

Change-Id: I920b06fa21edc95b7d651270efe2f95da90ff010
2015-04-23 13:59:08 -07:00
Thomas Vachuska
152f9fdf30 Shutdown cleanup; hunt for exceptions continues
Change-Id: I8cbfaec0820d63f5122a82dd25ba249ba1f690a4
2015-04-03 00:01:31 +00:00
Thomas Vachuska
5630c61407 ONOS-1323 Upgrading environment to use Apache Karaf 3.0.3
Requires restart of any dev shell sessions that may have KARAF_VERSION=3.0.2 already set.

Developers that have their own local Karaf will have to run 'onos-setup-karaf <ip-address>' command

Change-Id: Iba234b3cd5af89de6dd249c97cac97525364cc34
2015-03-25 00:56:59 +00:00
Thomas Vachuska
785f581408 ONOS-1328 Converted ONOS features to apps.
ONOS_FEATURES env. var is now deprecated!

Cells are expected to use ONOS_APPS env. var to tailor which builtin apps should be activated by default.  All builtin apps are installed by default, but can be uninstalled if desired.

Cleaned up cell definitions accordingly.

Change-Id: If3bb4691a73543a69197f4bf1855c8368f558450
2015-03-20 00:37:50 +00:00
Charles M.C. Chan
e5b610ee26 Update environment settings for maven 3.3.1
For those who use 3.2.3 (as specified in Blackbird), here is the upgrade instruction.
cd ~/Downloads
wget https://www.apache.org/dist/maven/maven-3/3.3.1/binaries/apache-maven-3.3.1-bin.tar.gz
tar -zxvf apache-maven-3.3.1-bin.tar.gz -C ~/Applications/

Change-Id: I11d98faf1405e120fdff5748c5875c8842f4c58d
2015-03-19 21:30:21 +00:00
Ayaka Koshibe
ebb54444b9 Update cell related util scripts to support larger cluster [ONOS-467]
Change-Id: Ie182397b7da92212cdaf6e1622b1482408b6de59
2015-01-17 05:18:59 +00:00
Sho SHIMIZU
c02c0b8546 WIP: Resolve conflict with Go language "go" command
Resolve ONOS-475

Change-Id: If0ffe6aea59b4286bb966f15d741526951fd9915
2015-01-09 21:48:51 +00:00
Ayaka Koshibe
aec6296229 Initial cut of onos-group script for running a subset of commands
against multiple ONOS instances:

  - onos-install
  - onos-push-keys
  - onos-kill
  - onos-patch-vm
  - onos-uninstall

onos-group is simply a wrapper that does minimal sanity checks. New
commands are added by adding them to the GOPTS list in ogroup-opts.

Reference: ONOS-536

Change-Id: Ib3055491fec80e8759e87594e81a88285546deaf
2015-01-09 03:15:04 +00:00
Ayaka Koshibe
a99851345e vicell command for editing/applying cell configurations
Change-Id: I3e9731342ef015649978941ba984af4fc0af41d2
2014-12-22 02:28:17 +00:00
Charles M.C. Chan
dfbc6d81ac ONOS-487: Allow ONOS to be installed using different user/group
Change-Id: Ica926a2a6e0870e3aeab1e1585073196358c8184
2014-12-18 17:27:24 +00:00
Charles M.C. Chan
b8b96c1b31 ONOS-461: Update maven version in bash_profile
Change-Id: Id80f9a2655a0c00f4d9577b741ca8db3f66f3232
2014-12-08 19:41:53 -08:00
Thomas Vachuska
045c01da31 Adding packaging on onos*.zip file.
Modified Version.java to allow 3-segment version.
Changed onos-next to onos as default for ONOS_ROOT.

Change-Id: Ifbde9dfbc7af9a5891e9f41db6932859c0f59660
2014-12-04 08:22:00 +00:00
Thomas Vachuska
bbea58c90e Fixing 'tlo' alias after rename.
Change-Id: I9cf378ea408c6e4e2d3abaaf1e517909ceb4ea30
2014-12-02 22:50:10 -08:00
Thomas Vachuska
255b65fd06 Changed KARAF_HOME to KARAF_ROOT as it was conflicting with KARAF's own and emitting annoying warnings.
Change-Id: I982701bd1ae9ecbb3c354cddf2f765b9569b02b9
2014-11-23 14:25:31 -08:00
Yuta HIGUCHI
007cdffaaa Add mcis, mis alias which skips test and checkstyle
Change-Id: I2488ae758567da2d6d3f0b27c47346f88b5e686c
2014-11-20 14:54:19 -08:00
Thomas Vachuska
85314296e1 Added a short-hand for setting the OCI variable.
Added export.

Change-Id: I1e9b5366ce460995d494f7df81659fea0b6c8584
2014-11-15 11:40:46 -08:00
Yuta HIGUCHI
841655425c renamed KARAF -> KARAF_HOME
Change-Id: I13418ccedb4fa860e7a67b629b6377a5b0b8d4d6
2014-11-09 20:26:37 -08:00
Thomas Vachuska
7cbfd4fd91 Fixed a number of javadoc warnings and cleaned up aggregate javadocs. 2014-11-04 18:22:49 -08:00
Thomas Vachuska
d853115cd0 Pushing in changes for Java 1.8 and Apache Karaf 3.0.2 2014-11-03 14:39:57 -08:00
Thomas Vachuska
7b652ad97c Fixed some javadoc warning/errors.
Fixed NPE error in objective tracker.
Preparing for upgrade to Java 8 and Karaf 3.0.2.
2014-10-30 14:10:51 -07:00
Thomas Vachuska
d16ce18d0c Added Port.Type and plumbed it throughout. 2014-10-29 17:25:29 -07:00
Madan Jampani
6677edb07a Reverting back to java 1.7 2014-10-29 15:45:55 -07:00
Madan Jampani
15cd0b8fd3 Netty bug fix: Do not use weakValues in a cache where we track outstanding responses. 2014-10-28 08:40:23 -07:00
Thomas Vachuska
24c849c488 Added copyrights to the utils code 2014-10-27 09:53:05 -07:00
Jonathan Hart
d57df6c322 Added alias to run less on the log 2014-10-17 15:18:02 -07:00
Pavlin Radoslavov
711145a284 Fix the assignment / usage of OC0 environmental variable so
now it is allowed / handled.
2014-10-16 17:45:48 -07:00
Thomas Vachuska
cce11ca2da Fixing some cell definitions and features. 2014-10-16 11:52:29 -07:00
Pavlin Radoslavov
93617211ab Update to the tools scripts:
* Update to envDefaults: if environmental varialbe ONOS_CELL is set,
   the load it, so its variables can be used by other scripts

 * Modifications inside tools/dev/bash_profile:
   - Update the setting of JAVA_HOME so it works for Ubuntu with
     OpenJDK-1.7
   - Removed "." from being added to the PATH, because it is a security hole
2014-10-16 10:00:17 -07:00
Pavlin Radoslavov
0770d0f51f Minor refactoring in the ONOS cell configuration:
* Each cell-specific variable is explicitly listed
   in the cell config file:
   ONOS_CELL, ONOS_NIC, OC1-OC9, OCN, OCI, ONOS_FEATURES

 * Cleanup and bug fixes inside bash_profile:
   - Don't export explicitly OCI and ONOS_CELL, because those
     are now exported in the cell config file
   - unset ONOS_CELL, ONOS_NIC, ONOS_FEATURES (the last two weren't
     unset before)
   - The built-in "cell" function shows OC1 to OC9 instead of OC0-OC9;
     OC0 is never used/setup anywhere else

 * Added two new shell commands:
   - tools/test/bin/onos-lsit-cells : lists existing ONOS cell configurations
     It is the equivalent of the "cells" built-in bash command
   - tools/test/bin/onos-show-cell : shows the configuration of an ONOS cell
     It is the equivalent of the "cell" built-in bash command, but
     it can show also the configuration of any ONOS cell (not only
     the default one).
2014-10-15 16:08:19 -07:00
tom
cf8dd2a398 Tweaked bash_profile. 2014-10-10 08:37:20 -07:00
Jonathan Hart
8af0373868 Use existing JAVA_HOME if one is set 2014-10-09 14:57:00 -07:00
tom
a689779d17 Added output of appId to the flow list command. Fixed defect in CoreManager - we forgot to put registered ids in our map. 2014-10-08 22:21:05 -07:00
tom
e2555ff4f6 Fixed onos-push-update-bundle tool.
Fixed wipe-out command confirmation.
2014-10-07 18:47:58 -07:00
tom
ca8f670643 Added onos-push-update-bundle (yes 'pub') 2014-10-07 09:28:53 -07:00
tom
85258ee4a8 Reworked intent states to the new set of states.
Separate intent state from intent event type.
Implemented new state transitions in IntentManager.
Implemented ObjectiveTracker.
Re-route now works.
2014-10-07 00:10:02 -07:00
tom
0511a52140 Added an intent completer to the command-line. 2014-10-04 12:06:02 -07:00
tom
9a693fda41 Fixed traffic selector builder to allow only one criterion.
Temporarily disabled flow rule time-out.
2014-10-03 11:32:19 -07:00
tom
2482e6ff40 Enhanced cell & cells tools.
Provided initial sketch of the Annotated concept for the model attributes.
2014-10-01 16:51:48 -07:00
tom
1cd74ae73d Added onos-build-selective & obs short-hand. 2014-10-01 14:58:32 -07:00
pankaj
04c38c84e0 Merge branch 'master' of ssh://gerrit.onlab.us:29418/onos-next 2014-09-30 15:12:49 -07:00
pankaj
dff24440ee make bash_profile work 2014-09-30 15:12:45 -07:00
tom
e797a5dba6 Adding customizable features for cell-specific packaging. 2014-09-30 11:57:50 -07:00
tom
82d6bde9d1 Fixing test scripts. 2014-09-23 17:33:58 -07:00
tom
1a2908c8dd Enhanced a number of the test scripts and replaced hazelcast.xml with a mildly augmented version of the 3.3 one. 2014-09-23 16:37:39 -07:00
tom
caf3bf784a Added onos-test.
Refactored the CLI classes.
2014-09-23 13:20:53 -07:00
tom
0872a1743c Fixed a number of CLI commands.
Refactored the StoreService/Manager stuff for common serializer pool.
2014-09-23 11:24:26 -07:00
tom
126852b3f1 Added a number of test tools. 2014-09-22 22:34:01 -07:00
Yuta HIGUCHI
f2d83cf995 Fix o command.
- Bug: Was pruning all path if ONOS_ROOT was set to a path like: ~/git/onos-next

Change-Id: I4887d78ddc1560e69daf2c270b820afad024befa
2014-09-19 14:29:54 -07:00