tom

Speeding up stuff.

HostDescription now passes up just a single IpAddress.
1 +package org.onlab.onos.net;
2 +
3 +/**
4 + * Representation of a network resource.
5 + */
6 +public interface NetworkResource {
7 +}
1 +package org.onlab.onos;
2 +
3 +import java.util.Objects;
4 +
5 +/**
6 + * Test application ID.
7 + */
8 +public class TestApplicationId implements ApplicationId {
9 +
10 + private final String name;
11 + private final short id;
12 +
13 + public TestApplicationId(String name) {
14 + this.name = name;
15 + this.id = (short) Objects.hash(name);
16 + }
17 +
18 + public static ApplicationId create(String name) {
19 + return new TestApplicationId(name);
20 + }
21 +
22 + @Override
23 + public short id() {
24 + return id;
25 + }
26 +
27 + @Override
28 + public String name() {
29 + return name;
30 + }
31 +}
1 +#!/bin/bash
2 +
3 +kpid=$(ps -ef | grep karaf.main.Main | grep -v grep | cut -c10-15 | tr -d ' ')
4 +
5 +[ -z "$kpid" ] && echo "No ONOS!" && exit 1
6 +
7 +/opt/jprofiler8/bin/jpenable --gui --port=8849 --pid=$kpid
1 +# Local VirtualBox-based single ONOS instance & ONOS mininet box
2 +
3 +export ONOS_NIC=192.168.56.*
4 +export OC1="192.168.56.103"
5 +export OCN="192.168.56.103"
6 +
7 +export ONOS_FEATURES="webconsole,onos-api,onos-core-trivial,onos-cli,onos-openflow,onos-app-fwd"