227 Commits

Author SHA1 Message Date
Bob Lantz
0b8466b0b7 Don't spam the linux console with 'logging in as karaf' messages
Fixes ONOS-4337

Change-Id: I1cd4b63706e5758a4f818f23904ebfd39d1d972b
2016-04-15 22:50:23 +00:00
Brian O'Connor
5ab426f9ff Updating copyrights
New format: 'Copyright .year-present Open Networking Laboratory'

Change-Id: I1a9e58b355b775e75245ad875a2d7a4df3f03098
2016-04-09 01:20:21 -07:00
Brian O'Connor
fa5e076873 Cleaning up karaf
Removing deprecated etc/samples
Removing unneeded featureRepos and features

Change-Id: Iad54774f6ecf74ca645accfd0745a42fcfb84a25
2016-04-09 02:01:11 +00:00
Brian O'Connor
a450bd000b Simplifying Import-Package line in maven-bundle-plugin for REST bundles
Change-Id: Ic29e3f205e18b7b63e33a8c65cbb30a8b56d2e74
2016-04-04 21:33:36 +00:00
Brian O'Connor
0311a4b187 Simplifying onos branding bundle
Change-Id: I97c2b4e95f1a5483ce49ddae5a0fd5c7f4ca3a14
2016-04-04 14:17:37 -07:00
Jonathan Hart
e01652f745 Add init info to init.d script so it can be configured to run at startup.
Change-Id: Ie8b36ad123febe4be06837f3eb4a2ed28df3b31b
2016-03-29 21:36:34 +00:00
Jian Li
9d61649f0f [ONOS-4042] Bump up Jersey from 1.19 to 2.22.2
- Fix unit test errors of web/api
- Fix default page redirection problem
- Fix compilation errors of web/gui
- Fix configuration of aaa, acl, cordfabric, cord-gui, dhcp, mfwd,
  olt, openstack, segmentrouting, vtn, virtualbng, xos-integration
- Fix unit test errors of cpman, vtn, acl, faultmanagement
- Fix compilation errors of openstack, virtualbng, xos-integration,
  REST SB controller
- Rearrange features.xml to resolve bundle dependencies
- Remove all of stale Jersey 1.x libraries
- Rearrange web.xml to point new Jersey 2.x servlet

Change-Id: Ic17f461ede0aa36fa8d470546d8069152dc1d134
2016-03-24 18:54:28 +00:00
Andrea Campanella
b074ecbc7f Removing old YangTools based on ODL parser
Change-Id: I92cf989b58340d9b9f9a9268262c4e05b2fa5717
2016-03-21 18:31:28 +00:00
Thomas Vachuska
551e0bab1a Bumping archetypes to use onos-maven-plugin v1.9
Change-Id: If88dc3ffa968e974e1ec9f940b801f63b77fc48e
2016-03-11 12:33:45 -08:00
Brian O'Connor
955c316b54 Starting snapshot 1.6.0-SNAPSHOT 2016-03-10 15:27:19 -08:00
Brian O'Connor
55b4d80176 Tagging 1.5.0 (Falcon) 2016-03-10 15:24:41 -08:00
Madan Jampani
23696428f8 Starting snapshot 1.5.0-SNAPSHOT 2016-03-09 14:02:04 -08:00
Madan Jampani
b7a5420285 Tagging 1.5.0-rc3 2016-03-09 13:47:32 -08:00
Thomas Vachuska
dff797b569 Bumping onos-maven-plugin to 1.10-SNAPSHOT.
Change-Id: I6e3844fb9cfa9427a6fdcffef66707a27ada65a5
2016-03-08 02:20:08 +00:00
Thomas Vachuska
f10c722937 Releasing onos-maven-plugin 1.9
Change-Id: Ib4f043af142c40835882bdbbc60ced61836abde8
2016-03-08 02:02:17 +00:00
Bob Lantz
641d54540c Fix upstart failing because of background onos-service (ONOS-4117)
1.  Invoke karaf script in all cases (upstart, initd/systemd)

This means that onos-service now blocks, which means we need to
change onos.initd to run it in the background. Otherwise, we could
use karaf/bin/start

This should fix ONOS-4117

2. Use service onos {start/status/etc.} for upstart/init/systemd

onos-install should not invoke the new init.d script directly;
instead it should use service onos {cmd, which should work if
service is available on upstart, init.d, and systemd-based
distributions.

This should fix ONOS-4124

3. In onos.initd, check if ONOS is running.

This makes it easier to see what is going on, and it also avoids
attempting to start ONOS if it's already running.

Change-Id: I0152fd7fdcb079b25531442315d0bd69e6c7653d
2016-03-08 01:32:47 +00:00
Simon Hunt
afae2f71fc Apps-- added onos.app.title property to applications.
Change-Id: Id845390ee0bee5b871c0ce9f47b2ce98fbcf26b9
2016-03-07 19:30:59 +00:00
Thomas Vachuska
5d8994ffce Starting snapshot 1.5.0-SNAPSHOT 2016-03-03 17:13:26 -08:00
Thomas Vachuska
40d5255ca9 Tagging 1.5.0-rc2 2016-03-03 17:08:36 -08:00
Marc De Leenheer
c662d328f2 SNMP based device and flow rule provider for Lumentum SDN ROADMs.
ONOS-3690 and ONOS-3842

Change-Id: If00ba70fa26e01924c225596c52a5ffb24987cc2
2016-03-03 01:01:31 +00:00
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