diff options
Diffstat (limited to 'framework/src/onos/etc')
15 files changed, 382 insertions, 0 deletions
diff --git a/framework/src/onos/etc/init/onos.conf b/framework/src/onos/etc/init/onos.conf new file mode 100644 index 00000000..779df905 --- /dev/null +++ b/framework/src/onos/etc/init/onos.conf @@ -0,0 +1,37 @@ +description "Open Network Operating System" +author "ON.Lab" + +start on (net-device-up + and local-filesystems + and runlevel [2345]) +stop on runlevel [016] + +console output +kill timeout 60 +respawn + +env LANG=en_US.UTF-8 + +pre-start script + [ -f /opt/onos/options ] && . /opt/onos/options + ONOS_USER=${ONOS_USER:-root} + + # Ensure that the environment is initialized + [ -d /opt/onos ] && mkdir /opt/onos/var 2>/dev/null && chown $ONOS_USER.$ONOS_USER /opt/onos/var + [ -d /opt/onos ] && mkdir /opt/onos/config 2>/dev/null && chown $ONOS_USER.$ONOS_USER /opt/onos/config + # TODO make karaf version configurable + [ -d /opt/onos ] && [ ! -h /opt/onos/log ] \ + && ln -s /opt/onos/apache-karaf-3.0.3/data/log /opt/onos/log || : +end script + +pre-stop script + /opt/onos/bin/onos halt 2>>/opt/onos/var/stderr.log + sleep 1 +end script + +script + [ -f /opt/onos/options ] && . /opt/onos/options + start-stop-daemon --signal INT --start --chuid ${ONOS_USER:-root} \ + --exec /opt/onos/bin/onos-service -- ${ONOS_OPTS:-server} \ + >/opt/onos/var/stdout.log 2>/opt/onos/var/stderr.log +end script diff --git a/framework/src/onos/etc/org.ops4j.pax.url.mvn.cfg b/framework/src/onos/etc/org.ops4j.pax.url.mvn.cfg new file mode 100644 index 00000000..15167a3b --- /dev/null +++ b/framework/src/onos/etc/org.ops4j.pax.url.mvn.cfg @@ -0,0 +1,101 @@ +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# If set to true, the following property will not allow any certificate to be used +# when accessing Maven repositories through SSL +# +#org.ops4j.pax.url.mvn.certificateCheck= + +# +# Path to the local Maven settings file. +# The repositories defined in this file will be automatically added to the list +# of default repositories if the 'org.ops4j.pax.url.mvn.repositories' property +# below is not set. +# The following locations are checked for the existence of the settings.xml file +# * 1. looks for the specified url +# * 2. if not found looks for ${user.home}/.m2/settings.xml +# * 3. if not found looks for ${maven.home}/conf/settings.xml +# * 4. if not found looks for ${M2_HOME}/conf/settings.xml +# +#org.ops4j.pax.url.mvn.settings= + +# +# Path to the local Maven repository which is used to avoid downloading +# artifacts when they already exist locally. +# The value of this property will be extracted from the settings.xml file +# above, or defaulted to: +# System.getProperty( "user.home" ) + "/.m2/repository" +# +#org.ops4j.pax.url.mvn.localRepository= + +# +# Default this to false. It's just weird to use undocumented repos +# +org.ops4j.pax.url.mvn.useFallbackRepositories=false + +# +# Uncomment if you don't wanna use the proxy settings +# from the Maven conf/settings.xml file +# +# org.ops4j.pax.url.mvn.proxySupport=false + +# +# Comma separated list of repositories scanned when resolving an artifact. +# Those repositories will be checked before iterating through the +# below list of repositories and even before the local repository +# A repository url can be appended with zero or more of the following flags: +# @snapshots : the repository contains snaphots +# @noreleases : the repository does not contain any released artifacts +# +# The following property value will add the system folder as a repo. +# +org.ops4j.pax.url.mvn.defaultRepositories=\ + file:${karaf.home}/${karaf.default.repository}@id=system.repository@snapshots,\ + file:${karaf.data}/kar@id=kar.repository@multi@snapshots + +# Use the default local repo (e.g.~/.m2/repository) as a "remote" repo +#org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote=false + +# +# Comma separated list of repositories scanned when resolving an artifact. +# The default list includes the following repositories: +# http://repo1.maven.org/maven2@id=central +# http://repository.springsource.com/maven/bundles/release@id=spring.ebr +# http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external +# http://zodiac.springsource.com/maven/bundles/release@id=gemini +# http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases +# https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases +# https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases +# To add repositories to the default ones, prepend '+' to the list of repositories +# to add. +# A repository url can be appended with zero or more of the following flags: +# @snapshots : the repository contains snapshots +# @noreleases : the repository does not contain any released artifacts +# @id=repository.id : the id for the repository, just like in the settings.xml this is optional but recommended +# +org.ops4j.pax.url.mvn.repositories= \ + ${org.ops4j.pax.url.mvn.defaultRepositories}, \ + http://repo1.maven.org/maven2@id=central, \ + http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, \ + http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, \ + http://zodiac.springsource.com/maven/bundles/release@id=gemini, \ + http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, \ + https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases, \ + https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases diff --git a/framework/src/onos/etc/org.ops4j.pax.web.cfg b/framework/src/onos/etc/org.ops4j.pax.web.cfg new file mode 100644 index 00000000..c8fb3b3d --- /dev/null +++ b/framework/src/onos/etc/org.ops4j.pax.web.cfg @@ -0,0 +1,12 @@ +org.osgi.service.http.port=8181 +org.osgi.service.http.port.secure=8443 + +org.osgi.service.http.enabled=true +org.osgi.service.http.secure.enabled=false + +org.ops4j.pax.web.ssl.keystore=etc/keystore +org.ops4j.pax.web.ssl.password=OBF:1xtn1w1u1uob1xtv1y7z1xtn1unn1w1o1xtv +org.ops4j.pax.web.ssl.keypassword=OBF:1xtn1w1u1uob1xtv1y7z1xtn1unn1w1o1xtv + +org.ops4j.pax.web.session.url=none +org.ops4j.pax.web.config.file=./etc/jetty.xml diff --git a/framework/src/onos/etc/samples/linkGraph.cfg b/framework/src/onos/etc/samples/linkGraph.cfg new file mode 100644 index 00000000..41ce5bdc --- /dev/null +++ b/framework/src/onos/etc/samples/linkGraph.cfg @@ -0,0 +1,27 @@ +# NullLinkProvider topology description (config file). +# +# Dot-style topology graph. Each controller's topology begins with +# +# graph <node ID>, followed by a list of links between braces. +# +# The links are either bidirectional (--) or directed (->). The directed +# edges are used to connect together Null devices of different controllers. +# The endpoint has the format: +# +# devID:port:NodeId +# +# The NodeId is only added if the destination is another node's device. +# +graph 192.168.56.20 { + 0:0 -- 1:0 + 1:1 -> 0:0:192.168.56.30 + 1:2 -- 2:0 + 2:1 -> 1:0:192.168.56.30 +} +graph 192.168.56.30 { + 0:0 -> 1:1:192.168.56.20 + 0:1 -- 1:1 + 1:0 -> 2:1:192.168.56.20 + 1:2 -- 2:0 +} +# Bugs: Comments cannot be appended to a line to be read. diff --git a/framework/src/onos/etc/samples/org.onosproject.fwd.ReactiveForwarding.cfg b/framework/src/onos/etc/samples/org.onosproject.fwd.ReactiveForwarding.cfg new file mode 100644 index 00000000..4befc706 --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.fwd.ReactiveForwarding.cfg @@ -0,0 +1,79 @@ +# +# Sample configuration for onos-app-fwd. +# + +# +# Reactive flows default matching is InPort, Src MAC, Dst MAC and EtherType fields +# + +# +# Enable packet-out only forwarding. +# This flag affects to both IPv4 and IPv6. +# +# packetOutOnly = true + +# +# Enable forwarding of the first packet by using OFPP_TABLE port in the +# PacketOut message instead of sending it directly to the switch port +# +# packetOutOfppTable = true + +# +# Timeout of reactively installed flows (in seconds). +# Default is 10 sec +# +# flowTimeout = 10 + +# +# Priority of reactively installed flows +# +# flowPriority = 10 + +# +# Enable IPv6 forwarding. +# +# ipv6Forwarding = true + +# +# Flows matching destination MAC only - as legacy L2 switches +# - This option overrides all other options below +# +# matchDstMacOnly = true + +# +# Matching of VLAN ID in Ethernet header +# +# matchVlanId = true + +# +# Matching of IPv4 addresses and Protocol field +# - must be enabled to match IPv4 DSCP, TCP/UDP ports and ICMP type/code +# +# matchIpv4Address = true + +# +# Matching of IPv4 DSCP and ECN fields +# +# matchIpv4Dscp = true + +# +# Matching of IPv6 addresses and Next-Header field +# - must be enabled to match IPv6 Flow Label, TCP/UDP ports and ICMP type/code +# +# matchIpv6Address = true + +# +# Matching of IPv6 Flow Label +# +# matchIpv6FlowLabel = true + +# +# Matching of TCP/UDP ports for IPv4 and IPv6 +# +# matchTcpUdpPorts = true + +# +# Matching of ICMP Type and Code fields for IPv4 and IPv6 +# +# matchIcmpFields = true + diff --git a/framework/src/onos/etc/samples/org.onosproject.provider.host.impl.HostLocationProvider.cfg b/framework/src/onos/etc/samples/org.onosproject.provider.host.impl.HostLocationProvider.cfg new file mode 100644 index 00000000..6d3a50d9 --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.provider.host.impl.HostLocationProvider.cfg @@ -0,0 +1,13 @@ +# +# Sample configuration for Host Location Provider +# + +# +# Enable host removal on port/device down events. +# +# hostRemovalEnabled = true + +# +# Enable using IPv6 Neighbor Discovery by the Host Location Provider. +# +# ipv6NeighborDiscovery = true diff --git a/framework/src/onos/etc/samples/org.onosproject.provider.lldp.impl.LLDPLinkProvider.cfg b/framework/src/onos/etc/samples/org.onosproject.provider.lldp.impl.LLDPLinkProvider.cfg new file mode 100644 index 00000000..6eb39a11 --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.provider.lldp.impl.LLDPLinkProvider.cfg @@ -0,0 +1,21 @@ +# +# Sample configuration for link discovery +# + +# +# Disable Link Dicovery Permanently (Note: changing this property at runtime will have NO effect) +# WARNING: This should only be used for special projects like bgprouter, where ONOS is controlling +# a single switch +# +#disableLinkDiscovery = true + +# +# Enable Broadcast Discovery Protocol (EthType=0x8942) +# +#useBDDP = false + +# +# Disable LLDP's received from specific devices +# Details of the devices are in the file configured below +# +#lldpSuppression = ../config/lldp_suppresion.json diff --git a/framework/src/onos/etc/samples/org.onosproject.provider.netconf.device.impl.NetconfDeviceProvider.cfg b/framework/src/onos/etc/samples/org.onosproject.provider.netconf.device.impl.NetconfDeviceProvider.cfg new file mode 100644 index 00000000..30ed0c26 --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.provider.netconf.device.impl.NetconfDeviceProvider.cfg @@ -0,0 +1,11 @@ +# +# Instance-specific configurations, in this case, the number of +# devices per node. +# +devConfigs = cisco:cisco@192.168.56.20:2022:inactive,sdn:rocks@192.168.56.30:22:inactive + +# +# Number of ports per device. This is global to all devices +# on all instances. +# +# numPorts = 8 diff --git a/framework/src/onos/etc/samples/org.onosproject.provider.nil.device.impl.NullDeviceProvider.cfg b/framework/src/onos/etc/samples/org.onosproject.provider.nil.device.impl.NullDeviceProvider.cfg new file mode 100644 index 00000000..194bf037 --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.provider.nil.device.impl.NullDeviceProvider.cfg @@ -0,0 +1,11 @@ +# +# Instance-specific configurations, in this case, the number of +# devices per node. +# +devConfigs = 192.168.56.20:3,192.168.56.30:3 + +# +# Number of ports per device. This is global to all devices +# on all instances. +# +# numPorts = 8 diff --git a/framework/src/onos/etc/samples/org.onosproject.provider.nil.link.impl.NullLinkProvider.cfg b/framework/src/onos/etc/samples/org.onosproject.provider.nil.link.impl.NullLinkProvider.cfg new file mode 100644 index 00000000..ef72b1ee --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.provider.nil.link.impl.NullLinkProvider.cfg @@ -0,0 +1,16 @@ +# +# Sample configurations for the NullLinkProvider. +# + +# +# If enabled, sets the time between LinkEvent generation, +# in microseconds. +# + +#eventRate = 1000000 + +# +# If enabled, points to the full path to the topology file. +# + +#cfgFile = /tmp/foo.cfg diff --git a/framework/src/onos/etc/samples/org.onosproject.provider.nil.packet.impl.NullPacketProvider.cfg b/framework/src/onos/etc/samples/org.onosproject.provider.nil.packet.impl.NullPacketProvider.cfg new file mode 100644 index 00000000..db4342c0 --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.provider.nil.packet.impl.NullPacketProvider.cfg @@ -0,0 +1,4 @@ +# +# Uncomment and tweak to tune the rate of Packet events (per second) +# +# pktRate = 100 diff --git a/framework/src/onos/etc/samples/org.onosproject.proxyarp.ProxyArp.cfg b/framework/src/onos/etc/samples/org.onosproject.proxyarp.ProxyArp.cfg new file mode 100644 index 00000000..108de136 --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.proxyarp.ProxyArp.cfg @@ -0,0 +1,8 @@ +# +# Sample configuration for onos-app-proxyarp. +# + +# +# Enable IPv6 Neighbor Discovery. +# +# ipv6NeighborDiscovery = true diff --git a/framework/src/onos/etc/samples/org.onosproject.routing.bgp.BgpSessionManager.cfg b/framework/src/onos/etc/samples/org.onosproject.routing.bgp.BgpSessionManager.cfg new file mode 100644 index 00000000..fbcc13f9 --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.routing.bgp.BgpSessionManager.cfg @@ -0,0 +1,8 @@ +# +# Sample configuration for onos-app-sdnip. +# + +# +# The port number that SDN-IP listens for incoming BGP connections on. +# +# bgpPort=2000
\ No newline at end of file diff --git a/framework/src/onos/etc/samples/org.onosproject.xos.XOS.cfg b/framework/src/onos/etc/samples/org.onosproject.xos.XOS.cfg new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/framework/src/onos/etc/samples/org.onosproject.xos.XOS.cfg diff --git a/framework/src/onos/etc/users.properties b/framework/src/onos/etc/users.properties new file mode 100644 index 00000000..9f7a2667 --- /dev/null +++ b/framework/src/onos/etc/users.properties @@ -0,0 +1,34 @@ +################################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# +# This file contains the users, groups, and roles. +# Each line has to be of the format: +# +# USER=PASSWORD,ROLE1,ROLE2,... +# USER=PASSWORD,_g_:GROUP,... +# _g_\:GROUP=ROLE1,ROLE2,... +# +# All users, grousp, and roles entered in this file are available after Karaf startup +# and modifiable via the JAAS command group. These users reside in a JAAS domain +# with the name "karaf". +# +karaf = karaf,_g_:admingroup +onos = rocks,_g_:admingroup +_g_\:admingroup = group,admin,manager,viewer,webconsole |