71 Commits

Author SHA1 Message Date
Jian Li
98dc9ad1a8 [ONOS-3707] Update env to default to Maven 3.3.9
Change-Id: If74cc04fc9f15c90511e78e23662554f41c0ecbc
2016-01-07 02:02:20 +00:00
Thomas Vachuska
9507d2ab8b Adding a new convenience alias and fixing auto-complete for onos-create-app.
Change-Id: Iad76a2293b5b87176033184d23634d83f21370eb
2015-12-01 20:45:57 -08:00
Luca Prete
73da27fc50 ONOS-3341 Remove ll alias since it conflicts with the ubuntu ll command.
Change-Id: I0d0db23bab2da31b4d63672955a428090d4dd47f
2015-11-10 22:42:52 +00:00
Thomas Vachuska
1e60f97ae5 Adding skeletal structure for netconf libraries.
Change-Id: I1e0590d4d60ed83e123fb2da455ffde3fd7d495a
2015-10-19 09:59:49 -07:00
Thomas Vachuska
330aef1c23 Fixed profile to work with new prerequisites.xml
Change-Id: I3578237480330a12e50d3375cfd0157cdb150628
2015-10-15 19:00:59 +00:00
Thomas Vachuska
ea2d9fd4ed ONOS-2854 Fixed a few bugs and made tiny improvements to shell scripts.
Change-Id: I624dc05300944dbc8b1f408bf725c49ff96f68c2
2015-09-23 20:14:36 +00:00
Thomas Vachuska
4ccc7d3ee4 Reorganizing the stc specific tools.
Change-Id: I5c2b84cc1125935d385a462c7ba727c1996c0245
2015-09-03 13:39:40 -07:00
Thomas Vachuska
c3c969a507 Changed default onos user password.
Change-Id: I3ee98c46d0ae8ee648b9c648b92eecd36dc83383
2015-08-20 00:39:33 +00:00
Thomas Vachuska
af0ee53cfa Added redirect for the /onos/v1/docs Swagger UI URL. Added onos-rsdocs tool to launch REST API docs UI from shell.
Change-Id: Ifb839e0205e5b176ebc7bb48644925eaa3675fd9
2015-08-19 14:17:36 -07:00
Thomas Vachuska
3c831fa970 Fixing a few tools to work with the new REST security stuff.
Change-Id: I1fcff24bf57e3198c16df5a6e42d721a004e9097
2015-08-17 18:57:03 -07:00
Jonathan Hart
e3c951e940 Use OpenJDK version 8 rather than 7 in bash_profile
Change-Id: Ie8de65f2194feee578d4f4622e01cabb45445bbb
2015-07-14 20:39:52 +00:00
Thomas Vachuska
e76f653a89 Improving net test tools and scenarios.
Change-Id: I2b53fa7b28e1135d2356ae58d4ee8ac35184d9b8
2015-07-09 06:47:53 +00:00
Thomas Vachuska
0a4c27015a Adding a basic mininet-based test to STC scenarios.
Change-Id: I193013608e8fcdaede8987536e754da6d1a185bf
2015-07-06 20:27:01 +00:00
Charles M.C. Chan
e39f3145c3 Fix tle command
Change-Id: I7cdbc231655f5a26c8d00e8de1fcc8fdf7eeee62
2015-05-22 18:35:24 +08:00
Charles M.C. Chan
1d003e9f54 Properly unset ONOS_IP environment variable in cell command
Change-Id: Ibf41e16c11b1c46a8258193640b4d7d18134ec88
2015-05-21 15:31:13 +00:00
Thomas Vachuska
3cd677dda2 Added a few more short-hand aliases for checking logs for errors.
Change-Id: Iecb12af748c876a6e6be276eb8da1468047b2e90
2015-05-20 18:57:54 +00:00
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