2 * Copyright (c) 2015 IBM Corporation 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.neutron.spi;
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlElement;
14 import javax.xml.bind.annotation.XmlRootElement;
17 @XmlAccessorType(XmlAccessType.NONE)
18 public final class NeutronVpnService extends NeutronAdminAttributes<NeutronVpnService> {
19 private static final long serialVersionUID = 1L;
21 // See OpenStack Network API v2.0 Reference for description of
22 // annotated attributes
24 @XmlElement(name = "router_id")
27 @XmlElement(name = "subnet_id")
30 public NeutronVpnService() {
33 public String getRouterUUID() {
37 public void setRouterUUID(String routerUUID) {
38 this.routerUUID = routerUUID;
41 public String getSubnetUUID() {
45 public void setSubnetUUID(String subnetUUID) {
46 this.subnetUUID = subnetUUID;
50 protected boolean extractField(String field, NeutronVpnService ans) {
53 ans.setRouterUUID(this.getRouterUUID());
56 ans.setSubnetUUID(this.getSubnetUUID());
59 return super.extractField(field, ans);