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 ...@@ -120,19 +120,20 @@ fi
120 if ! grep -q "/onos-features/" $KARAF_ROOT/etc/org.apache.karaf.features.cfg; then 120 if ! grep -q "/onos-features/" $KARAF_ROOT/etc/org.apache.karaf.features.cfg; then
121 # Patch the Apache Karaf distribution file to add ONOS features repository 121 # Patch the Apache Karaf distribution file to add ONOS features repository
122 echo "Adding ONOS feature repository..." 122 echo "Adding ONOS feature repository..."
123 - perl -pi.old -e "s|^(featuresRepositories=.*)|\1,mvn:org.onosproject/onos-features/$ONOS_POM_VERSION/xml/features|" \ 123 + 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|" \
124 $KARAF_ROOT/etc/org.apache.karaf.features.cfg 124 $KARAF_ROOT/etc/org.apache.karaf.features.cfg
125 fi 125 fi
126 126
127 if ! grep -q ",onos-api," $KARAF_ROOT/etc/org.apache.karaf.features.cfg; then 127 if ! grep -q ",onos-api," $KARAF_ROOT/etc/org.apache.karaf.features.cfg; then
128 # Patch the Apache Karaf distribution file to load default ONOS boot features 128 # Patch the Apache Karaf distribution file to load default ONOS boot features
129 - export BOOT_FEATURES="webconsole,onos-api,onos-core,onos-incubator,onos-cli,onos-rest,onos-gui" 129 + BOOT_FEATURES="standard,ssh,webconsole"
130 if [ "$SECURE" = "true" ]; then 130 if [ "$SECURE" = "true" ]; then
131 # SM-ONOS Step 3.2: add onos-security to featuresBoot 131 # SM-ONOS Step 3.2: add onos-security to featuresBoot
132 - export BOOT_FEATURES="onos-security,$BOOT_FEATURES" 132 + BOOT_FEATURES="$BOOT_FEATURES,onos-security"
133 fi 133 fi
134 + BOOT_FEATURES="$BOOT_FEATURES,onos-api,onos-core,onos-incubator,onos-cli,onos-rest,onos-gui"
134 echo "Adding ONOS boot features $BOOT_FEATURES..." 135 echo "Adding ONOS boot features $BOOT_FEATURES..."
135 - perl -pi.old -e "s|^(featuresBoot=.*)|\1,$BOOT_FEATURES|" \ 136 + perl -pi.old -e "s|^(featuresBoot=.*)|featuresBoot=$BOOT_FEATURES|" \
136 $KARAF_ROOT/etc/org.apache.karaf.features.cfg 137 $KARAF_ROOT/etc/org.apache.karaf.features.cfg
137 fi 138 fi
138 139
......
1 -# NullLinkProvider topology description (config file).
2 -#
3 -# Dot-style topology graph. Each controller's topology begins with
4 -#
5 -# graph <node ID>, followed by a list of links between braces.
6 -#
7 -# The links are either bidirectional (--) or directed (->). The directed
8 -# edges are used to connect together Null devices of different controllers.
9 -# The endpoint has the format:
10 -#
11 -# devID:port:NodeId
12 -#
13 -# The NodeId is only added if the destination is another node's device.
14 -#
15 -graph 192.168.56.20 {
16 - 0:0 -- 1:0
17 - 1:1 -> 0:0:192.168.56.30
18 - 1:2 -- 2:0
19 - 2:1 -> 1:0:192.168.56.30
20 -}
21 -graph 192.168.56.30 {
22 - 0:0 -> 1:1:192.168.56.20
23 - 0:1 -- 1:1
24 - 1:0 -> 2:1:192.168.56.20
25 - 1:2 -- 2:0
26 -}
27 -# Bugs: Comments cannot be appended to a line to be read.
1 -#
2 -# Sample configuration for onos-app-fwd.
3 -#
4 -
5 -#
6 -# Reactive flows default matching is InPort, Src MAC, Dst MAC and EtherType fields
7 -#
8 -
9 -#
10 -# Enable packet-out only forwarding.
11 -# This flag affects to both IPv4 and IPv6.
12 -#
13 -# packetOutOnly = true
14 -
15 -#
16 -# Enable forwarding of the first packet by using OFPP_TABLE port in the
17 -# PacketOut message instead of sending it directly to the switch port
18 -#
19 -# packetOutOfppTable = true
20 -
21 -#
22 -# Timeout of reactively installed flows (in seconds).
23 -# Default is 10 sec
24 -#
25 -# flowTimeout = 10
26 -
27 -#
28 -# Priority of reactively installed flows
29 -#
30 -# flowPriority = 10
31 -
32 -#
33 -# Enable IPv6 forwarding.
34 -#
35 -# ipv6Forwarding = true
36 -
37 -#
38 -# Flows matching destination MAC only - as legacy L2 switches
39 -# - This option overrides all other options below
40 -#
41 -# matchDstMacOnly = true
42 -
43 -#
44 -# Matching of VLAN ID in Ethernet header
45 -#
46 -# matchVlanId = true
47 -
48 -#
49 -# Matching of IPv4 addresses and Protocol field
50 -# - must be enabled to match IPv4 DSCP, TCP/UDP ports and ICMP type/code
51 -#
52 -# matchIpv4Address = true
53 -
54 -#
55 -# Matching of IPv4 DSCP and ECN fields
56 -#
57 -# matchIpv4Dscp = true
58 -
59 -#
60 -# Matching of IPv6 addresses and Next-Header field
61 -# - must be enabled to match IPv6 Flow Label, TCP/UDP ports and ICMP type/code
62 -#
63 -# matchIpv6Address = true
64 -
65 -#
66 -# Matching of IPv6 Flow Label
67 -#
68 -# matchIpv6FlowLabel = true
69 -
70 -#
71 -# Matching of TCP/UDP ports for IPv4 and IPv6
72 -#
73 -# matchTcpUdpPorts = true
74 -
75 -#
76 -# Matching of ICMP Type and Code fields for IPv4 and IPv6
77 -#
78 -# matchIcmpFields = true
79 -
1 -#
2 -# Sample configuration for Host Location Provider
3 -#
4 -
5 -#
6 -# Enable host removal on port/device down events.
7 -#
8 -# hostRemovalEnabled = true
9 -
10 -#
11 -# Enable using IPv6 Neighbor Discovery by the Host Location Provider.
12 -#
13 -# ipv6NeighborDiscovery = true
1 -#
2 -# Sample configuration for link discovery
3 -#
4 -
5 -#
6 -# Disable Link Dicovery Permanently (Note: changing this property at runtime will have NO effect)
7 -# WARNING: This should only be used for special projects like bgprouter, where ONOS is controlling
8 -# a single switch
9 -#
10 -#disableLinkDiscovery = true
11 -
12 -#
13 -# Enable Broadcast Discovery Protocol (EthType=0x8942)
14 -#
15 -#useBDDP = false
16 -
17 -#
18 -# Disable LLDP's received from specific devices
19 -# Details of the devices are in the file configured below
20 -#
21 -#lldpSuppression = ../config/lldp_suppresion.json
1 -#
2 -# Instance-specific configurations, in this case, the number of
3 -# devices per node.
4 -#
5 -devConfigs = cisco:cisco@192.168.56.20:2022:inactive,sdn:rocks@192.168.56.30:22:inactive
6 -
7 -#
8 -# Number of ports per device. This is global to all devices
9 -# on all instances.
10 -#
11 -# numPorts = 8
1 -#
2 -# Instance-specific configurations, in this case, the number of
3 -# devices per node.
4 -#
5 -devConfigs = 192.168.56.20:3,192.168.56.30:3
6 -
7 -#
8 -# Number of ports per device. This is global to all devices
9 -# on all instances.
10 -#
11 -# numPorts = 8
1 -#
2 -# Sample configurations for the NullLinkProvider.
3 -#
4 -
5 -#
6 -# If enabled, sets the time between LinkEvent generation,
7 -# in microseconds.
8 -#
9 -
10 -#eventRate = 1000000
11 -
12 -#
13 -# If enabled, points to the full path to the topology file.
14 -#
15 -
16 -#cfgFile = /tmp/foo.cfg
1 -#
2 -# Uncomment and tweak to tune the rate of Packet events (per second)
3 -#
4 -# pktRate = 100
1 -
2 -#
3 -# devices which support SNMP, these may support SNMP fault-management.
4 -# demo.snmplabs.com is a publically available SNMP agent-simulator accessible via the internet, see http://snmpsim.sourceforge.net/public-snmp-simulator.html
5 -#
6 -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
1 -#
2 -# Sample configuration for onos-app-proxyarp.
3 -#
4 -
5 -#
6 -# Enable IPv6 Neighbor Discovery.
7 -#
8 -# ipv6NeighborDiscovery = true
1 -#
2 -# Sample configuration for onos-app-sdnip.
3 -#
4 -
5 -#
6 -# The port number that SDN-IP listens for incoming BGP connections on.
7 -#
8 -# bgpPort=2000
...\ No newline at end of file ...\ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
25 # USER=PASSWORD,_g_:GROUP,... 25 # USER=PASSWORD,_g_:GROUP,...
26 # _g_\:GROUP=ROLE1,ROLE2,... 26 # _g_\:GROUP=ROLE1,ROLE2,...
27 # 27 #
28 -# All users, grousp, and roles entered in this file are available after Karaf startup 28 +# All users, groups, and roles entered in this file are available after Karaf startup
29 # and modifiable via the JAAS command group. These users reside in a JAAS domain 29 # and modifiable via the JAAS command group. These users reside in a JAAS domain
30 # with the name "karaf". 30 # with the name "karaf".
31 # 31 #
......