16 package org.openkilda;
18 import static com.google.common.base.MoreObjects.firstNonNull;
24 private static final String host = firstNonNull(System.getProperty(
"kilda.host"),
"localhost");
25 private static final String mininetPort = firstNonNull(System.getProperty(
"kilda.mininet.port"),
"38080");
26 private static final String topologyPort = firstNonNull(System.getProperty(
"kilda.topology.port"),
"80");
27 private static final String northboundPort = firstNonNull(System.getProperty(
"kilda.northbound.port"),
"8088");
28 private static final String opentsdbPort = firstNonNull(System.getProperty(
"kilda.opentsdb.port"),
"4242");
29 private static final String FLOODLIGHT_PORT = firstNonNull(System.getProperty(
"kilda.floodlight.port"),
"8081");
30 public static final String
topologyUsername = firstNonNull(System.getProperty(
"kilda.topology.username"),
"kilda");
31 public static final String
topologyPassword = firstNonNull(System.getProperty(
"kilda.topology.password"),
"kilda");
32 public static final String
mininetEndpoint = String.format(
"http://%s:%s", host, mininetPort);
33 public static final String
trafficEndpoint = String.format(
"http://%s:%s", host,
"17191");
34 public static final String
topologyEndpoint = String.format(
"http://%s:%s", host, topologyPort);
35 public static final String
northboundEndpoint = String.format(
"http://%s:%s", host, northboundPort);
36 public static final String
opentsdbEndpoint = String.format(
"http://%s:%s", host, opentsdbPort);
38 public static final String
FLOODLIGHT_ENDPOINT = String.format(
"http://%s:%s", host, FLOODLIGHT_PORT);
41 System.out.println(String.format(
"Mininet Endpoint: %s",
mininetEndpoint));
42 System.out.println(String.format(
"Topology Endpoint: %s",
topologyEndpoint));
44 System.out.println(String.format(
"OpenTSDB Endpoint: %s",
opentsdbEndpoint));
static final String topologyUsername
static final String mininetEndpoint
static final String trafficEndpoint
static final String FLOODLIGHT_ENDPOINT
static final Auth neoAuth
static final String topologyEndpoint
static final String topologyPassword
static final String opentsdbEndpoint
static final String northboundEndpoint