/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
*
* @param firewall
* instance of new Firewall object
- * @return void
*/
public void neutronFirewallCreated(NeutronFirewall firewall);
*
* @param firewall
* instance of modified Firewall object
- * @return void
*/
public void neutronFirewallUpdated(NeutronFirewall firewall);
*
* @param firewall
* instance of deleted Firewall object
- * @return void
*/
public void neutronFirewallDeleted(NeutronFirewall firewall);
}
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
*
* @param loadBalancer
* instance of new LoadBalancer object
- * @return void
*/
public void neutronLoadBalancerCreated(NeutronLoadBalancer loadBalancer);
/**
- * Services provide this interface method to indicate if the specified loadBalancer can be changed using the specified
+ * Services provide this interface method to indicate if the
+ * specified loadBalancer can be changed using the specified
* delta
*
* @param delta
*
* @param loadBalancer
* instance of modified LoadBalancer object
- * @return void
*/
public void neutronLoadBalancerUpdated(NeutronLoadBalancer loadBalancer);
*
* @param loadBalancer
* instance of deleted LoadBalancer object
- * @return void
*/
public void neutronLoadBalancerDeleted(NeutronLoadBalancer loadBalancer);
}
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
*
* @param loadBalancerPool
* instance of new LoadBalancerPool object
- * @return void
*/
public void neutronLoadBalancerPoolCreated(NeutronLoadBalancerPool loadBalancerPool);
/**
- * Services provide this interface method to indicate if the specified loadBalancerPool can be changed using the specified
+ * Services provide this interface method to indicate if the
+ * specified loadBalancerPool can be changed using the specified
* delta
*
* @param delta
*
* @param loadBalancerPool
* instance of modified LoadBalancerPool object
- * @return void
*/
public void neutronLoadBalancerPoolUpdated(NeutronLoadBalancerPool loadBalancerPool);
*
* @param loadBalancerPool
* instance of deleted LoadBalancerPool object
- * @return void
*/
public void neutronLoadBalancerPoolDeleted(NeutronLoadBalancerPool loadBalancerPool);
}
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* http://docs.openstack.org/api/openstack-network/2.0/content/
*/
- @XmlElement(name="member")
+ @XmlElement(name = "member")
NeutronLoadBalancerPoolMember singletonLoadBalancerPoolMember;
- @XmlElement(name="members")
+ @XmlElement(name = "members")
List<NeutronLoadBalancerPoolMember> bulkRequest;
INeutronLoadBalancerPoolMemberRequest() {
*
* @param network
* instance of new Neutron Network object
- * @return void
*/
public void neutronNetworkCreated(NeutronNetwork network);
*
* @param delta
* updates to the network object using patch semantics
- * @param network
+ * @param original
* instance of the Neutron Network object to be updated
* @return integer
* the return value is understood to be a HTTP status code. A return value outside of 200 through 299
*
* @param network
* instance of modified Neutron Network object
- * @return void
*/
public void neutronNetworkUpdated(NeutronNetwork network);
*
* @param network
* instance of deleted Neutron Network object
- * @return void
*/
public void neutronNetworkDeleted(NeutronNetwork network);
}
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Authors : Dave Tucker
*/
package org.opendaylight.neutron.spi;
* This class contains behaviour common to Neutron configuration objects
*/
public interface INeutronObject {
+
public String getID();
+
public void setID(String id);
}
*
* @param router
* instance of new Neutron Router object
- * @return void
*/
public void neutronRouterCreated(NeutronRouter router);
*
* @param delta
* updates to the router object using patch semantics
- * @param router
+ * @param original
* instance of the Neutron Router object to be updated
* @return integer
* the return value is understood to be a HTTP status code. A return value outside of 200 through 299
*
* @param router
* instance of modified Neutron Router object
- * @return void
*/
public void neutronRouterUpdated(NeutronRouter router);
*
* @param router
* instance of deleted Router Network object
- * @return void
*/
public void neutronRouterDeleted(NeutronRouter router);
/**
- * Services provide this interface method to indicate if the specified interface can be attached to the specified route
+ * Services provide this interface method to indicate if the
+ * specified interface can be attached to the specified router
*
* @param router
* instance of the base Neutron Router object
public int canAttachInterface(NeutronRouter router, NeutronRouter_Interface routerInterface);
/**
- * Services provide this interface method for taking action after an interface has been added to a router
+ * Services provide this interface method for taking action
+ * after an interface has been added to a router
*
* @param router
* instance of the base Neutron Router object
* @param routerInterface
* instance of the NeutronRouter_Interface being attached to the router
- * @return void
*/
public void neutronRouterInterfaceAttached(NeutronRouter router, NeutronRouter_Interface routerInterface);
/**
- * Services provide this interface method to indicate if the specified interface can be detached from the specified router
+ * Services provide this interface method to indicate if the
+ * specified interface can be detached from the specified router
*
* @param router
* instance of the base Neutron Router object
* instance of the base Neutron Router object
* @param routerInterface
* instance of the NeutronRouter_Interface being detached from the router
- * @return void
*/
public void neutronRouterInterfaceDetached(NeutronRouter router, NeutronRouter_Interface routerInterface);
}
/**
* Applications call this interface method to check if a router is in use
*
- * @param uuid
+ * @param routerUUID
* identifier of the Router object
* @return boolean on whether the router is in use or not
*/
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
- *
*/
package org.opendaylight.neutron.spi;
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
- *
*/
package org.opendaylight.neutron.spi;
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
- *
*/
package org.opendaylight.neutron.spi;
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
public class NeutronFirewall implements Serializable {
private static final long serialVersionUID = 1L;
- @XmlElement(name="id")
+ @XmlElement(name = "id")
String firewallUUID;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String firewallTenantID;
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String firewallName;
- @XmlElement (name="description")
+ @XmlElement (name = "description")
String firewallDescription;
- @XmlElement (defaultValue="true", name="admin_state_up")
+ @XmlElement (defaultValue = "true", name = "admin_state_up")
Boolean firewallAdminStateIsUp;
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String firewallStatus;
- @XmlElement (defaultValue="false", name="shared")
+ @XmlElement (defaultValue = "false", name = "shared")
Boolean firewallIsShared;
- @XmlElement (name="firewall_policy_id")
+ @XmlElement (name = "firewall_policy_id")
String neutronFirewallPolicyID;
public String getFirewallUUID() {
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
public class NeutronFirewallPolicy implements Serializable {
private static final long serialVersionUID = 1L;
- @XmlElement(name="id")
+ @XmlElement(name = "id")
String firewallPolicyUUID;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String firewallPolicyTenantID;
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String firewallPolicyName;
- @XmlElement (name="description")
+ @XmlElement (name = "description")
String firewallPolicyDescription;
- @XmlElement (defaultValue="false", name="shared")
+ @XmlElement (defaultValue = "false", name = "shared")
Boolean firewallPolicyIsShared;
- @XmlElement (name="firewall_rules")
+ @XmlElement (name = "firewall_rules")
List<String> firewallPolicyRules;
- @XmlElement (defaultValue="false", name="audited")
+ @XmlElement (defaultValue = "false", name = "audited")
String firewallPolicyIsAudited;
public String getFirewallPolicyIsAudited() {
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement (name="id")
+ @XmlElement (name = "id")
String floatingIPUUID;
- @XmlElement (name="floating_network_id")
+ @XmlElement (name = "floating_network_id")
String floatingNetworkUUID;
- @XmlElement (name="port_id")
+ @XmlElement (name = "port_id")
String portUUID;
- @XmlElement (name="fixed_ip_address")
+ @XmlElement (name = "fixed_ip_address")
String fixedIPAddress;
- @XmlElement (name="floating_ip_address")
+ @XmlElement (name = "floating_ip_address")
String floatingIPAddress;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String tenantUUID;
public NeutronFloatingIP() {
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
public class NeutronLoadBalancer implements Serializable {
private static final long serialVersionUID = 1L;
- @XmlElement(name="id")
+ @XmlElement(name = "id")
String loadBalancerID;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String loadBalancerTenantID;
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String loadBalancerName;
- @XmlElement (name="description")
+ @XmlElement (name = "description")
String loadBalancerDescription;
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String loadBalancerStatus;
- @XmlElement (name="vip_address")
+ @XmlElement (name = "vip_address")
String loadBalancerVipAddress;
- @XmlElement (name="vip_subnet_id")
+ @XmlElement (name = "vip_subnet_id")
String loadBalancerVipSubnetID;
public String getLoadBalancerID() {
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
private static final long serialVersionUID = 1L;
private static final Logger logger = LoggerFactory.getLogger(NeutronLoadBalancer.class);
- @XmlElement(name="id")
+ @XmlElement(name = "id")
String loadBalancerHealthMonitorID;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String loadBalancerHealthMonitorTenantID;
- @XmlElement (name="type")
+ @XmlElement (name = "type")
String loadBalancerHealthMonitorType;
- @XmlElement (name="delay")
+ @XmlElement (name = "delay")
Integer loadBalancerHealthMonitorDelay;
- @XmlElement (name="timeout")
+ @XmlElement (name = "timeout")
Integer loadBalancerHealthMonitorTimeout;
- @XmlElement (name="max_retries")
+ @XmlElement (name = "max_retries")
Integer loadBalancerHealthMonitorMaxRetries;
- @XmlElement (name="http_method")
+ @XmlElement (name = "http_method")
String loadBalancerHealthMonitorHttpMethod;
- @XmlElement (name="url_path")
+ @XmlElement (name = "url_path")
String loadBalancerHealthMonitorUrlPath;
- @XmlElement (name="expected_codes")
+ @XmlElement (name = "expected_codes")
String loadBalancerHealthMonitorExpectedCodes;
- @XmlElement (defaultValue="true", name="admin_state_up")
+ @XmlElement (defaultValue = "true", name = "admin_state_up")
Boolean loadBalancerHealthMonitorAdminStateIsUp;
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String loadBalancerHealthMonitorStatus;
public String getLoadBalancerHealthMonitorID() {
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
public class NeutronLoadBalancerListener implements Serializable {
private static final long serialVersionUID = 1L;
- @XmlElement(name="id")
+ @XmlElement(name = "id")
String loadBalancerListenerID;
- @XmlElement (name="default_pool_id")
+ @XmlElement (name = "default_pool_id")
String neutronLoadBalancerListenerDefaultPoolID;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String loadBalancerListenerTenantID;
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String loadBalancerListenerName;
- @XmlElement (name="description")
+ @XmlElement (name = "description")
String loadBalancerListenerDescription;
- @XmlElement (defaultValue="true", name="admin_state_up")
+ @XmlElement (defaultValue = "true", name = "admin_state_up")
Boolean loadBalancerListenerAdminStateIsUp;
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String loadBalancerListenerStatus;
- @XmlElement (defaultValue="false", name="shared")
+ @XmlElement (defaultValue = "false", name = "shared")
Boolean loadBalancerListenerIsShared;
- @XmlElement (name="protocol")
+ @XmlElement (name = "protocol")
String neutronLoadBalancerListenerProtocol;
- @XmlElement (name="protocol_port")
+ @XmlElement (name = "protocol_port")
String neutronLoadBalancerListenerProtocolPort;
- @XmlElement (name="load_balancer_id")
+ @XmlElement (name = "load_balancer_id")
String neutronLoadBalancerListenerLoadBalancerID;
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
public class NeutronLoadBalancerPool implements Serializable {
private static final long serialVersionUID = 1L;
- @XmlElement(name="id")
+ @XmlElement(name = "id")
String loadBalancerPoolID;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String loadBalancerPoolTenantID;
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String loadBalancerPoolName;
- @XmlElement (name="description")
+ @XmlElement (name = "description")
String loadBalancerPoolDescription;
- @XmlElement (name="protocol")
+ @XmlElement (name = "protocol")
String loadBalancerPoolProtocol;
- @XmlElement (name="lb_algorithm")
+ @XmlElement (name = "lb_algorithm")
String loadBalancerPoolLbAlgorithm;
- @XmlElement (name="healthmonitor_id")
+ @XmlElement (name = "healthmonitor_id")
String neutronLoadBalancerPoolHealthMonitorID;
- @XmlElement (defaultValue="true", name="admin_state_up")
+ @XmlElement (defaultValue = "true", name = "admin_state_up")
Boolean loadBalancerPoolAdminStateIsUp;
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String loadBalancerPoolStatus;
- @XmlElement(name="members")
+ @XmlElement(name = "members")
List<NeutronLoadBalancerPoolMember> loadBalancerPoolMembers;
public NeutronLoadBalancerPool() {
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/**
* TODO: Plumb into LBaaS Pool. Members are nested underneath Pool CRUD.
*/
- @XmlElement (name="id")
+ @XmlElement (name = "id")
String poolMemberID;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String poolMemberTenantID;
- @XmlElement (name="address")
+ @XmlElement (name = "address")
String poolMemberAddress;
- @XmlElement (name="protocol_port")
+ @XmlElement (name = "protocol_port")
Integer poolMemberProtoPort;
- @XmlElement (name="admin_state_up")
+ @XmlElement (name = "admin_state_up")
Boolean poolMemberAdminStateIsUp;
- @XmlElement (name="weight")
+ @XmlElement (name = "weight")
Integer poolMemberWeight;
- @XmlElement (name="subnet_id")
+ @XmlElement (name = "subnet_id")
String poolMemberSubnetID;
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String poolMemberStatus;
String poolID;
private static final long serialVersionUID = 1L;
- @XmlElement (name="id")
+ @XmlElement (name = "id")
String networkUUID; // network UUID
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String networkName; // name
- @XmlElement (defaultValue="true", name="admin_state_up")
+ @XmlElement (defaultValue = "true", name = "admin_state_up")
Boolean adminStateUp; // admin state up (true/false)
- @XmlElement (defaultValue="false", name="shared")
+ @XmlElement (defaultValue = "false", name = "shared")
Boolean shared; // shared network or not
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String tenantID; // tenant for this network
- @XmlElement (defaultValue="false", namespace="router", name="external")
+ @XmlElement (defaultValue = "false", namespace = "router", name = "external")
Boolean routerExternal; // network external or not
- @XmlElement (defaultValue="flat", namespace="provider", name="network_type")
+ @XmlElement (defaultValue = "flat", namespace = "provider", name = "network_type")
String providerNetworkType; // provider network type (flat or vlan)
- @XmlElement (namespace="provider", name="physical_network")
+ @XmlElement (namespace = "provider", name = "physical_network")
String providerPhysicalNetwork; // provider physical network (name)
- @XmlElement (namespace="provider", name="segmentation_id")
+ @XmlElement (namespace = "provider", name = "segmentation_id")
String providerSegmentationID; // provide segmentation ID (vlan ID)
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String status; // status (read-only)
- @XmlElement (name="subnets")
+ @XmlElement (name = "subnets")
List<String> subnets; // subnets (read-only)
/* This attribute lists the ports associated with an instance
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement (name="id")
+ @XmlElement (name = "id")
String portUUID;
- @XmlElement (name="network_id")
+ @XmlElement (name = "network_id")
String networkUUID;
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String name;
- @XmlElement (defaultValue="true", name="admin_state_up")
+ @XmlElement (defaultValue = "true", name = "admin_state_up")
Boolean adminStateUp;
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String status;
- @XmlElement (name="mac_address")
+ @XmlElement (name = "mac_address")
String macAddress;
- @XmlElement (name="fixed_ips")
+ @XmlElement (name = "fixed_ips")
List<Neutron_IPs> fixedIPs;
- @XmlElement (name="device_id")
+ @XmlElement (name = "device_id")
String deviceID;
- @XmlElement (name="device_owner")
+ @XmlElement (name = "device_owner")
String deviceOwner;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String tenantID;
- @XmlElement (name="security_groups")
+ @XmlElement (name = "security_groups")
List<NeutronSecurityGroup> securityGroups;
- @XmlElement (name="allowed_address_pairs")
+ @XmlElement (name = "allowed_address_pairs")
List<NeutronPort_AllowedAddressPairs> allowedAddressPairs;
- @XmlElement (namespace= "binding", name="host_id")
+ @XmlElement (namespace = "binding", name = "host_id")
String bindinghostID;
- @XmlElement (namespace= "binding", name="vnic_type")
+ @XmlElement (namespace = "binding", name = "vnic_type")
String bindingvnicType;
- @XmlElement (namespace= "binding", name="vif_type")
+ @XmlElement (namespace = "binding", name = "vif_type")
String bindingvifType;
public class NeutronPort_AllowedAddressPairs implements Serializable {
private static final long serialVersionUID = 1L;
- @XmlElement (name="port_id")
+ @XmlElement (name = "port_id")
String portID;
- @XmlElement (name="mac_address")
+ @XmlElement (name = "mac_address")
String macAddress;
- @XmlElement (name="ip_address")
+ @XmlElement (name = "ip_address")
String ipAddress;
public NeutronPort_AllowedAddressPairs() {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement (name="id")
+ @XmlElement (name = "id")
String routerUUID;
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String name;
- @XmlElement (defaultValue="true", name="admin_state_up")
+ @XmlElement (defaultValue = "true", name = "admin_state_up")
Boolean adminStateUp;
- @XmlElement (name="status")
+ @XmlElement (name = "status")
String status;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String tenantID;
- @XmlElement (name="external_gateway_info", nillable=true)
+ @XmlElement (name = "external_gateway_info", nillable = true)
NeutronRouter_NetworkReference externalGatewayInfo;
- @XmlElement (name="distributed")
+ @XmlElement (name = "distributed")
Boolean distributed;
- @XmlElement (name="gw_port_id", nillable=true)
+ @XmlElement (name = "gw_port_id", nillable = true)
String gatewayPortId;
- @XmlElement (name="routes")
+ @XmlElement (name = "routes")
List<String> routes;
/* Holds a map of OpenStackRouterInterfaces by subnet UUID
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement (name="subnet_id")
+ @XmlElement (name = "subnet_id")
String subnetUUID;
- @XmlElement (name="port_id")
+ @XmlElement (name = "port_id")
String portUUID;
- @XmlElement (name="id")
+ @XmlElement (name = "id")
String id;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String tenantID;
public NeutronRouter_Interface() {
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement(name="network_id")
+ @XmlElement(name = "network_id")
String networkID;
public NeutronRouter_NetworkReference() {
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014 Red Hat, Inc. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement (name="id")
+ @XmlElement (name = "id")
String subnetUUID;
- @XmlElement (name="network_id")
+ @XmlElement (name = "network_id")
String networkUUID;
- @XmlElement (name="name")
+ @XmlElement (name = "name")
String name;
- @XmlElement (defaultValue="4", name="ip_version")
+ @XmlElement (defaultValue = "4", name = "ip_version")
Integer ipVersion;
- @XmlElement (name="cidr")
+ @XmlElement (name = "cidr")
String cidr;
- @XmlElement (name="gateway_ip")
+ @XmlElement (name = "gateway_ip")
String gatewayIP;
- @XmlElement (name="dns_nameservers")
+ @XmlElement (name = "dns_nameservers")
List<String> dnsNameservers;
- @XmlElement (name="allocation_pools")
+ @XmlElement (name = "allocation_pools")
List<NeutronSubnet_IPAllocationPool> allocationPools;
- @XmlElement (name="host_routes")
+ @XmlElement (name = "host_routes")
List<NeutronSubnet_HostRoute> hostRoutes;
- @XmlElement (defaultValue="true", name="enable_dhcp")
+ @XmlElement (defaultValue = "true", name = "enable_dhcp")
Boolean enableDHCP;
- @XmlElement (name="tenant_id")
+ @XmlElement (name = "tenant_id")
String tenantID;
- @XmlElement (name="ipv6_address_mode", nillable=true)
+ @XmlElement (name = "ipv6_address_mode", nillable = true)
String ipV6AddressMode;
- @XmlElement (name="ipv6_ra_mode", nillable=true)
+ @XmlElement (name = "ipv6_ra_mode", nillable = true)
String ipV6RaMode;
/* stores the OpenStackPorts associated with an instance
// convert to byte array
byte[] addrBytes = ((Inet6Address) InetAddress.getByName(parts[0])).getAddress();
int i;
- for (i=length; i<128; i++) { // offset is to ensure proper comparison
+ for (i = length; i < 128; i++) { // offset is to ensure proper comparison
if (((((int) addrBytes[i/8]) & 0x000000FF) & (1 << (7-(i%8)))) != 0) {
return(false);
}
byte[] cidrBytes = ((Inet6Address) InetAddress.getByName(parts[0])).getAddress();
byte[] ipBytes = ((Inet6Address) InetAddress.getByName(ipAddress)).getAddress();
int i;
- for (i=0; i<length; i++) { // offset is to ensure proper comparison
+ for (i = 0; i < length; i++) { // offset is to ensure proper comparison
if (((((int) cidrBytes[i/8]) & 0x000000FF) & (1 << (7-(i%8)))) !=
((((int) ipBytes[i/8]) & 0x000000FF) & (1 << (7-(i%8))))) {
return(false);
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement(name="destination")
+ @XmlElement(name = "destination")
String destination;
- @XmlElement(name="nexthop")
+ @XmlElement(name = "nexthop")
String nextHop;
+ /**
+ * HostRoute constructor
+ */
public NeutronSubnet_HostRoute() { }
@Override
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement(name="start")
+ @XmlElement(name = "start")
String poolStart;
- @XmlElement(name="end")
+ @XmlElement(name = "end")
String poolEnd;
public NeutronSubnet_IPAllocationPool() {
static String longToIP(long l) {
int i;
String[] parts = new String[4];
- for (i=0; i<4; i++) {
+ for (i = 0; i < 4; i++) {
parts[3-i] = String.valueOf(l & 255);
l >>= 8;
}
}
StringBuilder sb = new StringBuilder();
int i;
- for(i=0;i<r.length-1;i++) {
- sb.append(r[i]+d);
+ for(i = 0;i < r.length - 1;i++) {
+ sb.append(r[i] + d);
}
- return sb.toString()+r[i];
+ return sb.toString() + r[i];
}
/*
long i;
NeutronSubnet_IPAllocationPool p = new NeutronSubnet_IPAllocationPool();
boolean poolStarted = false;
- for (i=sIP; i<=eIP; i++) {
+ for (i = sIP; i <= eIP; i++) {
if (i == sIP) {
if (i != gIP) {
p.setPoolStart(poolStart);
// See OpenStack Network API v2.0 Reference for description of
// annotated attributes
- @XmlElement(name="ip_address")
+ @XmlElement(name = "ip_address")
String ipAddress;
- @XmlElement(name="subnet_id")
+ @XmlElement(name = "subnet_id")
String subnetUUID;
public Neutron_IPs() { }