Brian O'Connor
Committed by Gerrit Code Review

Cleaning up karaf

Removing deprecated etc/samples
Removing unneeded featureRepos and features

Change-Id: Iad54774f6ecf74ca645accfd0745a42fcfb84a25
......@@ -120,19 +120,20 @@ fi
if ! grep -q "/onos-features/" $KARAF_ROOT/etc/org.apache.karaf.features.cfg; then
# Patch the Apache Karaf distribution file to add ONOS features repository
echo "Adding ONOS feature repository..."
perl -pi.old -e "s|^(featuresRepositories=.*)|\1,mvn:org.onosproject/onos-features/$ONOS_POM_VERSION/xml/features|" \
perl -pi.old -e "s|^(featuresRepositories=.*)|featuresRepositories=mvn:org.apache.karaf.features/standard/$KARAF_VERSION/xml/features,mvn:org.onosproject/onos-features/$ONOS_POM_VERSION/xml/features|" \
$KARAF_ROOT/etc/org.apache.karaf.features.cfg
fi
if ! grep -q ",onos-api," $KARAF_ROOT/etc/org.apache.karaf.features.cfg; then
# Patch the Apache Karaf distribution file to load default ONOS boot features
export BOOT_FEATURES="webconsole,onos-api,onos-core,onos-incubator,onos-cli,onos-rest,onos-gui"
BOOT_FEATURES="standard,ssh,webconsole"
if [ "$SECURE" = "true" ]; then
# SM-ONOS Step 3.2: add onos-security to featuresBoot
export BOOT_FEATURES="onos-security,$BOOT_FEATURES"
BOOT_FEATURES="$BOOT_FEATURES,onos-security"
fi
BOOT_FEATURES="$BOOT_FEATURES,onos-api,onos-core,onos-incubator,onos-cli,onos-rest,onos-gui"
echo "Adding ONOS boot features $BOOT_FEATURES..."
perl -pi.old -e "s|^(featuresBoot=.*)|\1,$BOOT_FEATURES|" \
perl -pi.old -e "s|^(featuresBoot=.*)|featuresBoot=$BOOT_FEATURES|" \
$KARAF_ROOT/etc/org.apache.karaf.features.cfg
fi
......
# 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.
#
# 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
#
# 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
#
# 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
#
# 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
#
# 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
#
# 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
#
# Uncomment and tweak to tune the rate of Packet events (per second)
#
# pktRate = 100
#
# devices which support SNMP, these may support SNMP fault-management.
# demo.snmplabs.com is a publically available SNMP agent-simulator accessible via the internet, see http://snmpsim.sourceforge.net/public-snmp-simulator.html
#
devConfigs = bti7000:public@172.27.7.109:161:active,net-snmp:public@demo.snmplabs.com:161:active,net-snmp:public@demo.snmplabs.com:1161:active,net-snmp:public@demo.snmplabs.com:2161:active,net-snmp:public@demo.snmplabs.com:3161:active
#
# Sample configuration for onos-app-proxyarp.
#
#
# Enable IPv6 Neighbor Discovery.
#
# ipv6NeighborDiscovery = true
#
# 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
......@@ -25,7 +25,7 @@
# USER=PASSWORD,_g_:GROUP,...
# _g_\:GROUP=ROLE1,ROLE2,...
#
# All users, grousp, and roles entered in this file are available after Karaf startup
# All users, groups, 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".
#
......