207 Commits

Author SHA1 Message Date
Thomas Vachuska
9700ee6a68 Bumping onos-build-conf to v1.3-SNAPSHOT and onos-maven-plugin to v1.9-SNAPSHOT
Change-Id: I4cc35d3ef0e423b03e492ea784890273123736f1
2016-03-01 20:00:49 -08:00
Thomas Vachuska
09fb21e7e5 Bumping onos-build-conf to v1.2 and onos-maven-plugin to v1.8
Change-Id: Iff7535521cd5df6904dce62adbb6feea9730c328
2016-03-01 19:57:39 -08:00
Thomas Vachuska
bef0750890 Adding a clarifying comment to onos-secure-ssh runtime script.
Change-Id: I6e954f25087a623d87252a35651068c03ebedcfb
2016-03-01 22:24:49 +00:00
Jonathan Hart
1c401ee6b8 Fix issue with debug option not being picked up by init.d script
Change-Id: I47499ae253484d34d677c339b34fec6e53addcbe
2016-03-01 20:03:48 +00:00
Bob Lantz
3ec585d7dd Clarify config parameters/environment variables
As mentioned in the comments, ideally this script can be used as
the basis for an ONOS service in a variety of environments. Out of
the box it should work on Linux with either init.d or with systemd's
init.d compatibility. It can also be called by an upstart configuration
or a systemd configuration.

In the future we should probably remove start-stop-daemon, since that
seems to be a linux-ism. Then we could use this script on BSD, OS X,
etc..

Change-Id: I9c701c95991448fa7ddf0d84d379a4cac56cfc5f
2016-02-29 18:47:58 +00:00
Bob Lantz
5e4d49d128 Set -u and -e, and respect ONOS_HOME
If errors or undefined variables are introduced into this script,
we should exit with an error. In particular, we should exit with
an error if KARAF_VERSION is not defined rather than failing
semi-silently.

If ONOS_HOME is set, we should respect (and use) its value.

If ONOS_HOME is not set (as it will not be in the init or service
environment), intuit its value based on the path to this script.

Change-Id: I91c733fddcb2241a95466667e4b57ce0f74a8194
2016-02-29 18:15:28 +00:00
Jonathan Hart
f51950db6e Proposal for replacing Upstart with init.d script.
Change-Id: I22ad1faac713bb50f0b7ad3dde132363a6588723
2016-02-26 05:37:13 +00:00
HIGUCHI Yuta
e7bfaae987 Fixing onos-archetypes-test error
Change-Id: I12877d0012b50392a36e0d819e7b787066503dfc
2016-02-25 23:40:19 +00:00
HIGUCHI Yuta
547c20585e Fail the build if @onos.rsModel specified model json does not exist
- Commenting out DeviceKey related @onos.rsModel issues

Change-Id: Id11730d7cf63aa32038538d9392a980e2f995ab5
2016-02-23 17:48:21 +00:00
Charles Chan
d9681e7d54 Improve SegmentRoutingAppConfig
- Separate host and subnet suppression
- Use port instead of interface to specify which SR should ignore

Change-Id: Ie6491950cddf0860924565f081504b4f4d788179
2016-02-23 03:52:22 +00:00
Charles Chan
f2565a9cbc CORD-508 SegmentRouting / vRouter integration
- Added excludePorts config to SegmentRouting
    SR does not push VLAN filtering rule to excluded ports
    SR ignores hosts learned from excluded ports
- Use separate default route config
    Don't need to config 0/0 on the interface anymore

Change-Id: Iea75d60c2d5f5368e79652b1bf192a6ced49030d
2016-02-18 17:32:30 +00:00
Charles Chan
5270ed0088 CORD-512 Support vSG <-> vRouter default route
- Support multiple subnets per port. getIpPort() will only return the first non-/32 and non-/0 subnet
    /32 is used as vSG subnet
    /0 is used as default gateway
- Support multiple L3 unicast group on a single port
    Change the way to generate the group ID and group key
- Special case for 0.0.0.0 host. Push a /0 to IP table instead of /32
- Implement vRouterConfig
    Put VR MAC to TMAC table of all leaves when config added
        When processEthDst see PortNumber.ANY in key, match ETH_DST only
- For OFDPA, wipe existing instruction before sending to controller
    So packet that misses L3 unicast table won't be sent to controller twice
- For SpringOpenTTP, pop VLAN before sending to controller
- Move several constant definitions to SegmentRoutingService
- Add minimum priority for IP rules such that /0 won't collide with zero priority default rules
- Update the config sample
    Use VLAN=-1 for hosts
    Add example for default route

Change-Id: Id751697ce36a7e5c13b3859350ff21b585c38525
2016-02-18 17:30:19 +00:00
Sho SHIMIZU
ef7e290e20 Make use of Optional more idiomatic
Change-Id: I42b3261169e7cb8408f46c5831f72115f77fd779
2016-02-17 00:38:48 +00:00
Jian Li
7343bfa20b [ONOS-3553] Resolve the onos-service not start issue
This commit resolves onos-service not start issue.
If we have onos directory under /opt, no matter the directory
is empty or not, onos-service always tries to use this path.
If onos-service binary located in other path, we need to
reconfigure the ONOS_HOME.

Change-Id: I13f375d75e864240e6d014100fb7b69de7fd4178
2016-02-13 00:39:03 +00:00
Jian Li
dc94fc9fc8 Fix the typo of yangloader (onoproject -> onosproject)
Change-Id: I891819cb683018b32be450d6f694dc5909ebd6f0
2016-02-01 16:35:01 +00:00
Jian Li
c6c76dc896 [ONOS-3739] Substitute copyright year during archetype gen
With this commit, we can substitute the copyright year during
archetype generation phase, so that we do not need to manually
input the copyright year.

Change-Id: I3c0e4cdc69a3fad7a90335332d5489604107b892
2016-01-29 19:25:53 +00:00
HIGUCHI Yuta
1d7c9cbe6d ONOS-3732 Bandwidth resource registration using netcfg.
- Uses netcfg defined value as available resource if defined,
  else uses port speed as available Bandwidth resource

Change-Id: I2dde9a9194025194ed8785b4608f064debab182b
2016-01-27 13:09:56 -08:00
Jian Li
e4583fd8ad [ONOS-3702] Clean up pom.xml dependency, bump up omitted dependency
Change-Id: Ieb6dc7a5b3ee8d52eefd79c182b9d759b5d324d7
2016-01-25 19:54:36 +00:00
Jian Li
a9a1bbd825 Bump up fasterxml jackson lib to 2.7.0 and clean up dependencies
Change-Id: I43d672a1f275ef7108b5dd416f3f120485823d0f
2016-01-22 00:39:50 -08:00
Jian Li
97d6b2d392 [ONOS-3635] Implement List view for extended application properties
Change-Id: Ie8f985f9c2986857df92bcb47b5bdee876f37230
2016-01-21 23:24:02 +00:00
Charles Chan
e849c19398 CORD-349 Support VLAN cross-connect traffic
Change related to this topic:
- Support VLAN cross-connect traffic
    Utilize ports subjectClass to achieve. For non-xConnect port, set interface VLAN to -1
- Remove VLAN checking since we have multiple VLANs per port
- Hash the L2 interface group key generation to include VLAN as well
- Update the network-cfg.json sample

Other refactoring changes:
- Read next objective stores from srManager directly
- Use constant for flow priority
- CORD-267 Javadoc fix

Change-Id: I4ca8c2d9c8b3633a4a0101c5070d19343f7e5b90
2016-01-21 00:04:49 +00:00
Jian Li
115991625f Bump up Karaf to 3.0.5
This commit bumps up karaf to 3.0.5.
This commit also bumps up the jetty to 8.1.18.v20150929.

Change-Id: I52849c38b535205db8c4e00e799b332f63b7e3f2
2016-01-20 22:11:10 +00:00
Jian Li
8bcb4f23ce [ONOS-3634] Remove readme tag from app.xml
Change-Id: I536f54f74586a0bb5c671564f71b44a0a871d5f6
2016-01-20 18:55:28 +00:00
Phil Huang
5f9603ded5 Use correct user/password when forming ONOS cluster
Use $ONOS_WEB_{USER,PASS} to get infomation when forming ONOS cluster

Change-Id: Id2b5bc4f66b58440eb0d7d1bd0b68f10e28d0e68
2016-01-20 18:45:58 +00:00
Jian Li
ed627a58ed [ONOS-3634] Add more app meta info for various archetypes
Change-Id: Ice1c59589a27a3ddfba21e75ce7bccf5e5d65e28
2016-01-20 00:31:08 +00:00
Jian Li
c35415ddcd [ONOS-3634] Enhance app to have a category, icon, URL and readme
This commmit enhances application to have category, icon, URL and
readme. The web GUI and CLI will be implemented in separate commits

Change-Id: Ib02716d7118cc617b24f196f2213ea1fe99a34be
2016-01-20 00:30:35 +00:00
Jian Li
1f820048fe [ONOS-3703] Bumps up external dependencies of onos-maven-plugin
Change-Id: I6e0a0338da9384747a9ab45b6607844e75cb812e
2016-01-19 19:35:22 +00:00
Jian Li
3dbc8889e3 [ONOS-3722] Add noRowsMessage method to sample UiTableMessageHandler
This commit fixes the archetype building failure which is caused
by lacking of noRowsMessage method in AppUiTableMessageHandler.

Change-Id: I11fcff169aaf01830d6eaf847e5dadaa8a58f832
2016-01-16 01:46:28 +00:00
HIGUCHI Yuta
9caa3a066b Update archetype-resources
- Update dependency and plugin version to sync with ONOS-3703 changes
- Add rest uitab uitopo to onos-archetypes-test script
  Confirmed followign passed
   mvn -amd -pl :onos-archetypes clean install && onos-archetypes-test
- Specify UTF-8 to eliminate build time warning
- Add onos-maven-plugin to plugin dependency to generate swagger.json

Change-Id: I1fdc893a42eea3e464941f1d840ad03bccea0668
2016-01-11 21:52:49 +00:00
Jian Li
c0c36a4e9a [ONOS-3703] pom.xml external dependencies and plugin version bump
This commit bumps up all maven plugins and dependencies to their
latest version. With bumped version onos passes stc test.

Following plugins are not ready to be bumped up due to instability.
check-style 2.16 -> 2.17: compilation error
maven-compiler-plugin 2.5.1 -> 3.3: always perform recompilation

Following dependencies are not ready to be bumped up due to instability.
kryo 3.0.0 -> 3.0.3: unit test failure
slf4j 1.7.6 -> 1.7.13: fails in stc

Change-Id: Iffe8b0734c7088228ebeee1ef597f0df3dfcd63d
2016-01-10 01:19:39 +00:00
Andrea Campanella
82baf6b5cd ONOS-3607 Add Criteria model for Flows REST Api with field description.
Change Model parsing in Swagger mojo for whitspaces stripping.

Also, readding onos-maven-plugin to root pom build temporarily.

Change-Id: I8995c74d762a3e59acebe15cc600a0f1bfa41411
2016-01-07 23:45:06 +00:00
Jian Li
79f6732b59 [ONOS-3642] Add missing meter icon in topology view
Change-Id: Iba1f10adf981b90fbc47ec649493436c7c50589c
2016-01-07 16:45:37 +00:00
Brian O'Connor
68498e2b32 Updating onos-package to display error when karaf-assembly fails.
Also, temporarily adding snapshot repo to karaf-assembly and filed bug to remove it.

Change-Id: I63bf472b3a918beec46e1b1002a29dfcb6cb7253
2016-01-04 14:02:20 -08:00
kmcpeake
b172d5fc8e [ONOS-3203] End-to-end demo of Fault Management via SNMP.
This adds SNMP device-discovery, and a Fault Management app which makes alarms available to users via REST/GUI/CLI interfaces.
There is still code cleanup that could be done, but aim of this commit is an end-to-end proof of concept.

To demonstrate :

1) /opt/onos/bin/onos-service
onos> app activate org.onosproject.snmp
onos> app activate org.onosproject.faultmanagement

2) SNMP devices are seeded via config file. The default seed file contains connection details for devices (SNMP agents) available via internet  e.g. demo.snmplabs.com
cp /opt/onos/apache-karaf-3.0.3/etc/samples/org.onosproject.provider.snmp.device.impl.SnmpDeviceProvider.cfg   /opt/onos/apache-karaf-3.0.3/etc/

3) ONOS will poll these SNMP devices and store their alarms.

4) You can now manipulate the alarms via REST  e.g. http://<onos>:8181/onos/v1/fm/alarms , via CLI  via various "alarm-*” commands or in UI with an Alarms Overlay.

More info at https://wiki.onosproject.org/display/ONOS/Fault+Management

15/Dec/15: Updated regarding review comments from Thomas Vachuska.
17/Dec/15: Updated coreService.registerApplication(name) as per https://gerrit.onosproject.org/#/c/6878/

Change-Id: I886f8511f178dc4600ab96e5ff10cc90329cabec
2015-12-20 15:35:59 +00:00
Ray Milkey
4fd3ceb3df [Falcon] fixes for Sonar Critical bugs
Change-Id: I0a63578727693a2517f3002bd4f4c391b6f44aea
2015-12-17 17:39:44 +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
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
ec309edf9a Updating onos-maven-plugin version to 1.8-SNAPSHOT
Change-Id: Ic3851ac99960acf7264540a6b9aecffd485aca80
2015-12-14 15:28:10 -08:00
Brian O'Connor
85a60e5484 Bumping onos-maven-plugin to 1.7 for release
Change-Id: I9b031827667f6de40cd1cac9dcaf50888ca6a4d4
2015-12-14 15:28:09 -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
Ayaka Koshibe
0c65d0915f MoTD with vanity links.
It looks like 'Links + original logo' in https://wiki.onosproject.org/x/GYFI

Change-Id: I89f8b3d52680d1749df9c42df2423c923480d704
2015-12-11 05:25:14 +00:00
Thomas Vachuska
731193d2f6 Fixing archetypes so that the REST overlay works together with UI overlays.
Change-Id: Iab60f4cd07b59e1750ef0733883f4f7ecd0b3b46
2015-12-10 20:27:21 +00:00
Thomas Vachuska
36be65f18a Adding REST archetype.
Change-Id: Ic129f6d0d419f0d44a371b7758802377a32f9962
2015-12-08 20:46:36 +00:00
Andrea Campanella
260645ba25 ONOS-3530 Fix array out of bounds in case of no @param value description
Change-Id: I336a7645547f844e11ab08cc3cf9f403fa42d890
2015-12-08 07:36:06 +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
Brian O'Connor
372658e7c2 Updates to versions across project
Change-Id: I3593d5d289d3149bea9644c7c09fa1ca753abfca
2015-12-04 23:17:41 -08:00