2 * Copyright (c) 2015 Yale University and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.alto.commons.types.rfc7285;
11 import com.fasterxml.jackson.annotation.JsonProperty;
12 import com.fasterxml.jackson.annotation.JsonIgnore;
14 import java.util.List;
15 import java.util.ArrayList;
17 import java.util.LinkedHashMap;
20 public class RFC7285Endpoint {
22 public static class AddressGroup extends Extensible {
25 public static final String IPV4_LABEL = "ipv4";
28 public static final String IPV6_LABEL = "ipv6";
30 @JsonProperty(IPV4_LABEL)
31 public List<String> ipv4 = new ArrayList<String>();
33 @JsonProperty(IPV6_LABEL)
34 public List<String> ipv6 = new ArrayList<String>();
38 public static class PropertyRequest {
40 @JsonProperty("properties")
41 public List<String> properties = new ArrayList<String>();
43 @JsonProperty("endpoints")
44 public List<String> endpoints = new ArrayList<String>();
47 public static class PropertyResponse {
49 public static class Meta extends Extensible {
51 @JsonProperty("dependent-vtags")
52 public List<RFC7285VersionTag> netmap_tags = new ArrayList<RFC7285VersionTag>();
57 public Meta meta = new Meta();
59 @JsonProperty("endpoint-properties")
60 public Map<String, Map<String, Object>> answer
61 = new LinkedHashMap<String, Map<String, Object>>();
64 public static class CostRequest {
66 @JsonProperty("cost-type")
67 public RFC7285CostType costType = new RFC7285CostType();
69 @JsonProperty("endpoints")
70 public RFC7285QueryPairs endpoints = new RFC7285QueryPairs();
73 public static class CostResponse {
75 public static class Meta extends Extensible {
77 @JsonProperty("cost-type")
78 public RFC7285CostType costType = new RFC7285CostType();
83 public Meta meta = new Meta();
85 @JsonProperty("endpoint-cost-map")
86 public Map<String, Map<String, Object>> answer
87 = new LinkedHashMap<String, Map<String, Object>>();