aboutsummaryrefslogtreecommitdiffstats
path: root/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl
diff options
context:
space:
mode:
Diffstat (limited to 'ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl')
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java238
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingProfileImpl.java62
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java238
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateNetworkRequestImpl.java453
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreatePortRequestImpl.java506
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateRouterRequestImpl.java421
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateSubnetRequestImpl.java549
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/ExternalGatewayImpl.java238
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/FixedIpImpl.java238
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NetworkImpl.java712
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFactoryImpl.java281
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFloatingIpImpl.java615
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronObjectImpl.java62
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java1962
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java62
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java404
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityRuleImpl.java669
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronServiceImpl.java204
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java1146
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/RouterImpl.java480
-rw-r--r--ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/SubnetImpl.java801
21 files changed, 10341 insertions, 0 deletions
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java
new file mode 100644
index 0000000..2bb19b7
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java
@@ -0,0 +1,238 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.AllocationPool;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Allocation Pool</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl#getStart <em>Start</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl#getEnd <em>End</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AllocationPoolImpl extends MinimalEObjectImpl.Container implements AllocationPool {
+ /**
+ * The default value of the '{@link #getStart() <em>Start</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStart()
+ * @generated
+ * @ordered
+ */
+ protected static final String START_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStart() <em>Start</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStart()
+ * @generated
+ * @ordered
+ */
+ protected String start = START_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEnd() <em>End</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnd()
+ * @generated
+ * @ordered
+ */
+ protected static final String END_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEnd() <em>End</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnd()
+ * @generated
+ * @ordered
+ */
+ protected String end = END_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AllocationPoolImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.ALLOCATION_POOL;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStart() {
+ return start;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStart(String newStart) {
+ String oldStart = start;
+ start = newStart;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ALLOCATION_POOL__START, oldStart, start));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEnd() {
+ return end;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEnd(String newEnd) {
+ String oldEnd = end;
+ end = newEnd;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ALLOCATION_POOL__END, oldEnd, end));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.ALLOCATION_POOL__START:
+ return getStart();
+ case NeutronPackage.ALLOCATION_POOL__END:
+ return getEnd();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.ALLOCATION_POOL__START:
+ setStart((String)newValue);
+ return;
+ case NeutronPackage.ALLOCATION_POOL__END:
+ setEnd((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.ALLOCATION_POOL__START:
+ setStart(START_EDEFAULT);
+ return;
+ case NeutronPackage.ALLOCATION_POOL__END:
+ setEnd(END_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.ALLOCATION_POOL__START:
+ return START_EDEFAULT == null ? start != null : !START_EDEFAULT.equals(start);
+ case NeutronPackage.ALLOCATION_POOL__END:
+ return END_EDEFAULT == null ? end != null : !END_EDEFAULT.equals(end);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (start: ");
+ result.append(start);
+ result.append(", end: ");
+ result.append(end);
+ result.append(')');
+ return result.toString();
+ }
+
+} //AllocationPoolImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingProfileImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingProfileImpl.java
new file mode 100644
index 0000000..6c0f7b2
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingProfileImpl.java
@@ -0,0 +1,62 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.BindingProfile;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Binding Profile</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class BindingProfileImpl extends MinimalEObjectImpl.Container implements BindingProfile {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected BindingProfileImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.BINDING_PROFILE;
+ }
+
+} //BindingProfileImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java
new file mode 100644
index 0000000..32770b5
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java
@@ -0,0 +1,238 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.BindingVifDetail;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Binding Vif Detail</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl#getOvs_hybrid_plug <em>Ovs hybrid plug</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl#getPort_filter <em>Port filter</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class BindingVifDetailImpl extends MinimalEObjectImpl.Container implements BindingVifDetail {
+ /**
+ * The default value of the '{@link #getOvs_hybrid_plug() <em>Ovs hybrid plug</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOvs_hybrid_plug()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean OVS_HYBRID_PLUG_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOvs_hybrid_plug() <em>Ovs hybrid plug</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOvs_hybrid_plug()
+ * @generated
+ * @ordered
+ */
+ protected Boolean ovs_hybrid_plug = OVS_HYBRID_PLUG_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPort_filter() <em>Port filter</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort_filter()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean PORT_FILTER_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPort_filter() <em>Port filter</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort_filter()
+ * @generated
+ * @ordered
+ */
+ protected Boolean port_filter = PORT_FILTER_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected BindingVifDetailImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.BINDING_VIF_DETAIL;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getOvs_hybrid_plug() {
+ return ovs_hybrid_plug;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOvs_hybrid_plug(Boolean newOvs_hybrid_plug) {
+ Boolean oldOvs_hybrid_plug = ovs_hybrid_plug;
+ ovs_hybrid_plug = newOvs_hybrid_plug;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG, oldOvs_hybrid_plug, ovs_hybrid_plug));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getPort_filter() {
+ return port_filter;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPort_filter(Boolean newPort_filter) {
+ Boolean oldPort_filter = port_filter;
+ port_filter = newPort_filter;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER, oldPort_filter, port_filter));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG:
+ return getOvs_hybrid_plug();
+ case NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER:
+ return getPort_filter();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG:
+ setOvs_hybrid_plug((Boolean)newValue);
+ return;
+ case NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER:
+ setPort_filter((Boolean)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG:
+ setOvs_hybrid_plug(OVS_HYBRID_PLUG_EDEFAULT);
+ return;
+ case NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER:
+ setPort_filter(PORT_FILTER_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG:
+ return OVS_HYBRID_PLUG_EDEFAULT == null ? ovs_hybrid_plug != null : !OVS_HYBRID_PLUG_EDEFAULT.equals(ovs_hybrid_plug);
+ case NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER:
+ return PORT_FILTER_EDEFAULT == null ? port_filter != null : !PORT_FILTER_EDEFAULT.equals(port_filter);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (ovs_hybrid_plug: ");
+ result.append(ovs_hybrid_plug);
+ result.append(", port_filter: ");
+ result.append(port_filter);
+ result.append(')');
+ return result.toString();
+ }
+
+} //BindingVifDetailImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateNetworkRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateNetworkRequestImpl.java
new file mode 100644
index 0000000..6daf134
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateNetworkRequestImpl.java
@@ -0,0 +1,453 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Create Network Request</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderNetworkType <em>Provider Network Type</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderPhysicalNetwork <em>Provider Physical Network</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderSegmentationId <em>Provider Segmentation Id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getAdmin_state_up <em>Admin state up</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getShared <em>Shared</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CreateNetworkRequestImpl extends NeutronRequestImpl implements CreateNetworkRequest {
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getProviderNetworkType() <em>Provider Network Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProviderNetworkType()
+ * @generated
+ * @ordered
+ */
+ protected static final String PROVIDER_NETWORK_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getProviderNetworkType() <em>Provider Network Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProviderNetworkType()
+ * @generated
+ * @ordered
+ */
+ protected String providerNetworkType = PROVIDER_NETWORK_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getProviderPhysicalNetwork() <em>Provider Physical Network</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProviderPhysicalNetwork()
+ * @generated
+ * @ordered
+ */
+ protected static final String PROVIDER_PHYSICAL_NETWORK_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getProviderPhysicalNetwork() <em>Provider Physical Network</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProviderPhysicalNetwork()
+ * @generated
+ * @ordered
+ */
+ protected String providerPhysicalNetwork = PROVIDER_PHYSICAL_NETWORK_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getProviderSegmentationId() <em>Provider Segmentation Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProviderSegmentationId()
+ * @generated
+ * @ordered
+ */
+ protected static final int PROVIDER_SEGMENTATION_ID_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getProviderSegmentationId() <em>Provider Segmentation Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProviderSegmentationId()
+ * @generated
+ * @ordered
+ */
+ protected int providerSegmentationId = PROVIDER_SEGMENTATION_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getShared() <em>Shared</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getShared()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean SHARED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getShared() <em>Shared</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getShared()
+ * @generated
+ * @ordered
+ */
+ protected Boolean shared = SHARED_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CreateNetworkRequestImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.CREATE_NETWORK_REQUEST;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getProviderNetworkType() {
+ return providerNetworkType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProviderNetworkType(String newProviderNetworkType) {
+ String oldProviderNetworkType = providerNetworkType;
+ providerNetworkType = newProviderNetworkType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE, oldProviderNetworkType, providerNetworkType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getProviderPhysicalNetwork() {
+ return providerPhysicalNetwork;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProviderPhysicalNetwork(String newProviderPhysicalNetwork) {
+ String oldProviderPhysicalNetwork = providerPhysicalNetwork;
+ providerPhysicalNetwork = newProviderPhysicalNetwork;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK, oldProviderPhysicalNetwork, providerPhysicalNetwork));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getProviderSegmentationId() {
+ return providerSegmentationId;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProviderSegmentationId(int newProviderSegmentationId) {
+ int oldProviderSegmentationId = providerSegmentationId;
+ providerSegmentationId = newProviderSegmentationId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID, oldProviderSegmentationId, providerSegmentationId));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getAdmin_state_up() {
+ return admin_state_up;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAdmin_state_up(Boolean newAdmin_state_up) {
+ Boolean oldAdmin_state_up = admin_state_up;
+ admin_state_up = newAdmin_state_up;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getShared() {
+ return shared;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setShared(Boolean newShared) {
+ Boolean oldShared = shared;
+ shared = newShared;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__SHARED, oldShared, shared));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_NETWORK_REQUEST__NAME:
+ return getName();
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE:
+ return getProviderNetworkType();
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK:
+ return getProviderPhysicalNetwork();
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID:
+ return getProviderSegmentationId();
+ case NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP:
+ return getAdmin_state_up();
+ case NeutronPackage.CREATE_NETWORK_REQUEST__SHARED:
+ return getShared();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_NETWORK_REQUEST__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE:
+ setProviderNetworkType((String)newValue);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK:
+ setProviderPhysicalNetwork((String)newValue);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID:
+ setProviderSegmentationId((Integer)newValue);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP:
+ setAdmin_state_up((Boolean)newValue);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__SHARED:
+ setShared((Boolean)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_NETWORK_REQUEST__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE:
+ setProviderNetworkType(PROVIDER_NETWORK_TYPE_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK:
+ setProviderPhysicalNetwork(PROVIDER_PHYSICAL_NETWORK_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID:
+ setProviderSegmentationId(PROVIDER_SEGMENTATION_ID_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP:
+ setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__SHARED:
+ setShared(SHARED_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_NETWORK_REQUEST__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE:
+ return PROVIDER_NETWORK_TYPE_EDEFAULT == null ? providerNetworkType != null : !PROVIDER_NETWORK_TYPE_EDEFAULT.equals(providerNetworkType);
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK:
+ return PROVIDER_PHYSICAL_NETWORK_EDEFAULT == null ? providerPhysicalNetwork != null : !PROVIDER_PHYSICAL_NETWORK_EDEFAULT.equals(providerPhysicalNetwork);
+ case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID:
+ return providerSegmentationId != PROVIDER_SEGMENTATION_ID_EDEFAULT;
+ case NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP:
+ return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up);
+ case NeutronPackage.CREATE_NETWORK_REQUEST__SHARED:
+ return SHARED_EDEFAULT == null ? shared != null : !SHARED_EDEFAULT.equals(shared);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", providerNetworkType: ");
+ result.append(providerNetworkType);
+ result.append(", providerPhysicalNetwork: ");
+ result.append(providerPhysicalNetwork);
+ result.append(", providerSegmentationId: ");
+ result.append(providerSegmentationId);
+ result.append(", admin_state_up: ");
+ result.append(admin_state_up);
+ result.append(", shared: ");
+ result.append(shared);
+ result.append(')');
+ return result.toString();
+ }
+
+} //CreateNetworkRequestImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreatePortRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreatePortRequestImpl.java
new file mode 100644
index 0000000..0babe21
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreatePortRequestImpl.java
@@ -0,0 +1,506 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.CreatePortRequest;
+import org.openecomp.ncomp.openstack.neutron.FixedIp;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import java.util.Collection;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Create Port Request</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getBindingVnicType <em>Binding Vnic Type</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getStatus <em>Status</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getAdmin_state_up <em>Admin state up</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getFixed_ips <em>Fixed ips</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getMac_address <em>Mac address</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getNetwork_id <em>Network id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CreatePortRequestImpl extends NeutronRequestImpl implements CreatePortRequest {
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getBindingVnicType() <em>Binding Vnic Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBindingVnicType()
+ * @generated
+ * @ordered
+ */
+ protected static final String BINDING_VNIC_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBindingVnicType() <em>Binding Vnic Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBindingVnicType()
+ * @generated
+ * @ordered
+ */
+ protected String bindingVnicType = BINDING_VNIC_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected static final String STATUS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected String status = STATUS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getFixed_ips() <em>Fixed ips</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFixed_ips()
+ * @generated
+ * @ordered
+ */
+ protected EList<FixedIp> fixed_ips;
+
+ /**
+ * The default value of the '{@link #getMac_address() <em>Mac address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMac_address()
+ * @generated
+ * @ordered
+ */
+ protected static final String MAC_ADDRESS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMac_address() <em>Mac address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMac_address()
+ * @generated
+ * @ordered
+ */
+ protected String mac_address = MAC_ADDRESS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String NETWORK_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected String network_id = NETWORK_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CreatePortRequestImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.CREATE_PORT_REQUEST;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBindingVnicType() {
+ return bindingVnicType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBindingVnicType(String newBindingVnicType) {
+ String oldBindingVnicType = bindingVnicType;
+ bindingVnicType = newBindingVnicType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE, oldBindingVnicType, bindingVnicType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatus(String newStatus) {
+ String oldStatus = status;
+ status = newStatus;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__STATUS, oldStatus, status));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getAdmin_state_up() {
+ return admin_state_up;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAdmin_state_up(Boolean newAdmin_state_up) {
+ Boolean oldAdmin_state_up = admin_state_up;
+ admin_state_up = newAdmin_state_up;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<FixedIp> getFixed_ips() {
+ if (fixed_ips == null) {
+ fixed_ips = new EObjectContainmentEList<FixedIp>(FixedIp.class, this, NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS);
+ }
+ return fixed_ips;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getMac_address() {
+ return mac_address;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMac_address(String newMac_address) {
+ String oldMac_address = mac_address;
+ mac_address = newMac_address;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS, oldMac_address, mac_address));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getNetwork_id() {
+ return network_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setNetwork_id(String newNetwork_id) {
+ String oldNetwork_id = network_id;
+ network_id = newNetwork_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID, oldNetwork_id, network_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS:
+ return ((InternalEList<?>)getFixed_ips()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_PORT_REQUEST__NAME:
+ return getName();
+ case NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE:
+ return getBindingVnicType();
+ case NeutronPackage.CREATE_PORT_REQUEST__STATUS:
+ return getStatus();
+ case NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP:
+ return getAdmin_state_up();
+ case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS:
+ return getFixed_ips();
+ case NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS:
+ return getMac_address();
+ case NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID:
+ return getNetwork_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_PORT_REQUEST__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE:
+ setBindingVnicType((String)newValue);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__STATUS:
+ setStatus((String)newValue);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP:
+ setAdmin_state_up((Boolean)newValue);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS:
+ getFixed_ips().clear();
+ getFixed_ips().addAll((Collection<? extends FixedIp>)newValue);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS:
+ setMac_address((String)newValue);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID:
+ setNetwork_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_PORT_REQUEST__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE:
+ setBindingVnicType(BINDING_VNIC_TYPE_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__STATUS:
+ setStatus(STATUS_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP:
+ setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS:
+ getFixed_ips().clear();
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS:
+ setMac_address(MAC_ADDRESS_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID:
+ setNetwork_id(NETWORK_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_PORT_REQUEST__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE:
+ return BINDING_VNIC_TYPE_EDEFAULT == null ? bindingVnicType != null : !BINDING_VNIC_TYPE_EDEFAULT.equals(bindingVnicType);
+ case NeutronPackage.CREATE_PORT_REQUEST__STATUS:
+ return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status);
+ case NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP:
+ return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up);
+ case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS:
+ return fixed_ips != null && !fixed_ips.isEmpty();
+ case NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS:
+ return MAC_ADDRESS_EDEFAULT == null ? mac_address != null : !MAC_ADDRESS_EDEFAULT.equals(mac_address);
+ case NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID:
+ return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", bindingVnicType: ");
+ result.append(bindingVnicType);
+ result.append(", status: ");
+ result.append(status);
+ result.append(", admin_state_up: ");
+ result.append(admin_state_up);
+ result.append(", mac_address: ");
+ result.append(mac_address);
+ result.append(", network_id: ");
+ result.append(network_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //CreatePortRequestImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateRouterRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateRouterRequestImpl.java
new file mode 100644
index 0000000..9da0436
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateRouterRequestImpl.java
@@ -0,0 +1,421 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import java.util.Collection;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Create Router Request</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getAdmin_state_up <em>Admin state up</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getShared <em>Shared</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getExternalNetwork <em>External Network</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getPorts <em>Ports</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getSubnets <em>Subnets</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CreateRouterRequestImpl extends NeutronRequestImpl implements CreateRouterRequest {
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getShared() <em>Shared</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getShared()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean SHARED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getShared() <em>Shared</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getShared()
+ * @generated
+ * @ordered
+ */
+ protected Boolean shared = SHARED_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getExternalNetwork() <em>External Network</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExternalNetwork()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXTERNAL_NETWORK_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getExternalNetwork() <em>External Network</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExternalNetwork()
+ * @generated
+ * @ordered
+ */
+ protected String externalNetwork = EXTERNAL_NETWORK_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getPorts() <em>Ports</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPorts()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> ports;
+
+ /**
+ * The cached value of the '{@link #getSubnets() <em>Subnets</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSubnets()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> subnets;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CreateRouterRequestImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.CREATE_ROUTER_REQUEST;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_ROUTER_REQUEST__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getAdmin_state_up() {
+ return admin_state_up;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAdmin_state_up(Boolean newAdmin_state_up) {
+ Boolean oldAdmin_state_up = admin_state_up;
+ admin_state_up = newAdmin_state_up;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getShared() {
+ return shared;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setShared(Boolean newShared) {
+ Boolean oldShared = shared;
+ shared = newShared;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_ROUTER_REQUEST__SHARED, oldShared, shared));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getExternalNetwork() {
+ return externalNetwork;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExternalNetwork(String newExternalNetwork) {
+ String oldExternalNetwork = externalNetwork;
+ externalNetwork = newExternalNetwork;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK, oldExternalNetwork, externalNetwork));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getPorts() {
+ if (ports == null) {
+ ports = new EDataTypeEList<String>(String.class, this, NeutronPackage.CREATE_ROUTER_REQUEST__PORTS);
+ }
+ return ports;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getSubnets() {
+ if (subnets == null) {
+ subnets = new EDataTypeEList<String>(String.class, this, NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS);
+ }
+ return subnets;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_ROUTER_REQUEST__NAME:
+ return getName();
+ case NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP:
+ return getAdmin_state_up();
+ case NeutronPackage.CREATE_ROUTER_REQUEST__SHARED:
+ return getShared();
+ case NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK:
+ return getExternalNetwork();
+ case NeutronPackage.CREATE_ROUTER_REQUEST__PORTS:
+ return getPorts();
+ case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS:
+ return getSubnets();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_ROUTER_REQUEST__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP:
+ setAdmin_state_up((Boolean)newValue);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__SHARED:
+ setShared((Boolean)newValue);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK:
+ setExternalNetwork((String)newValue);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__PORTS:
+ getPorts().clear();
+ getPorts().addAll((Collection<? extends String>)newValue);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS:
+ getSubnets().clear();
+ getSubnets().addAll((Collection<? extends String>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_ROUTER_REQUEST__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP:
+ setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__SHARED:
+ setShared(SHARED_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK:
+ setExternalNetwork(EXTERNAL_NETWORK_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__PORTS:
+ getPorts().clear();
+ return;
+ case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS:
+ getSubnets().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_ROUTER_REQUEST__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP:
+ return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up);
+ case NeutronPackage.CREATE_ROUTER_REQUEST__SHARED:
+ return SHARED_EDEFAULT == null ? shared != null : !SHARED_EDEFAULT.equals(shared);
+ case NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK:
+ return EXTERNAL_NETWORK_EDEFAULT == null ? externalNetwork != null : !EXTERNAL_NETWORK_EDEFAULT.equals(externalNetwork);
+ case NeutronPackage.CREATE_ROUTER_REQUEST__PORTS:
+ return ports != null && !ports.isEmpty();
+ case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS:
+ return subnets != null && !subnets.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", admin_state_up: ");
+ result.append(admin_state_up);
+ result.append(", shared: ");
+ result.append(shared);
+ result.append(", externalNetwork: ");
+ result.append(externalNetwork);
+ result.append(", ports: ");
+ result.append(ports);
+ result.append(", subnets: ");
+ result.append(subnets);
+ result.append(')');
+ return result.toString();
+ }
+
+} //CreateRouterRequestImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateSubnetRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateSubnetRequestImpl.java
new file mode 100644
index 0000000..ef8f399
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateSubnetRequestImpl.java
@@ -0,0 +1,549 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.AllocationPool;
+import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Create Subnet Request</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getNetwork_id <em>Network id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getIp_version <em>Ip version</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getCidr <em>Cidr</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getAllocation_pools <em>Allocation pools</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getDns_nameservers <em>Dns nameservers</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getEnable_dhcp <em>Enable dhcp</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getGateway_ip <em>Gateway ip</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CreateSubnetRequestImpl extends NeutronRequestImpl implements CreateSubnetRequest {
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String NETWORK_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected String network_id = NETWORK_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getIp_version() <em>Ip version</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getIp_version()
+ * @generated
+ * @ordered
+ */
+ protected static final int IP_VERSION_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getIp_version() <em>Ip version</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getIp_version()
+ * @generated
+ * @ordered
+ */
+ protected int ip_version = IP_VERSION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getCidr() <em>Cidr</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCidr()
+ * @generated
+ * @ordered
+ */
+ protected static final String CIDR_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getCidr() <em>Cidr</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCidr()
+ * @generated
+ * @ordered
+ */
+ protected String cidr = CIDR_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getAllocation_pools() <em>Allocation pools</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAllocation_pools()
+ * @generated
+ * @ordered
+ */
+ protected EList<AllocationPool> allocation_pools;
+
+ /**
+ * The cached value of the '{@link #getDns_nameservers() <em>Dns nameservers</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDns_nameservers()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> dns_nameservers;
+
+ /**
+ * The default value of the '{@link #getEnable_dhcp() <em>Enable dhcp</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnable_dhcp()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ENABLE_DHCP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEnable_dhcp() <em>Enable dhcp</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnable_dhcp()
+ * @generated
+ * @ordered
+ */
+ protected Boolean enable_dhcp = ENABLE_DHCP_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getGateway_ip() <em>Gateway ip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGateway_ip()
+ * @generated
+ * @ordered
+ */
+ protected static final String GATEWAY_IP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGateway_ip() <em>Gateway ip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGateway_ip()
+ * @generated
+ * @ordered
+ */
+ protected String gateway_ip = GATEWAY_IP_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CreateSubnetRequestImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.CREATE_SUBNET_REQUEST;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getNetwork_id() {
+ return network_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setNetwork_id(String newNetwork_id) {
+ String oldNetwork_id = network_id;
+ network_id = newNetwork_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID, oldNetwork_id, network_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getIp_version() {
+ return ip_version;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setIp_version(int newIp_version) {
+ int oldIp_version = ip_version;
+ ip_version = newIp_version;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION, oldIp_version, ip_version));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getCidr() {
+ return cidr;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCidr(String newCidr) {
+ String oldCidr = cidr;
+ cidr = newCidr;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__CIDR, oldCidr, cidr));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<AllocationPool> getAllocation_pools() {
+ if (allocation_pools == null) {
+ allocation_pools = new EObjectContainmentEList<AllocationPool>(AllocationPool.class, this, NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS);
+ }
+ return allocation_pools;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getDns_nameservers() {
+ if (dns_nameservers == null) {
+ dns_nameservers = new EDataTypeEList<String>(String.class, this, NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS);
+ }
+ return dns_nameservers;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getEnable_dhcp() {
+ return enable_dhcp;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEnable_dhcp(Boolean newEnable_dhcp) {
+ Boolean oldEnable_dhcp = enable_dhcp;
+ enable_dhcp = newEnable_dhcp;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP, oldEnable_dhcp, enable_dhcp));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getGateway_ip() {
+ return gateway_ip;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setGateway_ip(String newGateway_ip) {
+ String oldGateway_ip = gateway_ip;
+ gateway_ip = newGateway_ip;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP, oldGateway_ip, gateway_ip));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS:
+ return ((InternalEList<?>)getAllocation_pools()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_SUBNET_REQUEST__NAME:
+ return getName();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID:
+ return getNetwork_id();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION:
+ return getIp_version();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__CIDR:
+ return getCidr();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS:
+ return getAllocation_pools();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS:
+ return getDns_nameservers();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP:
+ return getEnable_dhcp();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP:
+ return getGateway_ip();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_SUBNET_REQUEST__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID:
+ setNetwork_id((String)newValue);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION:
+ setIp_version((Integer)newValue);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__CIDR:
+ setCidr((String)newValue);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS:
+ getAllocation_pools().clear();
+ getAllocation_pools().addAll((Collection<? extends AllocationPool>)newValue);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS:
+ getDns_nameservers().clear();
+ getDns_nameservers().addAll((Collection<? extends String>)newValue);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP:
+ setEnable_dhcp((Boolean)newValue);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP:
+ setGateway_ip((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_SUBNET_REQUEST__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID:
+ setNetwork_id(NETWORK_ID_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION:
+ setIp_version(IP_VERSION_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__CIDR:
+ setCidr(CIDR_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS:
+ getAllocation_pools().clear();
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS:
+ getDns_nameservers().clear();
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP:
+ setEnable_dhcp(ENABLE_DHCP_EDEFAULT);
+ return;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP:
+ setGateway_ip(GATEWAY_IP_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.CREATE_SUBNET_REQUEST__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID:
+ return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id);
+ case NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION:
+ return ip_version != IP_VERSION_EDEFAULT;
+ case NeutronPackage.CREATE_SUBNET_REQUEST__CIDR:
+ return CIDR_EDEFAULT == null ? cidr != null : !CIDR_EDEFAULT.equals(cidr);
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS:
+ return allocation_pools != null && !allocation_pools.isEmpty();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS:
+ return dns_nameservers != null && !dns_nameservers.isEmpty();
+ case NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP:
+ return ENABLE_DHCP_EDEFAULT == null ? enable_dhcp != null : !ENABLE_DHCP_EDEFAULT.equals(enable_dhcp);
+ case NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP:
+ return GATEWAY_IP_EDEFAULT == null ? gateway_ip != null : !GATEWAY_IP_EDEFAULT.equals(gateway_ip);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", network_id: ");
+ result.append(network_id);
+ result.append(", ip_version: ");
+ result.append(ip_version);
+ result.append(", cidr: ");
+ result.append(cidr);
+ result.append(", dns_nameservers: ");
+ result.append(dns_nameservers);
+ result.append(", enable_dhcp: ");
+ result.append(enable_dhcp);
+ result.append(", gateway_ip: ");
+ result.append(gateway_ip);
+ result.append(')');
+ return result.toString();
+ }
+
+} //CreateSubnetRequestImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/ExternalGatewayImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/ExternalGatewayImpl.java
new file mode 100644
index 0000000..85e873b
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/ExternalGatewayImpl.java
@@ -0,0 +1,238 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.ExternalGateway;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>External Gateway</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl#getEnable_snat <em>Enable snat</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl#getNetwork_id <em>Network id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ExternalGatewayImpl extends MinimalEObjectImpl.Container implements ExternalGateway {
+ /**
+ * The default value of the '{@link #getEnable_snat() <em>Enable snat</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnable_snat()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ENABLE_SNAT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEnable_snat() <em>Enable snat</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnable_snat()
+ * @generated
+ * @ordered
+ */
+ protected Boolean enable_snat = ENABLE_SNAT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String NETWORK_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected String network_id = NETWORK_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExternalGatewayImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.EXTERNAL_GATEWAY;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getEnable_snat() {
+ return enable_snat;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEnable_snat(Boolean newEnable_snat) {
+ Boolean oldEnable_snat = enable_snat;
+ enable_snat = newEnable_snat;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT, oldEnable_snat, enable_snat));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getNetwork_id() {
+ return network_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setNetwork_id(String newNetwork_id) {
+ String oldNetwork_id = network_id;
+ network_id = newNetwork_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID, oldNetwork_id, network_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT:
+ return getEnable_snat();
+ case NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID:
+ return getNetwork_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT:
+ setEnable_snat((Boolean)newValue);
+ return;
+ case NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID:
+ setNetwork_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT:
+ setEnable_snat(ENABLE_SNAT_EDEFAULT);
+ return;
+ case NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID:
+ setNetwork_id(NETWORK_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT:
+ return ENABLE_SNAT_EDEFAULT == null ? enable_snat != null : !ENABLE_SNAT_EDEFAULT.equals(enable_snat);
+ case NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID:
+ return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (enable_snat: ");
+ result.append(enable_snat);
+ result.append(", network_id: ");
+ result.append(network_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ExternalGatewayImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/FixedIpImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/FixedIpImpl.java
new file mode 100644
index 0000000..e61d5df
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/FixedIpImpl.java
@@ -0,0 +1,238 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.FixedIp;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Fixed Ip</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl#getIp_address <em>Ip address</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl#getSubnet_id <em>Subnet id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class FixedIpImpl extends MinimalEObjectImpl.Container implements FixedIp {
+ /**
+ * The default value of the '{@link #getIp_address() <em>Ip address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getIp_address()
+ * @generated
+ * @ordered
+ */
+ protected static final String IP_ADDRESS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getIp_address() <em>Ip address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getIp_address()
+ * @generated
+ * @ordered
+ */
+ protected String ip_address = IP_ADDRESS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSubnet_id() <em>Subnet id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSubnet_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String SUBNET_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSubnet_id() <em>Subnet id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSubnet_id()
+ * @generated
+ * @ordered
+ */
+ protected String subnet_id = SUBNET_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected FixedIpImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.FIXED_IP;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getIp_address() {
+ return ip_address;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setIp_address(String newIp_address) {
+ String oldIp_address = ip_address;
+ ip_address = newIp_address;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.FIXED_IP__IP_ADDRESS, oldIp_address, ip_address));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSubnet_id() {
+ return subnet_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSubnet_id(String newSubnet_id) {
+ String oldSubnet_id = subnet_id;
+ subnet_id = newSubnet_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.FIXED_IP__SUBNET_ID, oldSubnet_id, subnet_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.FIXED_IP__IP_ADDRESS:
+ return getIp_address();
+ case NeutronPackage.FIXED_IP__SUBNET_ID:
+ return getSubnet_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.FIXED_IP__IP_ADDRESS:
+ setIp_address((String)newValue);
+ return;
+ case NeutronPackage.FIXED_IP__SUBNET_ID:
+ setSubnet_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.FIXED_IP__IP_ADDRESS:
+ setIp_address(IP_ADDRESS_EDEFAULT);
+ return;
+ case NeutronPackage.FIXED_IP__SUBNET_ID:
+ setSubnet_id(SUBNET_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.FIXED_IP__IP_ADDRESS:
+ return IP_ADDRESS_EDEFAULT == null ? ip_address != null : !IP_ADDRESS_EDEFAULT.equals(ip_address);
+ case NeutronPackage.FIXED_IP__SUBNET_ID:
+ return SUBNET_ID_EDEFAULT == null ? subnet_id != null : !SUBNET_ID_EDEFAULT.equals(subnet_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (ip_address: ");
+ result.append(ip_address);
+ result.append(", subnet_id: ");
+ result.append(subnet_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //FixedIpImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NetworkImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NetworkImpl.java
new file mode 100644
index 0000000..ea878d3
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NetworkImpl.java
@@ -0,0 +1,712 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.Network;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Network</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getAdmin_state_up <em>Admin state up</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_network_type <em>Provider network type</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_physical_network <em>Provider physical network</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_segmentation_id <em>Provider segmentation id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getRouter_external <em>Router external</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getShared <em>Shared</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getStatus <em>Status</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getSubnets <em>Subnets</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getTenant_id <em>Tenant id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class NetworkImpl extends NeutronObjectImpl implements Network {
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getProvider_network_type() <em>Provider network type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProvider_network_type()
+ * @generated
+ * @ordered
+ */
+ protected static final String PROVIDER_NETWORK_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getProvider_network_type() <em>Provider network type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProvider_network_type()
+ * @generated
+ * @ordered
+ */
+ protected String provider_network_type = PROVIDER_NETWORK_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getProvider_physical_network() <em>Provider physical network</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProvider_physical_network()
+ * @generated
+ * @ordered
+ */
+ protected static final String PROVIDER_PHYSICAL_NETWORK_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getProvider_physical_network() <em>Provider physical network</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProvider_physical_network()
+ * @generated
+ * @ordered
+ */
+ protected String provider_physical_network = PROVIDER_PHYSICAL_NETWORK_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getProvider_segmentation_id() <em>Provider segmentation id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProvider_segmentation_id()
+ * @generated
+ * @ordered
+ */
+ protected static final Integer PROVIDER_SEGMENTATION_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getProvider_segmentation_id() <em>Provider segmentation id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProvider_segmentation_id()
+ * @generated
+ * @ordered
+ */
+ protected Integer provider_segmentation_id = PROVIDER_SEGMENTATION_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRouter_external() <em>Router external</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouter_external()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ROUTER_EXTERNAL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRouter_external() <em>Router external</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouter_external()
+ * @generated
+ * @ordered
+ */
+ protected Boolean router_external = ROUTER_EXTERNAL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getShared() <em>Shared</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getShared()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean SHARED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getShared() <em>Shared</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getShared()
+ * @generated
+ * @ordered
+ */
+ protected Boolean shared = SHARED_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected static final String STATUS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected String status = STATUS_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getSubnets() <em>Subnets</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSubnets()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> subnets;
+
+ /**
+ * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String TENANT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected String tenant_id = TENANT_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NetworkImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.NETWORK;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getAdmin_state_up() {
+ return admin_state_up;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAdmin_state_up(Boolean newAdmin_state_up) {
+ Boolean oldAdmin_state_up = admin_state_up;
+ admin_state_up = newAdmin_state_up;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getProvider_network_type() {
+ return provider_network_type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProvider_network_type(String newProvider_network_type) {
+ String oldProvider_network_type = provider_network_type;
+ provider_network_type = newProvider_network_type;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE, oldProvider_network_type, provider_network_type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getProvider_physical_network() {
+ return provider_physical_network;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProvider_physical_network(String newProvider_physical_network) {
+ String oldProvider_physical_network = provider_physical_network;
+ provider_physical_network = newProvider_physical_network;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK, oldProvider_physical_network, provider_physical_network));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Integer getProvider_segmentation_id() {
+ return provider_segmentation_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProvider_segmentation_id(Integer newProvider_segmentation_id) {
+ Integer oldProvider_segmentation_id = provider_segmentation_id;
+ provider_segmentation_id = newProvider_segmentation_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID, oldProvider_segmentation_id, provider_segmentation_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getRouter_external() {
+ return router_external;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouter_external(Boolean newRouter_external) {
+ Boolean oldRouter_external = router_external;
+ router_external = newRouter_external;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__ROUTER_EXTERNAL, oldRouter_external, router_external));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getShared() {
+ return shared;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setShared(Boolean newShared) {
+ Boolean oldShared = shared;
+ shared = newShared;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__SHARED, oldShared, shared));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatus(String newStatus) {
+ String oldStatus = status;
+ status = newStatus;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__STATUS, oldStatus, status));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getSubnets() {
+ if (subnets == null) {
+ subnets = new EDataTypeEList<String>(String.class, this, NeutronPackage.NETWORK__SUBNETS);
+ }
+ return subnets;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTenant_id() {
+ return tenant_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTenant_id(String newTenant_id) {
+ String oldTenant_id = tenant_id;
+ tenant_id = newTenant_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__TENANT_ID, oldTenant_id, tenant_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.NETWORK__ID:
+ return getId();
+ case NeutronPackage.NETWORK__NAME:
+ return getName();
+ case NeutronPackage.NETWORK__ADMIN_STATE_UP:
+ return getAdmin_state_up();
+ case NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE:
+ return getProvider_network_type();
+ case NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK:
+ return getProvider_physical_network();
+ case NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID:
+ return getProvider_segmentation_id();
+ case NeutronPackage.NETWORK__ROUTER_EXTERNAL:
+ return getRouter_external();
+ case NeutronPackage.NETWORK__SHARED:
+ return getShared();
+ case NeutronPackage.NETWORK__STATUS:
+ return getStatus();
+ case NeutronPackage.NETWORK__SUBNETS:
+ return getSubnets();
+ case NeutronPackage.NETWORK__TENANT_ID:
+ return getTenant_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.NETWORK__ID:
+ setId((String)newValue);
+ return;
+ case NeutronPackage.NETWORK__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.NETWORK__ADMIN_STATE_UP:
+ setAdmin_state_up((Boolean)newValue);
+ return;
+ case NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE:
+ setProvider_network_type((String)newValue);
+ return;
+ case NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK:
+ setProvider_physical_network((String)newValue);
+ return;
+ case NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID:
+ setProvider_segmentation_id((Integer)newValue);
+ return;
+ case NeutronPackage.NETWORK__ROUTER_EXTERNAL:
+ setRouter_external((Boolean)newValue);
+ return;
+ case NeutronPackage.NETWORK__SHARED:
+ setShared((Boolean)newValue);
+ return;
+ case NeutronPackage.NETWORK__STATUS:
+ setStatus((String)newValue);
+ return;
+ case NeutronPackage.NETWORK__SUBNETS:
+ getSubnets().clear();
+ getSubnets().addAll((Collection<? extends String>)newValue);
+ return;
+ case NeutronPackage.NETWORK__TENANT_ID:
+ setTenant_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.NETWORK__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__ADMIN_STATE_UP:
+ setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE:
+ setProvider_network_type(PROVIDER_NETWORK_TYPE_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK:
+ setProvider_physical_network(PROVIDER_PHYSICAL_NETWORK_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID:
+ setProvider_segmentation_id(PROVIDER_SEGMENTATION_ID_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__ROUTER_EXTERNAL:
+ setRouter_external(ROUTER_EXTERNAL_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__SHARED:
+ setShared(SHARED_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__STATUS:
+ setStatus(STATUS_EDEFAULT);
+ return;
+ case NeutronPackage.NETWORK__SUBNETS:
+ getSubnets().clear();
+ return;
+ case NeutronPackage.NETWORK__TENANT_ID:
+ setTenant_id(TENANT_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.NETWORK__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case NeutronPackage.NETWORK__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.NETWORK__ADMIN_STATE_UP:
+ return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up);
+ case NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE:
+ return PROVIDER_NETWORK_TYPE_EDEFAULT == null ? provider_network_type != null : !PROVIDER_NETWORK_TYPE_EDEFAULT.equals(provider_network_type);
+ case NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK:
+ return PROVIDER_PHYSICAL_NETWORK_EDEFAULT == null ? provider_physical_network != null : !PROVIDER_PHYSICAL_NETWORK_EDEFAULT.equals(provider_physical_network);
+ case NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID:
+ return PROVIDER_SEGMENTATION_ID_EDEFAULT == null ? provider_segmentation_id != null : !PROVIDER_SEGMENTATION_ID_EDEFAULT.equals(provider_segmentation_id);
+ case NeutronPackage.NETWORK__ROUTER_EXTERNAL:
+ return ROUTER_EXTERNAL_EDEFAULT == null ? router_external != null : !ROUTER_EXTERNAL_EDEFAULT.equals(router_external);
+ case NeutronPackage.NETWORK__SHARED:
+ return SHARED_EDEFAULT == null ? shared != null : !SHARED_EDEFAULT.equals(shared);
+ case NeutronPackage.NETWORK__STATUS:
+ return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status);
+ case NeutronPackage.NETWORK__SUBNETS:
+ return subnets != null && !subnets.isEmpty();
+ case NeutronPackage.NETWORK__TENANT_ID:
+ return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: ");
+ result.append(id);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", admin_state_up: ");
+ result.append(admin_state_up);
+ result.append(", provider_network_type: ");
+ result.append(provider_network_type);
+ result.append(", provider_physical_network: ");
+ result.append(provider_physical_network);
+ result.append(", provider_segmentation_id: ");
+ result.append(provider_segmentation_id);
+ result.append(", router_external: ");
+ result.append(router_external);
+ result.append(", shared: ");
+ result.append(shared);
+ result.append(", status: ");
+ result.append(status);
+ result.append(", subnets: ");
+ result.append(subnets);
+ result.append(", tenant_id: ");
+ result.append(tenant_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //NetworkImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFactoryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFactoryImpl.java
new file mode 100644
index 0000000..c2450c3
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFactoryImpl.java
@@ -0,0 +1,281 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class NeutronFactoryImpl extends EFactoryImpl implements NeutronFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static NeutronFactory init() {
+ try {
+ NeutronFactory theNeutronFactory = (NeutronFactory)EPackage.Registry.INSTANCE.getEFactory(NeutronPackage.eNS_URI);
+ if (theNeutronFactory != null) {
+ return theNeutronFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new NeutronFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NeutronFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case NeutronPackage.NETWORK: return createNetwork();
+ case NeutronPackage.SUBNET: return createSubnet();
+ case NeutronPackage.ALLOCATION_POOL: return createAllocationPool();
+ case NeutronPackage.ROUTER: return createRouter();
+ case NeutronPackage.PORT: return createPort();
+ case NeutronPackage.NEUTRON_SECURITY_GROUP: return createNeutronSecurityGroup();
+ case NeutronPackage.NEUTRON_SECURITY_RULE: return createNeutronSecurityRule();
+ case NeutronPackage.NEUTRON_FLOATING_IP: return createNeutronFloatingIp();
+ case NeutronPackage.BINDING_PROFILE: return createBindingProfile();
+ case NeutronPackage.BINDING_VIF_DETAIL: return createBindingVifDetail();
+ case NeutronPackage.FIXED_IP: return createFixedIp();
+ case NeutronPackage.EXTERNAL_GATEWAY: return createExternalGateway();
+ case NeutronPackage.CREATE_NETWORK_REQUEST: return createCreateNetworkRequest();
+ case NeutronPackage.CREATE_SUBNET_REQUEST: return createCreateSubnetRequest();
+ case NeutronPackage.CREATE_ROUTER_REQUEST: return createCreateRouterRequest();
+ case NeutronPackage.CREATE_PORT_REQUEST: return createCreatePortRequest();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Network createNetwork() {
+ NetworkImpl network = new NetworkImpl();
+ return network;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Subnet createSubnet() {
+ SubnetImpl subnet = new SubnetImpl();
+ return subnet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AllocationPool createAllocationPool() {
+ AllocationPoolImpl allocationPool = new AllocationPoolImpl();
+ return allocationPool;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Router createRouter() {
+ RouterImpl router = new RouterImpl();
+ return router;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Port createPort() {
+ PortImpl port = new PortImpl();
+ return port;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NeutronSecurityGroup createNeutronSecurityGroup() {
+ NeutronSecurityGroupImpl neutronSecurityGroup = new NeutronSecurityGroupImpl();
+ return neutronSecurityGroup;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NeutronSecurityRule createNeutronSecurityRule() {
+ NeutronSecurityRuleImpl neutronSecurityRule = new NeutronSecurityRuleImpl();
+ return neutronSecurityRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NeutronFloatingIp createNeutronFloatingIp() {
+ NeutronFloatingIpImpl neutronFloatingIp = new NeutronFloatingIpImpl();
+ return neutronFloatingIp;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BindingProfile createBindingProfile() {
+ BindingProfileImpl bindingProfile = new BindingProfileImpl();
+ return bindingProfile;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BindingVifDetail createBindingVifDetail() {
+ BindingVifDetailImpl bindingVifDetail = new BindingVifDetailImpl();
+ return bindingVifDetail;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FixedIp createFixedIp() {
+ FixedIpImpl fixedIp = new FixedIpImpl();
+ return fixedIp;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExternalGateway createExternalGateway() {
+ ExternalGatewayImpl externalGateway = new ExternalGatewayImpl();
+ return externalGateway;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CreateNetworkRequest createCreateNetworkRequest() {
+ CreateNetworkRequestImpl createNetworkRequest = new CreateNetworkRequestImpl();
+ return createNetworkRequest;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CreateSubnetRequest createCreateSubnetRequest() {
+ CreateSubnetRequestImpl createSubnetRequest = new CreateSubnetRequestImpl();
+ return createSubnetRequest;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CreateRouterRequest createCreateRouterRequest() {
+ CreateRouterRequestImpl createRouterRequest = new CreateRouterRequestImpl();
+ return createRouterRequest;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CreatePortRequest createCreatePortRequest() {
+ CreatePortRequestImpl createPortRequest = new CreatePortRequestImpl();
+ return createPortRequest;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NeutronPackage getNeutronPackage() {
+ return (NeutronPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static NeutronPackage getPackage() {
+ return NeutronPackage.eINSTANCE;
+ }
+
+} //NeutronFactoryImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFloatingIpImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFloatingIpImpl.java
new file mode 100644
index 0000000..7e4e1fb
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFloatingIpImpl.java
@@ -0,0 +1,615 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Floating Ip</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getStatus <em>Status</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFloating_network_id <em>Floating network id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getRouter_id <em>Router id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFixed_ip_address <em>Fixed ip address</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFloating_ip_address <em>Floating ip address</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getTenant_id <em>Tenant id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getPort_id <em>Port id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class NeutronFloatingIpImpl extends NeutronObjectImpl implements NeutronFloatingIp {
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected static final String STATUS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected String status = STATUS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFloating_network_id() <em>Floating network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFloating_network_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String FLOATING_NETWORK_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFloating_network_id() <em>Floating network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFloating_network_id()
+ * @generated
+ * @ordered
+ */
+ protected String floating_network_id = FLOATING_NETWORK_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRouter_id() <em>Router id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouter_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROUTER_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRouter_id() <em>Router id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouter_id()
+ * @generated
+ * @ordered
+ */
+ protected String router_id = ROUTER_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFixed_ip_address() <em>Fixed ip address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFixed_ip_address()
+ * @generated
+ * @ordered
+ */
+ protected static final String FIXED_IP_ADDRESS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFixed_ip_address() <em>Fixed ip address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFixed_ip_address()
+ * @generated
+ * @ordered
+ */
+ protected String fixed_ip_address = FIXED_IP_ADDRESS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFloating_ip_address() <em>Floating ip address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFloating_ip_address()
+ * @generated
+ * @ordered
+ */
+ protected static final String FLOATING_IP_ADDRESS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFloating_ip_address() <em>Floating ip address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFloating_ip_address()
+ * @generated
+ * @ordered
+ */
+ protected String floating_ip_address = FLOATING_IP_ADDRESS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String TENANT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected String tenant_id = TENANT_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPort_id() <em>Port id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String PORT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPort_id() <em>Port id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort_id()
+ * @generated
+ * @ordered
+ */
+ protected String port_id = PORT_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NeutronFloatingIpImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.NEUTRON_FLOATING_IP;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatus(String newStatus) {
+ String oldStatus = status;
+ status = newStatus;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__STATUS, oldStatus, status));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFloating_network_id() {
+ return floating_network_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFloating_network_id(String newFloating_network_id) {
+ String oldFloating_network_id = floating_network_id;
+ floating_network_id = newFloating_network_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID, oldFloating_network_id, floating_network_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRouter_id() {
+ return router_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouter_id(String newRouter_id) {
+ String oldRouter_id = router_id;
+ router_id = newRouter_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID, oldRouter_id, router_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFixed_ip_address() {
+ return fixed_ip_address;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFixed_ip_address(String newFixed_ip_address) {
+ String oldFixed_ip_address = fixed_ip_address;
+ fixed_ip_address = newFixed_ip_address;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS, oldFixed_ip_address, fixed_ip_address));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFloating_ip_address() {
+ return floating_ip_address;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFloating_ip_address(String newFloating_ip_address) {
+ String oldFloating_ip_address = floating_ip_address;
+ floating_ip_address = newFloating_ip_address;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS, oldFloating_ip_address, floating_ip_address));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTenant_id() {
+ return tenant_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTenant_id(String newTenant_id) {
+ String oldTenant_id = tenant_id;
+ tenant_id = newTenant_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID, oldTenant_id, tenant_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getPort_id() {
+ return port_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPort_id(String newPort_id) {
+ String oldPort_id = port_id;
+ port_id = newPort_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID, oldPort_id, port_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_FLOATING_IP__ID:
+ return getId();
+ case NeutronPackage.NEUTRON_FLOATING_IP__NAME:
+ return getName();
+ case NeutronPackage.NEUTRON_FLOATING_IP__STATUS:
+ return getStatus();
+ case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID:
+ return getFloating_network_id();
+ case NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID:
+ return getRouter_id();
+ case NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS:
+ return getFixed_ip_address();
+ case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS:
+ return getFloating_ip_address();
+ case NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID:
+ return getTenant_id();
+ case NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID:
+ return getPort_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_FLOATING_IP__ID:
+ setId((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__STATUS:
+ setStatus((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID:
+ setFloating_network_id((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID:
+ setRouter_id((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS:
+ setFixed_ip_address((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS:
+ setFloating_ip_address((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID:
+ setTenant_id((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID:
+ setPort_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_FLOATING_IP__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__STATUS:
+ setStatus(STATUS_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID:
+ setFloating_network_id(FLOATING_NETWORK_ID_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID:
+ setRouter_id(ROUTER_ID_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS:
+ setFixed_ip_address(FIXED_IP_ADDRESS_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS:
+ setFloating_ip_address(FLOATING_IP_ADDRESS_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID:
+ setTenant_id(TENANT_ID_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID:
+ setPort_id(PORT_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_FLOATING_IP__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case NeutronPackage.NEUTRON_FLOATING_IP__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.NEUTRON_FLOATING_IP__STATUS:
+ return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status);
+ case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID:
+ return FLOATING_NETWORK_ID_EDEFAULT == null ? floating_network_id != null : !FLOATING_NETWORK_ID_EDEFAULT.equals(floating_network_id);
+ case NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID:
+ return ROUTER_ID_EDEFAULT == null ? router_id != null : !ROUTER_ID_EDEFAULT.equals(router_id);
+ case NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS:
+ return FIXED_IP_ADDRESS_EDEFAULT == null ? fixed_ip_address != null : !FIXED_IP_ADDRESS_EDEFAULT.equals(fixed_ip_address);
+ case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS:
+ return FLOATING_IP_ADDRESS_EDEFAULT == null ? floating_ip_address != null : !FLOATING_IP_ADDRESS_EDEFAULT.equals(floating_ip_address);
+ case NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID:
+ return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id);
+ case NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID:
+ return PORT_ID_EDEFAULT == null ? port_id != null : !PORT_ID_EDEFAULT.equals(port_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: ");
+ result.append(id);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", status: ");
+ result.append(status);
+ result.append(", floating_network_id: ");
+ result.append(floating_network_id);
+ result.append(", router_id: ");
+ result.append(router_id);
+ result.append(", fixed_ip_address: ");
+ result.append(fixed_ip_address);
+ result.append(", floating_ip_address: ");
+ result.append(floating_ip_address);
+ result.append(", tenant_id: ");
+ result.append(tenant_id);
+ result.append(", port_id: ");
+ result.append(port_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //NeutronFloatingIpImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronObjectImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronObjectImpl.java
new file mode 100644
index 0000000..7a5b76e
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronObjectImpl.java
@@ -0,0 +1,62 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.NeutronObject;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Object</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public abstract class NeutronObjectImpl extends MinimalEObjectImpl.Container implements NeutronObject {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NeutronObjectImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.NEUTRON_OBJECT;
+ }
+
+} //NeutronObjectImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java
new file mode 100644
index 0000000..d105474
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java
@@ -0,0 +1,1962 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.core.CorePackage;
+
+import org.openecomp.ncomp.openstack.neutron.AllocationPool;
+import org.openecomp.ncomp.openstack.neutron.BindingProfile;
+import org.openecomp.ncomp.openstack.neutron.BindingVifDetail;
+import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest;
+import org.openecomp.ncomp.openstack.neutron.CreatePortRequest;
+import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest;
+import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest;
+import org.openecomp.ncomp.openstack.neutron.ExternalGateway;
+import org.openecomp.ncomp.openstack.neutron.FixedIp;
+import org.openecomp.ncomp.openstack.neutron.Network;
+import org.openecomp.ncomp.openstack.neutron.NeutronFactory;
+import org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp;
+import org.openecomp.ncomp.openstack.neutron.NeutronObject;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import org.openecomp.ncomp.openstack.neutron.NeutronRequest;
+import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup;
+import org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule;
+import org.openecomp.ncomp.openstack.neutron.NeutronService;
+import org.openecomp.ncomp.openstack.neutron.Port;
+import org.openecomp.ncomp.openstack.neutron.Router;
+import org.openecomp.ncomp.openstack.neutron.Subnet;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EOperation;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class NeutronPackageImpl extends EPackageImpl implements NeutronPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass neutronServiceEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass neutronObjectEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass networkEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass subnetEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass allocationPoolEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass routerEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass portEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass neutronSecurityGroupEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass neutronSecurityRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass neutronFloatingIpEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass bindingProfileEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass bindingVifDetailEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass fixedIpEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass externalGatewayEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass neutronRequestEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass createNetworkRequestEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass createSubnetRequestEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass createRouterRequestEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass createPortRequestEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private NeutronPackageImpl() {
+ super(eNS_URI, NeutronFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link NeutronPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static NeutronPackage init() {
+ if (isInited) return (NeutronPackage)EPackage.Registry.INSTANCE.getEPackage(NeutronPackage.eNS_URI);
+
+ // Obtain or create and register package
+ NeutronPackageImpl theNeutronPackage = (NeutronPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof NeutronPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new NeutronPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ CorePackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theNeutronPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theNeutronPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theNeutronPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(NeutronPackage.eNS_URI, theNeutronPackage);
+ return theNeutronPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNeutronService() {
+ return neutronServiceEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__CreateNetwork__CreateNetworkRequest() {
+ return neutronServiceEClass.getEOperations().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__CreateSubnet__CreateSubnetRequest() {
+ return neutronServiceEClass.getEOperations().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__CreatePort__CreatePortRequest() {
+ return neutronServiceEClass.getEOperations().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__CreateRouter__CreateRouterRequest() {
+ return neutronServiceEClass.getEOperations().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__DeleteNetwork__String_String() {
+ return neutronServiceEClass.getEOperations().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__DeleteSubnet__String_String() {
+ return neutronServiceEClass.getEOperations().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__DeletePort__String_String() {
+ return neutronServiceEClass.getEOperations().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__DeleteRouter__String_String() {
+ return neutronServiceEClass.getEOperations().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EOperation getNeutronService__AssociateFloatingIp__String_String_String() {
+ return neutronServiceEClass.getEOperations().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNeutronObject() {
+ return neutronObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNetwork() {
+ return networkEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Id() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Name() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Admin_state_up() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Provider_network_type() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Provider_physical_network() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Provider_segmentation_id() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Router_external() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Shared() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Status() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Subnets() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNetwork_Tenant_id() {
+ return (EAttribute)networkEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSubnet() {
+ return subnetEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Id() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Name() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Status() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Admin_state_up() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Cidr() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getSubnet_Allocation_pools() {
+ return (EReference)subnetEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Dns_nameservers() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Enable_dhcp() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Gateway_ip() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Host_routes() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Ip_version() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Network_id() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(11);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubnet_Tenant_id() {
+ return (EAttribute)subnetEClass.getEStructuralFeatures().get(12);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getAllocationPool() {
+ return allocationPoolEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAllocationPool_Start() {
+ return (EAttribute)allocationPoolEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getAllocationPool_End() {
+ return (EAttribute)allocationPoolEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRouter() {
+ return routerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_Id() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_Name() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_Status() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_Admin_state_up() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRouter_External_gateway_info() {
+ return (EReference)routerEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_Tenant_id() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getPort() {
+ return portEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Id() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Name() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Status() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Admin_state_up() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPort_External_gateway_info() {
+ return (EReference)portEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Tenant_id() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Allowed_address_pairs() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Binding_host_id() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPort_Binding_profile() {
+ return (EReference)portEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPort_Binding_vif_details() {
+ return (EReference)portEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Binding_vif_type() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Binding_vnic_type() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(11);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Device_id() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(12);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Device_owner() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(13);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Extra_dhcp_opts() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(14);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPort_Fixed_ips() {
+ return (EReference)portEClass.getEStructuralFeatures().get(15);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Mac_address() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(16);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Network_id() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(17);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPort_Security_groups() {
+ return (EAttribute)portEClass.getEStructuralFeatures().get(18);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNeutronSecurityGroup() {
+ return neutronSecurityGroupEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityGroup_Id() {
+ return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityGroup_Name() {
+ return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityGroup_Description() {
+ return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getNeutronSecurityGroup_Security_group_rules() {
+ return (EReference)neutronSecurityGroupEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityGroup_Tenant_id() {
+ return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNeutronSecurityRule() {
+ return neutronSecurityRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Id() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Direction() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Ethertype() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Port_range_min() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Port_range_max() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Protocol() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Remote_group_id() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Remote_ip_prefix() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Security_group_id() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronSecurityRule_Tenant_id() {
+ return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNeutronFloatingIp() {
+ return neutronFloatingIpEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Id() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Name() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Status() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Floating_network_id() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Router_id() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Fixed_ip_address() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Floating_ip_address() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Tenant_id() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getNeutronFloatingIp_Port_id() {
+ return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getBindingProfile() {
+ return bindingProfileEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getBindingVifDetail() {
+ return bindingVifDetailEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getBindingVifDetail_Ovs_hybrid_plug() {
+ return (EAttribute)bindingVifDetailEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getBindingVifDetail_Port_filter() {
+ return (EAttribute)bindingVifDetailEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getFixedIp() {
+ return fixedIpEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getFixedIp_Ip_address() {
+ return (EAttribute)fixedIpEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getFixedIp_Subnet_id() {
+ return (EAttribute)fixedIpEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getExternalGateway() {
+ return externalGatewayEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExternalGateway_Enable_snat() {
+ return (EAttribute)externalGatewayEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExternalGateway_Network_id() {
+ return (EAttribute)externalGatewayEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNeutronRequest() {
+ return neutronRequestEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCreateNetworkRequest() {
+ return createNetworkRequestEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateNetworkRequest_Name() {
+ return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateNetworkRequest_ProviderNetworkType() {
+ return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateNetworkRequest_ProviderPhysicalNetwork() {
+ return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateNetworkRequest_ProviderSegmentationId() {
+ return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateNetworkRequest_Admin_state_up() {
+ return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateNetworkRequest_Shared() {
+ return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCreateSubnetRequest() {
+ return createSubnetRequestEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateSubnetRequest_Name() {
+ return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateSubnetRequest_Network_id() {
+ return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateSubnetRequest_Ip_version() {
+ return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateSubnetRequest_Cidr() {
+ return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCreateSubnetRequest_Allocation_pools() {
+ return (EReference)createSubnetRequestEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateSubnetRequest_Dns_nameservers() {
+ return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateSubnetRequest_Enable_dhcp() {
+ return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateSubnetRequest_Gateway_ip() {
+ return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCreateRouterRequest() {
+ return createRouterRequestEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateRouterRequest_Name() {
+ return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateRouterRequest_Admin_state_up() {
+ return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateRouterRequest_Shared() {
+ return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateRouterRequest_ExternalNetwork() {
+ return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateRouterRequest_Ports() {
+ return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreateRouterRequest_Subnets() {
+ return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCreatePortRequest() {
+ return createPortRequestEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreatePortRequest_Name() {
+ return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreatePortRequest_BindingVnicType() {
+ return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreatePortRequest_Status() {
+ return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreatePortRequest_Admin_state_up() {
+ return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCreatePortRequest_Fixed_ips() {
+ return (EReference)createPortRequestEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreatePortRequest_Mac_address() {
+ return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCreatePortRequest_Network_id() {
+ return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NeutronFactory getNeutronFactory() {
+ return (NeutronFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ neutronServiceEClass = createEClass(NEUTRON_SERVICE);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_PORT__STRING_STRING);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING);
+ createEOperation(neutronServiceEClass, NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING);
+
+ neutronObjectEClass = createEClass(NEUTRON_OBJECT);
+
+ networkEClass = createEClass(NETWORK);
+ createEAttribute(networkEClass, NETWORK__ID);
+ createEAttribute(networkEClass, NETWORK__NAME);
+ createEAttribute(networkEClass, NETWORK__ADMIN_STATE_UP);
+ createEAttribute(networkEClass, NETWORK__PROVIDER_NETWORK_TYPE);
+ createEAttribute(networkEClass, NETWORK__PROVIDER_PHYSICAL_NETWORK);
+ createEAttribute(networkEClass, NETWORK__PROVIDER_SEGMENTATION_ID);
+ createEAttribute(networkEClass, NETWORK__ROUTER_EXTERNAL);
+ createEAttribute(networkEClass, NETWORK__SHARED);
+ createEAttribute(networkEClass, NETWORK__STATUS);
+ createEAttribute(networkEClass, NETWORK__SUBNETS);
+ createEAttribute(networkEClass, NETWORK__TENANT_ID);
+
+ subnetEClass = createEClass(SUBNET);
+ createEAttribute(subnetEClass, SUBNET__ID);
+ createEAttribute(subnetEClass, SUBNET__NAME);
+ createEAttribute(subnetEClass, SUBNET__STATUS);
+ createEAttribute(subnetEClass, SUBNET__ADMIN_STATE_UP);
+ createEAttribute(subnetEClass, SUBNET__CIDR);
+ createEReference(subnetEClass, SUBNET__ALLOCATION_POOLS);
+ createEAttribute(subnetEClass, SUBNET__DNS_NAMESERVERS);
+ createEAttribute(subnetEClass, SUBNET__ENABLE_DHCP);
+ createEAttribute(subnetEClass, SUBNET__GATEWAY_IP);
+ createEAttribute(subnetEClass, SUBNET__HOST_ROUTES);
+ createEAttribute(subnetEClass, SUBNET__IP_VERSION);
+ createEAttribute(subnetEClass, SUBNET__NETWORK_ID);
+ createEAttribute(subnetEClass, SUBNET__TENANT_ID);
+
+ allocationPoolEClass = createEClass(ALLOCATION_POOL);
+ createEAttribute(allocationPoolEClass, ALLOCATION_POOL__START);
+ createEAttribute(allocationPoolEClass, ALLOCATION_POOL__END);
+
+ routerEClass = createEClass(ROUTER);
+ createEAttribute(routerEClass, ROUTER__ID);
+ createEAttribute(routerEClass, ROUTER__NAME);
+ createEAttribute(routerEClass, ROUTER__STATUS);
+ createEAttribute(routerEClass, ROUTER__ADMIN_STATE_UP);
+ createEReference(routerEClass, ROUTER__EXTERNAL_GATEWAY_INFO);
+ createEAttribute(routerEClass, ROUTER__TENANT_ID);
+
+ portEClass = createEClass(PORT);
+ createEAttribute(portEClass, PORT__ID);
+ createEAttribute(portEClass, PORT__NAME);
+ createEAttribute(portEClass, PORT__STATUS);
+ createEAttribute(portEClass, PORT__ADMIN_STATE_UP);
+ createEReference(portEClass, PORT__EXTERNAL_GATEWAY_INFO);
+ createEAttribute(portEClass, PORT__TENANT_ID);
+ createEAttribute(portEClass, PORT__ALLOWED_ADDRESS_PAIRS);
+ createEAttribute(portEClass, PORT__BINDING_HOST_ID);
+ createEReference(portEClass, PORT__BINDING_PROFILE);
+ createEReference(portEClass, PORT__BINDING_VIF_DETAILS);
+ createEAttribute(portEClass, PORT__BINDING_VIF_TYPE);
+ createEAttribute(portEClass, PORT__BINDING_VNIC_TYPE);
+ createEAttribute(portEClass, PORT__DEVICE_ID);
+ createEAttribute(portEClass, PORT__DEVICE_OWNER);
+ createEAttribute(portEClass, PORT__EXTRA_DHCP_OPTS);
+ createEReference(portEClass, PORT__FIXED_IPS);
+ createEAttribute(portEClass, PORT__MAC_ADDRESS);
+ createEAttribute(portEClass, PORT__NETWORK_ID);
+ createEAttribute(portEClass, PORT__SECURITY_GROUPS);
+
+ neutronSecurityGroupEClass = createEClass(NEUTRON_SECURITY_GROUP);
+ createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__ID);
+ createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__NAME);
+ createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__DESCRIPTION);
+ createEReference(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES);
+ createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__TENANT_ID);
+
+ neutronSecurityRuleEClass = createEClass(NEUTRON_SECURITY_RULE);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__ID);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__DIRECTION);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__ETHERTYPE);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PORT_RANGE_MIN);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PORT_RANGE_MAX);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PROTOCOL);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID);
+ createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__TENANT_ID);
+
+ neutronFloatingIpEClass = createEClass(NEUTRON_FLOATING_IP);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__ID);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__NAME);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__STATUS);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__ROUTER_ID);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__TENANT_ID);
+ createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__PORT_ID);
+
+ bindingProfileEClass = createEClass(BINDING_PROFILE);
+
+ bindingVifDetailEClass = createEClass(BINDING_VIF_DETAIL);
+ createEAttribute(bindingVifDetailEClass, BINDING_VIF_DETAIL__OVS_HYBRID_PLUG);
+ createEAttribute(bindingVifDetailEClass, BINDING_VIF_DETAIL__PORT_FILTER);
+
+ fixedIpEClass = createEClass(FIXED_IP);
+ createEAttribute(fixedIpEClass, FIXED_IP__IP_ADDRESS);
+ createEAttribute(fixedIpEClass, FIXED_IP__SUBNET_ID);
+
+ externalGatewayEClass = createEClass(EXTERNAL_GATEWAY);
+ createEAttribute(externalGatewayEClass, EXTERNAL_GATEWAY__ENABLE_SNAT);
+ createEAttribute(externalGatewayEClass, EXTERNAL_GATEWAY__NETWORK_ID);
+
+ neutronRequestEClass = createEClass(NEUTRON_REQUEST);
+
+ createNetworkRequestEClass = createEClass(CREATE_NETWORK_REQUEST);
+ createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__NAME);
+ createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE);
+ createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK);
+ createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID);
+ createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__ADMIN_STATE_UP);
+ createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__SHARED);
+
+ createSubnetRequestEClass = createEClass(CREATE_SUBNET_REQUEST);
+ createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__NAME);
+ createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__NETWORK_ID);
+ createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__IP_VERSION);
+ createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__CIDR);
+ createEReference(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__ALLOCATION_POOLS);
+ createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__DNS_NAMESERVERS);
+ createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__ENABLE_DHCP);
+ createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__GATEWAY_IP);
+
+ createRouterRequestEClass = createEClass(CREATE_ROUTER_REQUEST);
+ createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__NAME);
+ createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__ADMIN_STATE_UP);
+ createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__SHARED);
+ createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK);
+ createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__PORTS);
+ createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__SUBNETS);
+
+ createPortRequestEClass = createEClass(CREATE_PORT_REQUEST);
+ createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__NAME);
+ createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__BINDING_VNIC_TYPE);
+ createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__STATUS);
+ createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__ADMIN_STATE_UP);
+ createEReference(createPortRequestEClass, CREATE_PORT_REQUEST__FIXED_IPS);
+ createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__MAC_ADDRESS);
+ createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__NETWORK_ID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+ CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ networkEClass.getESuperTypes().add(this.getNeutronObject());
+ subnetEClass.getESuperTypes().add(this.getNeutronObject());
+ routerEClass.getESuperTypes().add(this.getNeutronObject());
+ portEClass.getESuperTypes().add(this.getNeutronObject());
+ neutronSecurityGroupEClass.getESuperTypes().add(this.getNeutronObject());
+ neutronSecurityRuleEClass.getESuperTypes().add(this.getNeutronObject());
+ neutronFloatingIpEClass.getESuperTypes().add(this.getNeutronObject());
+ neutronRequestEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest());
+ createNetworkRequestEClass.getESuperTypes().add(this.getNeutronRequest());
+ createSubnetRequestEClass.getESuperTypes().add(this.getNeutronRequest());
+ createRouterRequestEClass.getESuperTypes().add(this.getNeutronRequest());
+ createPortRequestEClass.getESuperTypes().add(this.getNeutronRequest());
+
+ // Initialize classes, features, and operations; add parameters
+ initEClass(neutronServiceEClass, NeutronService.class, "NeutronService", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ EOperation op = initEOperation(getNeutronService__CreateNetwork__CreateNetworkRequest(), this.getNetwork(), "createNetwork", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, this.getCreateNetworkRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getNeutronService__CreateSubnet__CreateSubnetRequest(), this.getSubnet(), "createSubnet", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, this.getCreateSubnetRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getNeutronService__CreatePort__CreatePortRequest(), this.getPort(), "createPort", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, this.getCreatePortRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getNeutronService__CreateRouter__CreateRouterRequest(), this.getRouter(), "createRouter", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, this.getCreateRouterRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getNeutronService__DeleteNetwork__String_String(), null, "deleteNetwork", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getNeutronService__DeleteSubnet__String_String(), null, "deleteSubnet", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getNeutronService__DeletePort__String_String(), null, "deletePort", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getNeutronService__DeleteRouter__String_String(), null, "deleteRouter", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ op = initEOperation(getNeutronService__AssociateFloatingIp__String_String_String(), null, "associateFloatingIp", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "ipId", 0, 1, !IS_UNIQUE, IS_ORDERED);
+ addEParameter(op, theEcorePackage.getEString(), "portId", 0, 1, !IS_UNIQUE, IS_ORDERED);
+
+ initEClass(neutronObjectEClass, NeutronObject.class, "NeutronObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(networkEClass, Network.class, "Network", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getNetwork_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Provider_network_type(), theEcorePackage.getEString(), "provider_network_type", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Provider_physical_network(), theEcorePackage.getEString(), "provider_physical_network", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Provider_segmentation_id(), theEcorePackage.getEIntegerObject(), "provider_segmentation_id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Router_external(), theEcorePackage.getEBooleanObject(), "router_external", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Subnets(), theEcorePackage.getEString(), "subnets", null, 0, -1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNetwork_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(subnetEClass, Subnet.class, "Subnet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSubnet_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getSubnet_Allocation_pools(), this.getAllocationPool(), null, "allocation_pools", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Dns_nameservers(), theEcorePackage.getEString(), "dns_nameservers", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Enable_dhcp(), theEcorePackage.getEBooleanObject(), "enable_dhcp", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Gateway_ip(), theEcorePackage.getEString(), "gateway_ip", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Host_routes(), theEcorePackage.getEString(), "host_routes", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Ip_version(), theEcorePackage.getEIntegerObject(), "ip_version", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSubnet_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(allocationPoolEClass, AllocationPool.class, "AllocationPool", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getAllocationPool_Start(), theEcorePackage.getEString(), "start", null, 0, 1, AllocationPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getAllocationPool_End(), theEcorePackage.getEString(), "end", null, 0, 1, AllocationPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(routerEClass, Router.class, "Router", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getRouter_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getRouter_External_gateway_info(), this.getExternalGateway(), null, "external_gateway_info", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(portEClass, Port.class, "Port", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getPort_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPort_External_gateway_info(), this.getExternalGateway(), null, "external_gateway_info", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Allowed_address_pairs(), theEcorePackage.getEString(), "allowed_address_pairs", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Binding_host_id(), theEcorePackage.getEString(), "binding_host_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPort_Binding_profile(), this.getBindingProfile(), null, "binding_profile", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPort_Binding_vif_details(), this.getBindingVifDetail(), null, "binding_vif_details", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Binding_vif_type(), theEcorePackage.getEString(), "binding_vif_type", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Binding_vnic_type(), theEcorePackage.getEString(), "binding_vnic_type", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Device_id(), theEcorePackage.getEString(), "device_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Device_owner(), theEcorePackage.getEString(), "device_owner", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Extra_dhcp_opts(), theEcorePackage.getEString(), "extra_dhcp_opts", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPort_Fixed_ips(), this.getFixedIp(), null, "fixed_ips", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Mac_address(), theEcorePackage.getEString(), "mac_address", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPort_Security_groups(), theEcorePackage.getEString(), "security_groups", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(neutronSecurityGroupEClass, NeutronSecurityGroup.class, "NeutronSecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getNeutronSecurityGroup_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityGroup_Name(), theEcorePackage.getEString(), "name", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityGroup_Description(), theEcorePackage.getEString(), "description", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getNeutronSecurityGroup_Security_group_rules(), this.getNeutronSecurityRule(), null, "security_group_rules", null, 0, -1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityGroup_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(neutronSecurityRuleEClass, NeutronSecurityRule.class, "NeutronSecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getNeutronSecurityRule_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Direction(), theEcorePackage.getEString(), "direction", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Ethertype(), theEcorePackage.getEString(), "ethertype", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Port_range_min(), theEcorePackage.getEIntegerObject(), "port_range_min", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Port_range_max(), theEcorePackage.getEIntegerObject(), "port_range_max", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Protocol(), theEcorePackage.getEString(), "protocol", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Remote_group_id(), theEcorePackage.getEString(), "remote_group_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Remote_ip_prefix(), theEcorePackage.getEString(), "remote_ip_prefix", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Security_group_id(), theEcorePackage.getEString(), "security_group_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronSecurityRule_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(neutronFloatingIpEClass, NeutronFloatingIp.class, "NeutronFloatingIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getNeutronFloatingIp_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronFloatingIp_Name(), theEcorePackage.getEString(), "name", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronFloatingIp_Status(), theEcorePackage.getEString(), "status", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronFloatingIp_Floating_network_id(), theEcorePackage.getEString(), "floating_network_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronFloatingIp_Router_id(), theEcorePackage.getEString(), "router_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronFloatingIp_Fixed_ip_address(), theEcorePackage.getEString(), "fixed_ip_address", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronFloatingIp_Floating_ip_address(), theEcorePackage.getEString(), "floating_ip_address", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronFloatingIp_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getNeutronFloatingIp_Port_id(), theEcorePackage.getEString(), "port_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(bindingProfileEClass, BindingProfile.class, "BindingProfile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(bindingVifDetailEClass, BindingVifDetail.class, "BindingVifDetail", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getBindingVifDetail_Ovs_hybrid_plug(), theEcorePackage.getEBooleanObject(), "ovs_hybrid_plug", null, 0, 1, BindingVifDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getBindingVifDetail_Port_filter(), theEcorePackage.getEBooleanObject(), "port_filter", null, 0, 1, BindingVifDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(fixedIpEClass, FixedIp.class, "FixedIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getFixedIp_Ip_address(), theEcorePackage.getEString(), "ip_address", null, 0, 1, FixedIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getFixedIp_Subnet_id(), theEcorePackage.getEString(), "subnet_id", null, 0, 1, FixedIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(externalGatewayEClass, ExternalGateway.class, "ExternalGateway", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getExternalGateway_Enable_snat(), theEcorePackage.getEBooleanObject(), "enable_snat", null, 0, 1, ExternalGateway.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExternalGateway_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, ExternalGateway.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(neutronRequestEClass, NeutronRequest.class, "NeutronRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(createNetworkRequestEClass, CreateNetworkRequest.class, "CreateNetworkRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getCreateNetworkRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateNetworkRequest_ProviderNetworkType(), theEcorePackage.getEString(), "providerNetworkType", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateNetworkRequest_ProviderPhysicalNetwork(), theEcorePackage.getEString(), "providerPhysicalNetwork", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateNetworkRequest_ProviderSegmentationId(), theEcorePackage.getEInt(), "providerSegmentationId", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateNetworkRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateNetworkRequest_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(createSubnetRequestEClass, CreateSubnetRequest.class, "CreateSubnetRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getCreateSubnetRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateSubnetRequest_Network_id(), theEcorePackage.getEString(), "network_id", null, 1, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateSubnetRequest_Ip_version(), theEcorePackage.getEInt(), "ip_version", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateSubnetRequest_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getCreateSubnetRequest_Allocation_pools(), this.getAllocationPool(), null, "allocation_pools", null, 0, -1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateSubnetRequest_Dns_nameservers(), theEcorePackage.getEString(), "dns_nameservers", null, 0, -1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateSubnetRequest_Enable_dhcp(), theEcorePackage.getEBooleanObject(), "enable_dhcp", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateSubnetRequest_Gateway_ip(), theEcorePackage.getEString(), "gateway_ip", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(createRouterRequestEClass, CreateRouterRequest.class, "CreateRouterRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getCreateRouterRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateRouterRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateRouterRequest_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateRouterRequest_ExternalNetwork(), theEcorePackage.getEString(), "externalNetwork", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateRouterRequest_Ports(), theEcorePackage.getEString(), "ports", null, 0, -1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreateRouterRequest_Subnets(), theEcorePackage.getEString(), "subnets", null, 0, -1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(createPortRequestEClass, CreatePortRequest.class, "CreatePortRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getCreatePortRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreatePortRequest_BindingVnicType(), theEcorePackage.getEString(), "bindingVnicType", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreatePortRequest_Status(), theEcorePackage.getEString(), "status", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreatePortRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getCreatePortRequest_Fixed_ips(), this.getFixedIp(), null, "fixed_ips", null, 0, -1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreatePortRequest_Mac_address(), theEcorePackage.getEString(), "mac_address", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCreatePortRequest_Network_id(), theEcorePackage.getEString(), "network_id", null, 1, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http://www.eclipse.org/emf/2011/Xcore
+ createXcoreAnnotations();
+ // http://openecomp.org/sirius/openstack
+ createOpenstackAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for <b>http://www.eclipse.org/emf/2011/Xcore</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createXcoreAnnotations() {
+ String source = "http://www.eclipse.org/emf/2011/Xcore";
+ addAnnotation
+ (this,
+ source,
+ new String[] {
+ "openstack", "http://openecomp.org/sirius/openstack"
+ });
+ }
+
+ /**
+ * Initializes the annotations for <b>http://openecomp.org/sirius/openstack</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createOpenstackAnnotations() {
+ String source = "http://openecomp.org/sirius/openstack";
+ addAnnotation
+ (getCreateNetworkRequest_ProviderNetworkType(),
+ source,
+ new String[] {
+ "name", "provider:network_type"
+ });
+ addAnnotation
+ (getCreateNetworkRequest_ProviderPhysicalNetwork(),
+ source,
+ new String[] {
+ "name", "provider:physical_network"
+ });
+ addAnnotation
+ (getCreateNetworkRequest_ProviderSegmentationId(),
+ source,
+ new String[] {
+ "name", "provider:segmentation_id"
+ });
+ addAnnotation
+ (getCreatePortRequest_BindingVnicType(),
+ source,
+ new String[] {
+ "name", "binding:vnic_type"
+ });
+ addAnnotation
+ (getCreatePortRequest_Fixed_ips(),
+ source,
+ new String[] {
+ "removeEmptyList", "true"
+ });
+ }
+
+} //NeutronPackageImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java
new file mode 100644
index 0000000..d2c350d
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java
@@ -0,0 +1,62 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl;
+
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import org.openecomp.ncomp.openstack.neutron.NeutronRequest;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Request</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public abstract class NeutronRequestImpl extends OpenStackRequestImpl implements NeutronRequest {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NeutronRequestImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.NEUTRON_REQUEST;
+ }
+
+} //NeutronRequestImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java
new file mode 100644
index 0000000..70d84c1
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java
@@ -0,0 +1,404 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup;
+import org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Security Group</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getSecurity_group_rules <em>Security group rules</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getTenant_id <em>Tenant id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class NeutronSecurityGroupImpl extends NeutronObjectImpl implements NeutronSecurityGroup {
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected static final String DESCRIPTION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDescription()
+ * @generated
+ * @ordered
+ */
+ protected String description = DESCRIPTION_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getSecurity_group_rules() <em>Security group rules</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurity_group_rules()
+ * @generated
+ * @ordered
+ */
+ protected EList<NeutronSecurityRule> security_group_rules;
+
+ /**
+ * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String TENANT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected String tenant_id = TENANT_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NeutronSecurityGroupImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.NEUTRON_SECURITY_GROUP;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_GROUP__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_GROUP__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDescription(String newDescription) {
+ String oldDescription = description;
+ description = newDescription;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION, oldDescription, description));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<NeutronSecurityRule> getSecurity_group_rules() {
+ if (security_group_rules == null) {
+ security_group_rules = new EObjectContainmentEList<NeutronSecurityRule>(NeutronSecurityRule.class, this, NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES);
+ }
+ return security_group_rules;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTenant_id() {
+ return tenant_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTenant_id(String newTenant_id) {
+ String oldTenant_id = tenant_id;
+ tenant_id = newTenant_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID, oldTenant_id, tenant_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES:
+ return ((InternalEList<?>)getSecurity_group_rules()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__ID:
+ return getId();
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__NAME:
+ return getName();
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION:
+ return getDescription();
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES:
+ return getSecurity_group_rules();
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID:
+ return getTenant_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__ID:
+ setId((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION:
+ setDescription((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES:
+ getSecurity_group_rules().clear();
+ getSecurity_group_rules().addAll((Collection<? extends NeutronSecurityRule>)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID:
+ setTenant_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION:
+ setDescription(DESCRIPTION_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES:
+ getSecurity_group_rules().clear();
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID:
+ setTenant_id(TENANT_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION:
+ return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES:
+ return security_group_rules != null && !security_group_rules.isEmpty();
+ case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID:
+ return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: ");
+ result.append(id);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", description: ");
+ result.append(description);
+ result.append(", tenant_id: ");
+ result.append(tenant_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //NeutronSecurityGroupImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityRuleImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityRuleImpl.java
new file mode 100644
index 0000000..3a5d53e
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityRuleImpl.java
@@ -0,0 +1,669 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Security Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getDirection <em>Direction</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getEthertype <em>Ethertype</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getPort_range_min <em>Port range min</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getPort_range_max <em>Port range max</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getProtocol <em>Protocol</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getRemote_group_id <em>Remote group id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getRemote_ip_prefix <em>Remote ip prefix</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getSecurity_group_id <em>Security group id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getTenant_id <em>Tenant id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class NeutronSecurityRuleImpl extends NeutronObjectImpl implements NeutronSecurityRule {
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDirection() <em>Direction</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDirection()
+ * @generated
+ * @ordered
+ */
+ protected static final String DIRECTION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDirection() <em>Direction</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDirection()
+ * @generated
+ * @ordered
+ */
+ protected String direction = DIRECTION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEthertype() <em>Ethertype</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEthertype()
+ * @generated
+ * @ordered
+ */
+ protected static final String ETHERTYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEthertype() <em>Ethertype</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEthertype()
+ * @generated
+ * @ordered
+ */
+ protected String ethertype = ETHERTYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPort_range_min() <em>Port range min</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort_range_min()
+ * @generated
+ * @ordered
+ */
+ protected static final Integer PORT_RANGE_MIN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPort_range_min() <em>Port range min</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort_range_min()
+ * @generated
+ * @ordered
+ */
+ protected Integer port_range_min = PORT_RANGE_MIN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPort_range_max() <em>Port range max</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort_range_max()
+ * @generated
+ * @ordered
+ */
+ protected static final Integer PORT_RANGE_MAX_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPort_range_max() <em>Port range max</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort_range_max()
+ * @generated
+ * @ordered
+ */
+ protected Integer port_range_max = PORT_RANGE_MAX_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getProtocol() <em>Protocol</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProtocol()
+ * @generated
+ * @ordered
+ */
+ protected static final String PROTOCOL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getProtocol() <em>Protocol</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProtocol()
+ * @generated
+ * @ordered
+ */
+ protected String protocol = PROTOCOL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRemote_group_id() <em>Remote group id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRemote_group_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String REMOTE_GROUP_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRemote_group_id() <em>Remote group id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRemote_group_id()
+ * @generated
+ * @ordered
+ */
+ protected String remote_group_id = REMOTE_GROUP_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRemote_ip_prefix() <em>Remote ip prefix</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRemote_ip_prefix()
+ * @generated
+ * @ordered
+ */
+ protected static final String REMOTE_IP_PREFIX_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRemote_ip_prefix() <em>Remote ip prefix</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRemote_ip_prefix()
+ * @generated
+ * @ordered
+ */
+ protected String remote_ip_prefix = REMOTE_IP_PREFIX_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSecurity_group_id() <em>Security group id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurity_group_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String SECURITY_GROUP_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSecurity_group_id() <em>Security group id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurity_group_id()
+ * @generated
+ * @ordered
+ */
+ protected String security_group_id = SECURITY_GROUP_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String TENANT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected String tenant_id = TENANT_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NeutronSecurityRuleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.NEUTRON_SECURITY_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDirection() {
+ return direction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDirection(String newDirection) {
+ String oldDirection = direction;
+ direction = newDirection;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION, oldDirection, direction));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEthertype() {
+ return ethertype;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEthertype(String newEthertype) {
+ String oldEthertype = ethertype;
+ ethertype = newEthertype;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE, oldEthertype, ethertype));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Integer getPort_range_min() {
+ return port_range_min;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPort_range_min(Integer newPort_range_min) {
+ Integer oldPort_range_min = port_range_min;
+ port_range_min = newPort_range_min;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN, oldPort_range_min, port_range_min));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Integer getPort_range_max() {
+ return port_range_max;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPort_range_max(Integer newPort_range_max) {
+ Integer oldPort_range_max = port_range_max;
+ port_range_max = newPort_range_max;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX, oldPort_range_max, port_range_max));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getProtocol() {
+ return protocol;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProtocol(String newProtocol) {
+ String oldProtocol = protocol;
+ protocol = newProtocol;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL, oldProtocol, protocol));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRemote_group_id() {
+ return remote_group_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRemote_group_id(String newRemote_group_id) {
+ String oldRemote_group_id = remote_group_id;
+ remote_group_id = newRemote_group_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID, oldRemote_group_id, remote_group_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRemote_ip_prefix() {
+ return remote_ip_prefix;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRemote_ip_prefix(String newRemote_ip_prefix) {
+ String oldRemote_ip_prefix = remote_ip_prefix;
+ remote_ip_prefix = newRemote_ip_prefix;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX, oldRemote_ip_prefix, remote_ip_prefix));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSecurity_group_id() {
+ return security_group_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSecurity_group_id(String newSecurity_group_id) {
+ String oldSecurity_group_id = security_group_id;
+ security_group_id = newSecurity_group_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID, oldSecurity_group_id, security_group_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTenant_id() {
+ return tenant_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTenant_id(String newTenant_id) {
+ String oldTenant_id = tenant_id;
+ tenant_id = newTenant_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID, oldTenant_id, tenant_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_RULE__ID:
+ return getId();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION:
+ return getDirection();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE:
+ return getEthertype();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN:
+ return getPort_range_min();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX:
+ return getPort_range_max();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL:
+ return getProtocol();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID:
+ return getRemote_group_id();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX:
+ return getRemote_ip_prefix();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID:
+ return getSecurity_group_id();
+ case NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID:
+ return getTenant_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_RULE__ID:
+ setId((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION:
+ setDirection((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE:
+ setEthertype((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN:
+ setPort_range_min((Integer)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX:
+ setPort_range_max((Integer)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL:
+ setProtocol((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID:
+ setRemote_group_id((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX:
+ setRemote_ip_prefix((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID:
+ setSecurity_group_id((String)newValue);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID:
+ setTenant_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_RULE__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION:
+ setDirection(DIRECTION_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE:
+ setEthertype(ETHERTYPE_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN:
+ setPort_range_min(PORT_RANGE_MIN_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX:
+ setPort_range_max(PORT_RANGE_MAX_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL:
+ setProtocol(PROTOCOL_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID:
+ setRemote_group_id(REMOTE_GROUP_ID_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX:
+ setRemote_ip_prefix(REMOTE_IP_PREFIX_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID:
+ setSecurity_group_id(SECURITY_GROUP_ID_EDEFAULT);
+ return;
+ case NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID:
+ setTenant_id(TENANT_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.NEUTRON_SECURITY_RULE__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION:
+ return DIRECTION_EDEFAULT == null ? direction != null : !DIRECTION_EDEFAULT.equals(direction);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE:
+ return ETHERTYPE_EDEFAULT == null ? ethertype != null : !ETHERTYPE_EDEFAULT.equals(ethertype);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN:
+ return PORT_RANGE_MIN_EDEFAULT == null ? port_range_min != null : !PORT_RANGE_MIN_EDEFAULT.equals(port_range_min);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX:
+ return PORT_RANGE_MAX_EDEFAULT == null ? port_range_max != null : !PORT_RANGE_MAX_EDEFAULT.equals(port_range_max);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL:
+ return PROTOCOL_EDEFAULT == null ? protocol != null : !PROTOCOL_EDEFAULT.equals(protocol);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID:
+ return REMOTE_GROUP_ID_EDEFAULT == null ? remote_group_id != null : !REMOTE_GROUP_ID_EDEFAULT.equals(remote_group_id);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX:
+ return REMOTE_IP_PREFIX_EDEFAULT == null ? remote_ip_prefix != null : !REMOTE_IP_PREFIX_EDEFAULT.equals(remote_ip_prefix);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID:
+ return SECURITY_GROUP_ID_EDEFAULT == null ? security_group_id != null : !SECURITY_GROUP_ID_EDEFAULT.equals(security_group_id);
+ case NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID:
+ return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: ");
+ result.append(id);
+ result.append(", direction: ");
+ result.append(direction);
+ result.append(", ethertype: ");
+ result.append(ethertype);
+ result.append(", port_range_min: ");
+ result.append(port_range_min);
+ result.append(", port_range_max: ");
+ result.append(port_range_max);
+ result.append(", protocol: ");
+ result.append(protocol);
+ result.append(", remote_group_id: ");
+ result.append(remote_group_id);
+ result.append(", remote_ip_prefix: ");
+ result.append(remote_ip_prefix);
+ result.append(", security_group_id: ");
+ result.append(security_group_id);
+ result.append(", tenant_id: ");
+ result.append(tenant_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //NeutronSecurityRuleImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronServiceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronServiceImpl.java
new file mode 100644
index 0000000..9dc051f
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronServiceImpl.java
@@ -0,0 +1,204 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest;
+import org.openecomp.ncomp.openstack.neutron.CreatePortRequest;
+import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest;
+import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest;
+import org.openecomp.ncomp.openstack.neutron.Network;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import org.openecomp.ncomp.openstack.neutron.NeutronService;
+import org.openecomp.ncomp.openstack.neutron.Port;
+import org.openecomp.ncomp.openstack.neutron.Router;
+import org.openecomp.ncomp.openstack.neutron.Subnet;
+import java.lang.reflect.InvocationTargetException;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Service</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public abstract class NeutronServiceImpl extends MinimalEObjectImpl.Container implements NeutronService {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NeutronServiceImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.NEUTRON_SERVICE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Network createNetwork(CreateNetworkRequest request) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Subnet createSubnet(CreateSubnetRequest request) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Port createPort(CreatePortRequest request) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Router createRouter(CreateRouterRequest request) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void deleteNetwork(String projectName, String name) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void deleteSubnet(String projectName, String name) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void deletePort(String projectName, String name) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void deleteRouter(String projectName, String name) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void associateFloatingIp(String projectName, String ipId, String portId) {
+ // TODO: implement this method
+ // Ensure that you remove @generated or mark it @generated NOT
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
+ switch (operationID) {
+ case NeutronPackage.NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST:
+ return createNetwork((CreateNetworkRequest)arguments.get(0));
+ case NeutronPackage.NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST:
+ return createSubnet((CreateSubnetRequest)arguments.get(0));
+ case NeutronPackage.NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST:
+ return createPort((CreatePortRequest)arguments.get(0));
+ case NeutronPackage.NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST:
+ return createRouter((CreateRouterRequest)arguments.get(0));
+ case NeutronPackage.NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING:
+ deleteNetwork((String)arguments.get(0), (String)arguments.get(1));
+ return null;
+ case NeutronPackage.NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING:
+ deleteSubnet((String)arguments.get(0), (String)arguments.get(1));
+ return null;
+ case NeutronPackage.NEUTRON_SERVICE___DELETE_PORT__STRING_STRING:
+ deletePort((String)arguments.get(0), (String)arguments.get(1));
+ return null;
+ case NeutronPackage.NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING:
+ deleteRouter((String)arguments.get(0), (String)arguments.get(1));
+ return null;
+ case NeutronPackage.NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING:
+ associateFloatingIp((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2));
+ return null;
+ }
+ return super.eInvoke(operationID, arguments);
+ }
+
+} //NeutronServiceImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java
new file mode 100644
index 0000000..2af9613
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java
@@ -0,0 +1,1146 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.BindingProfile;
+import org.openecomp.ncomp.openstack.neutron.BindingVifDetail;
+import org.openecomp.ncomp.openstack.neutron.ExternalGateway;
+import org.openecomp.ncomp.openstack.neutron.FixedIp;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import org.openecomp.ncomp.openstack.neutron.Port;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Port</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getStatus <em>Status</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getAdmin_state_up <em>Admin state up</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getExternal_gateway_info <em>External gateway info</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getTenant_id <em>Tenant id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getAllowed_address_pairs <em>Allowed address pairs</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_host_id <em>Binding host id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_profile <em>Binding profile</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vif_details <em>Binding vif details</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vif_type <em>Binding vif type</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vnic_type <em>Binding vnic type</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getDevice_id <em>Device id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getDevice_owner <em>Device owner</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getExtra_dhcp_opts <em>Extra dhcp opts</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getFixed_ips <em>Fixed ips</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getMac_address <em>Mac address</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getNetwork_id <em>Network id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getSecurity_groups <em>Security groups</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PortImpl extends NeutronObjectImpl implements Port {
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected static final String STATUS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected String status = STATUS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getExternal_gateway_info() <em>External gateway info</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExternal_gateway_info()
+ * @generated
+ * @ordered
+ */
+ protected ExternalGateway external_gateway_info;
+
+ /**
+ * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String TENANT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected String tenant_id = TENANT_ID_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getAllowed_address_pairs() <em>Allowed address pairs</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAllowed_address_pairs()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> allowed_address_pairs;
+
+ /**
+ * The default value of the '{@link #getBinding_host_id() <em>Binding host id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBinding_host_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String BINDING_HOST_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBinding_host_id() <em>Binding host id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBinding_host_id()
+ * @generated
+ * @ordered
+ */
+ protected String binding_host_id = BINDING_HOST_ID_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getBinding_profile() <em>Binding profile</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBinding_profile()
+ * @generated
+ * @ordered
+ */
+ protected BindingProfile binding_profile;
+
+ /**
+ * The cached value of the '{@link #getBinding_vif_details() <em>Binding vif details</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBinding_vif_details()
+ * @generated
+ * @ordered
+ */
+ protected BindingVifDetail binding_vif_details;
+
+ /**
+ * The default value of the '{@link #getBinding_vif_type() <em>Binding vif type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBinding_vif_type()
+ * @generated
+ * @ordered
+ */
+ protected static final String BINDING_VIF_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBinding_vif_type() <em>Binding vif type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBinding_vif_type()
+ * @generated
+ * @ordered
+ */
+ protected String binding_vif_type = BINDING_VIF_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getBinding_vnic_type() <em>Binding vnic type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBinding_vnic_type()
+ * @generated
+ * @ordered
+ */
+ protected static final String BINDING_VNIC_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBinding_vnic_type() <em>Binding vnic type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBinding_vnic_type()
+ * @generated
+ * @ordered
+ */
+ protected String binding_vnic_type = BINDING_VNIC_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDevice_id() <em>Device id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDevice_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String DEVICE_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDevice_id() <em>Device id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDevice_id()
+ * @generated
+ * @ordered
+ */
+ protected String device_id = DEVICE_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDevice_owner() <em>Device owner</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDevice_owner()
+ * @generated
+ * @ordered
+ */
+ protected static final String DEVICE_OWNER_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDevice_owner() <em>Device owner</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDevice_owner()
+ * @generated
+ * @ordered
+ */
+ protected String device_owner = DEVICE_OWNER_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getExtra_dhcp_opts() <em>Extra dhcp opts</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExtra_dhcp_opts()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> extra_dhcp_opts;
+
+ /**
+ * The cached value of the '{@link #getFixed_ips() <em>Fixed ips</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFixed_ips()
+ * @generated
+ * @ordered
+ */
+ protected EList<FixedIp> fixed_ips;
+
+ /**
+ * The default value of the '{@link #getMac_address() <em>Mac address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMac_address()
+ * @generated
+ * @ordered
+ */
+ protected static final String MAC_ADDRESS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMac_address() <em>Mac address</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMac_address()
+ * @generated
+ * @ordered
+ */
+ protected String mac_address = MAC_ADDRESS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String NETWORK_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected String network_id = NETWORK_ID_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getSecurity_groups() <em>Security groups</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurity_groups()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> security_groups;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected PortImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.PORT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatus(String newStatus) {
+ String oldStatus = status;
+ status = newStatus;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__STATUS, oldStatus, status));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getAdmin_state_up() {
+ return admin_state_up;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAdmin_state_up(Boolean newAdmin_state_up) {
+ Boolean oldAdmin_state_up = admin_state_up;
+ admin_state_up = newAdmin_state_up;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExternalGateway getExternal_gateway_info() {
+ return external_gateway_info;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetExternal_gateway_info(ExternalGateway newExternal_gateway_info, NotificationChain msgs) {
+ ExternalGateway oldExternal_gateway_info = external_gateway_info;
+ external_gateway_info = newExternal_gateway_info;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO, oldExternal_gateway_info, newExternal_gateway_info);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExternal_gateway_info(ExternalGateway newExternal_gateway_info) {
+ if (newExternal_gateway_info != external_gateway_info) {
+ NotificationChain msgs = null;
+ if (external_gateway_info != null)
+ msgs = ((InternalEObject)external_gateway_info).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO, null, msgs);
+ if (newExternal_gateway_info != null)
+ msgs = ((InternalEObject)newExternal_gateway_info).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO, null, msgs);
+ msgs = basicSetExternal_gateway_info(newExternal_gateway_info, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO, newExternal_gateway_info, newExternal_gateway_info));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTenant_id() {
+ return tenant_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTenant_id(String newTenant_id) {
+ String oldTenant_id = tenant_id;
+ tenant_id = newTenant_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__TENANT_ID, oldTenant_id, tenant_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getAllowed_address_pairs() {
+ if (allowed_address_pairs == null) {
+ allowed_address_pairs = new EDataTypeEList<String>(String.class, this, NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS);
+ }
+ return allowed_address_pairs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBinding_host_id() {
+ return binding_host_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBinding_host_id(String newBinding_host_id) {
+ String oldBinding_host_id = binding_host_id;
+ binding_host_id = newBinding_host_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_HOST_ID, oldBinding_host_id, binding_host_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BindingProfile getBinding_profile() {
+ return binding_profile;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetBinding_profile(BindingProfile newBinding_profile, NotificationChain msgs) {
+ BindingProfile oldBinding_profile = binding_profile;
+ binding_profile = newBinding_profile;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_PROFILE, oldBinding_profile, newBinding_profile);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBinding_profile(BindingProfile newBinding_profile) {
+ if (newBinding_profile != binding_profile) {
+ NotificationChain msgs = null;
+ if (binding_profile != null)
+ msgs = ((InternalEObject)binding_profile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__BINDING_PROFILE, null, msgs);
+ if (newBinding_profile != null)
+ msgs = ((InternalEObject)newBinding_profile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__BINDING_PROFILE, null, msgs);
+ msgs = basicSetBinding_profile(newBinding_profile, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_PROFILE, newBinding_profile, newBinding_profile));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BindingVifDetail getBinding_vif_details() {
+ return binding_vif_details;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetBinding_vif_details(BindingVifDetail newBinding_vif_details, NotificationChain msgs) {
+ BindingVifDetail oldBinding_vif_details = binding_vif_details;
+ binding_vif_details = newBinding_vif_details;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_VIF_DETAILS, oldBinding_vif_details, newBinding_vif_details);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBinding_vif_details(BindingVifDetail newBinding_vif_details) {
+ if (newBinding_vif_details != binding_vif_details) {
+ NotificationChain msgs = null;
+ if (binding_vif_details != null)
+ msgs = ((InternalEObject)binding_vif_details).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__BINDING_VIF_DETAILS, null, msgs);
+ if (newBinding_vif_details != null)
+ msgs = ((InternalEObject)newBinding_vif_details).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__BINDING_VIF_DETAILS, null, msgs);
+ msgs = basicSetBinding_vif_details(newBinding_vif_details, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_VIF_DETAILS, newBinding_vif_details, newBinding_vif_details));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBinding_vif_type() {
+ return binding_vif_type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBinding_vif_type(String newBinding_vif_type) {
+ String oldBinding_vif_type = binding_vif_type;
+ binding_vif_type = newBinding_vif_type;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_VIF_TYPE, oldBinding_vif_type, binding_vif_type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBinding_vnic_type() {
+ return binding_vnic_type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBinding_vnic_type(String newBinding_vnic_type) {
+ String oldBinding_vnic_type = binding_vnic_type;
+ binding_vnic_type = newBinding_vnic_type;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_VNIC_TYPE, oldBinding_vnic_type, binding_vnic_type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDevice_id() {
+ return device_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDevice_id(String newDevice_id) {
+ String oldDevice_id = device_id;
+ device_id = newDevice_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__DEVICE_ID, oldDevice_id, device_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDevice_owner() {
+ return device_owner;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDevice_owner(String newDevice_owner) {
+ String oldDevice_owner = device_owner;
+ device_owner = newDevice_owner;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__DEVICE_OWNER, oldDevice_owner, device_owner));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getExtra_dhcp_opts() {
+ if (extra_dhcp_opts == null) {
+ extra_dhcp_opts = new EDataTypeEList<String>(String.class, this, NeutronPackage.PORT__EXTRA_DHCP_OPTS);
+ }
+ return extra_dhcp_opts;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<FixedIp> getFixed_ips() {
+ if (fixed_ips == null) {
+ fixed_ips = new EObjectContainmentEList<FixedIp>(FixedIp.class, this, NeutronPackage.PORT__FIXED_IPS);
+ }
+ return fixed_ips;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getMac_address() {
+ return mac_address;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMac_address(String newMac_address) {
+ String oldMac_address = mac_address;
+ mac_address = newMac_address;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__MAC_ADDRESS, oldMac_address, mac_address));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getNetwork_id() {
+ return network_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setNetwork_id(String newNetwork_id) {
+ String oldNetwork_id = network_id;
+ network_id = newNetwork_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__NETWORK_ID, oldNetwork_id, network_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getSecurity_groups() {
+ if (security_groups == null) {
+ security_groups = new EDataTypeEList<String>(String.class, this, NeutronPackage.PORT__SECURITY_GROUPS);
+ }
+ return security_groups;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO:
+ return basicSetExternal_gateway_info(null, msgs);
+ case NeutronPackage.PORT__BINDING_PROFILE:
+ return basicSetBinding_profile(null, msgs);
+ case NeutronPackage.PORT__BINDING_VIF_DETAILS:
+ return basicSetBinding_vif_details(null, msgs);
+ case NeutronPackage.PORT__FIXED_IPS:
+ return ((InternalEList<?>)getFixed_ips()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.PORT__ID:
+ return getId();
+ case NeutronPackage.PORT__NAME:
+ return getName();
+ case NeutronPackage.PORT__STATUS:
+ return getStatus();
+ case NeutronPackage.PORT__ADMIN_STATE_UP:
+ return getAdmin_state_up();
+ case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO:
+ return getExternal_gateway_info();
+ case NeutronPackage.PORT__TENANT_ID:
+ return getTenant_id();
+ case NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS:
+ return getAllowed_address_pairs();
+ case NeutronPackage.PORT__BINDING_HOST_ID:
+ return getBinding_host_id();
+ case NeutronPackage.PORT__BINDING_PROFILE:
+ return getBinding_profile();
+ case NeutronPackage.PORT__BINDING_VIF_DETAILS:
+ return getBinding_vif_details();
+ case NeutronPackage.PORT__BINDING_VIF_TYPE:
+ return getBinding_vif_type();
+ case NeutronPackage.PORT__BINDING_VNIC_TYPE:
+ return getBinding_vnic_type();
+ case NeutronPackage.PORT__DEVICE_ID:
+ return getDevice_id();
+ case NeutronPackage.PORT__DEVICE_OWNER:
+ return getDevice_owner();
+ case NeutronPackage.PORT__EXTRA_DHCP_OPTS:
+ return getExtra_dhcp_opts();
+ case NeutronPackage.PORT__FIXED_IPS:
+ return getFixed_ips();
+ case NeutronPackage.PORT__MAC_ADDRESS:
+ return getMac_address();
+ case NeutronPackage.PORT__NETWORK_ID:
+ return getNetwork_id();
+ case NeutronPackage.PORT__SECURITY_GROUPS:
+ return getSecurity_groups();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.PORT__ID:
+ setId((String)newValue);
+ return;
+ case NeutronPackage.PORT__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.PORT__STATUS:
+ setStatus((String)newValue);
+ return;
+ case NeutronPackage.PORT__ADMIN_STATE_UP:
+ setAdmin_state_up((Boolean)newValue);
+ return;
+ case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO:
+ setExternal_gateway_info((ExternalGateway)newValue);
+ return;
+ case NeutronPackage.PORT__TENANT_ID:
+ setTenant_id((String)newValue);
+ return;
+ case NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS:
+ getAllowed_address_pairs().clear();
+ getAllowed_address_pairs().addAll((Collection<? extends String>)newValue);
+ return;
+ case NeutronPackage.PORT__BINDING_HOST_ID:
+ setBinding_host_id((String)newValue);
+ return;
+ case NeutronPackage.PORT__BINDING_PROFILE:
+ setBinding_profile((BindingProfile)newValue);
+ return;
+ case NeutronPackage.PORT__BINDING_VIF_DETAILS:
+ setBinding_vif_details((BindingVifDetail)newValue);
+ return;
+ case NeutronPackage.PORT__BINDING_VIF_TYPE:
+ setBinding_vif_type((String)newValue);
+ return;
+ case NeutronPackage.PORT__BINDING_VNIC_TYPE:
+ setBinding_vnic_type((String)newValue);
+ return;
+ case NeutronPackage.PORT__DEVICE_ID:
+ setDevice_id((String)newValue);
+ return;
+ case NeutronPackage.PORT__DEVICE_OWNER:
+ setDevice_owner((String)newValue);
+ return;
+ case NeutronPackage.PORT__EXTRA_DHCP_OPTS:
+ getExtra_dhcp_opts().clear();
+ getExtra_dhcp_opts().addAll((Collection<? extends String>)newValue);
+ return;
+ case NeutronPackage.PORT__FIXED_IPS:
+ getFixed_ips().clear();
+ getFixed_ips().addAll((Collection<? extends FixedIp>)newValue);
+ return;
+ case NeutronPackage.PORT__MAC_ADDRESS:
+ setMac_address((String)newValue);
+ return;
+ case NeutronPackage.PORT__NETWORK_ID:
+ setNetwork_id((String)newValue);
+ return;
+ case NeutronPackage.PORT__SECURITY_GROUPS:
+ getSecurity_groups().clear();
+ getSecurity_groups().addAll((Collection<? extends String>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.PORT__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__STATUS:
+ setStatus(STATUS_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__ADMIN_STATE_UP:
+ setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO:
+ setExternal_gateway_info((ExternalGateway)null);
+ return;
+ case NeutronPackage.PORT__TENANT_ID:
+ setTenant_id(TENANT_ID_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS:
+ getAllowed_address_pairs().clear();
+ return;
+ case NeutronPackage.PORT__BINDING_HOST_ID:
+ setBinding_host_id(BINDING_HOST_ID_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__BINDING_PROFILE:
+ setBinding_profile((BindingProfile)null);
+ return;
+ case NeutronPackage.PORT__BINDING_VIF_DETAILS:
+ setBinding_vif_details((BindingVifDetail)null);
+ return;
+ case NeutronPackage.PORT__BINDING_VIF_TYPE:
+ setBinding_vif_type(BINDING_VIF_TYPE_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__BINDING_VNIC_TYPE:
+ setBinding_vnic_type(BINDING_VNIC_TYPE_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__DEVICE_ID:
+ setDevice_id(DEVICE_ID_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__DEVICE_OWNER:
+ setDevice_owner(DEVICE_OWNER_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__EXTRA_DHCP_OPTS:
+ getExtra_dhcp_opts().clear();
+ return;
+ case NeutronPackage.PORT__FIXED_IPS:
+ getFixed_ips().clear();
+ return;
+ case NeutronPackage.PORT__MAC_ADDRESS:
+ setMac_address(MAC_ADDRESS_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__NETWORK_ID:
+ setNetwork_id(NETWORK_ID_EDEFAULT);
+ return;
+ case NeutronPackage.PORT__SECURITY_GROUPS:
+ getSecurity_groups().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.PORT__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case NeutronPackage.PORT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.PORT__STATUS:
+ return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status);
+ case NeutronPackage.PORT__ADMIN_STATE_UP:
+ return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up);
+ case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO:
+ return external_gateway_info != null;
+ case NeutronPackage.PORT__TENANT_ID:
+ return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id);
+ case NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS:
+ return allowed_address_pairs != null && !allowed_address_pairs.isEmpty();
+ case NeutronPackage.PORT__BINDING_HOST_ID:
+ return BINDING_HOST_ID_EDEFAULT == null ? binding_host_id != null : !BINDING_HOST_ID_EDEFAULT.equals(binding_host_id);
+ case NeutronPackage.PORT__BINDING_PROFILE:
+ return binding_profile != null;
+ case NeutronPackage.PORT__BINDING_VIF_DETAILS:
+ return binding_vif_details != null;
+ case NeutronPackage.PORT__BINDING_VIF_TYPE:
+ return BINDING_VIF_TYPE_EDEFAULT == null ? binding_vif_type != null : !BINDING_VIF_TYPE_EDEFAULT.equals(binding_vif_type);
+ case NeutronPackage.PORT__BINDING_VNIC_TYPE:
+ return BINDING_VNIC_TYPE_EDEFAULT == null ? binding_vnic_type != null : !BINDING_VNIC_TYPE_EDEFAULT.equals(binding_vnic_type);
+ case NeutronPackage.PORT__DEVICE_ID:
+ return DEVICE_ID_EDEFAULT == null ? device_id != null : !DEVICE_ID_EDEFAULT.equals(device_id);
+ case NeutronPackage.PORT__DEVICE_OWNER:
+ return DEVICE_OWNER_EDEFAULT == null ? device_owner != null : !DEVICE_OWNER_EDEFAULT.equals(device_owner);
+ case NeutronPackage.PORT__EXTRA_DHCP_OPTS:
+ return extra_dhcp_opts != null && !extra_dhcp_opts.isEmpty();
+ case NeutronPackage.PORT__FIXED_IPS:
+ return fixed_ips != null && !fixed_ips.isEmpty();
+ case NeutronPackage.PORT__MAC_ADDRESS:
+ return MAC_ADDRESS_EDEFAULT == null ? mac_address != null : !MAC_ADDRESS_EDEFAULT.equals(mac_address);
+ case NeutronPackage.PORT__NETWORK_ID:
+ return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id);
+ case NeutronPackage.PORT__SECURITY_GROUPS:
+ return security_groups != null && !security_groups.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: ");
+ result.append(id);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", status: ");
+ result.append(status);
+ result.append(", admin_state_up: ");
+ result.append(admin_state_up);
+ result.append(", tenant_id: ");
+ result.append(tenant_id);
+ result.append(", allowed_address_pairs: ");
+ result.append(allowed_address_pairs);
+ result.append(", binding_host_id: ");
+ result.append(binding_host_id);
+ result.append(", binding_vif_type: ");
+ result.append(binding_vif_type);
+ result.append(", binding_vnic_type: ");
+ result.append(binding_vnic_type);
+ result.append(", device_id: ");
+ result.append(device_id);
+ result.append(", device_owner: ");
+ result.append(device_owner);
+ result.append(", extra_dhcp_opts: ");
+ result.append(extra_dhcp_opts);
+ result.append(", mac_address: ");
+ result.append(mac_address);
+ result.append(", network_id: ");
+ result.append(network_id);
+ result.append(", security_groups: ");
+ result.append(security_groups);
+ result.append(')');
+ return result.toString();
+ }
+
+} //PortImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/RouterImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/RouterImpl.java
new file mode 100644
index 0000000..077962f
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/RouterImpl.java
@@ -0,0 +1,480 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.ExternalGateway;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import org.openecomp.ncomp.openstack.neutron.Router;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Router</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getStatus <em>Status</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getAdmin_state_up <em>Admin state up</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getExternal_gateway_info <em>External gateway info</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getTenant_id <em>Tenant id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RouterImpl extends NeutronObjectImpl implements Router {
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected static final String STATUS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected String status = STATUS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getExternal_gateway_info() <em>External gateway info</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExternal_gateway_info()
+ * @generated
+ * @ordered
+ */
+ protected ExternalGateway external_gateway_info;
+
+ /**
+ * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String TENANT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected String tenant_id = TENANT_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RouterImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.ROUTER;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatus(String newStatus) {
+ String oldStatus = status;
+ status = newStatus;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__STATUS, oldStatus, status));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getAdmin_state_up() {
+ return admin_state_up;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAdmin_state_up(Boolean newAdmin_state_up) {
+ Boolean oldAdmin_state_up = admin_state_up;
+ admin_state_up = newAdmin_state_up;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ExternalGateway getExternal_gateway_info() {
+ return external_gateway_info;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetExternal_gateway_info(ExternalGateway newExternal_gateway_info, NotificationChain msgs) {
+ ExternalGateway oldExternal_gateway_info = external_gateway_info;
+ external_gateway_info = newExternal_gateway_info;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO, oldExternal_gateway_info, newExternal_gateway_info);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExternal_gateway_info(ExternalGateway newExternal_gateway_info) {
+ if (newExternal_gateway_info != external_gateway_info) {
+ NotificationChain msgs = null;
+ if (external_gateway_info != null)
+ msgs = ((InternalEObject)external_gateway_info).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO, null, msgs);
+ if (newExternal_gateway_info != null)
+ msgs = ((InternalEObject)newExternal_gateway_info).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO, null, msgs);
+ msgs = basicSetExternal_gateway_info(newExternal_gateway_info, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO, newExternal_gateway_info, newExternal_gateway_info));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTenant_id() {
+ return tenant_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTenant_id(String newTenant_id) {
+ String oldTenant_id = tenant_id;
+ tenant_id = newTenant_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__TENANT_ID, oldTenant_id, tenant_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO:
+ return basicSetExternal_gateway_info(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.ROUTER__ID:
+ return getId();
+ case NeutronPackage.ROUTER__NAME:
+ return getName();
+ case NeutronPackage.ROUTER__STATUS:
+ return getStatus();
+ case NeutronPackage.ROUTER__ADMIN_STATE_UP:
+ return getAdmin_state_up();
+ case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO:
+ return getExternal_gateway_info();
+ case NeutronPackage.ROUTER__TENANT_ID:
+ return getTenant_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.ROUTER__ID:
+ setId((String)newValue);
+ return;
+ case NeutronPackage.ROUTER__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.ROUTER__STATUS:
+ setStatus((String)newValue);
+ return;
+ case NeutronPackage.ROUTER__ADMIN_STATE_UP:
+ setAdmin_state_up((Boolean)newValue);
+ return;
+ case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO:
+ setExternal_gateway_info((ExternalGateway)newValue);
+ return;
+ case NeutronPackage.ROUTER__TENANT_ID:
+ setTenant_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.ROUTER__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case NeutronPackage.ROUTER__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.ROUTER__STATUS:
+ setStatus(STATUS_EDEFAULT);
+ return;
+ case NeutronPackage.ROUTER__ADMIN_STATE_UP:
+ setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT);
+ return;
+ case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO:
+ setExternal_gateway_info((ExternalGateway)null);
+ return;
+ case NeutronPackage.ROUTER__TENANT_ID:
+ setTenant_id(TENANT_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.ROUTER__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case NeutronPackage.ROUTER__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.ROUTER__STATUS:
+ return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status);
+ case NeutronPackage.ROUTER__ADMIN_STATE_UP:
+ return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up);
+ case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO:
+ return external_gateway_info != null;
+ case NeutronPackage.ROUTER__TENANT_ID:
+ return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: ");
+ result.append(id);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", status: ");
+ result.append(status);
+ result.append(", admin_state_up: ");
+ result.append(admin_state_up);
+ result.append(", tenant_id: ");
+ result.append(tenant_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //RouterImpl
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/SubnetImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/SubnetImpl.java
new file mode 100644
index 0000000..d7216ba
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/SubnetImpl.java
@@ -0,0 +1,801 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron.impl;
+
+import org.openecomp.ncomp.openstack.neutron.AllocationPool;
+import org.openecomp.ncomp.openstack.neutron.NeutronPackage;
+import org.openecomp.ncomp.openstack.neutron.Subnet;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Subnet</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getStatus <em>Status</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getAdmin_state_up <em>Admin state up</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getCidr <em>Cidr</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getAllocation_pools <em>Allocation pools</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getDns_nameservers <em>Dns nameservers</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getEnable_dhcp <em>Enable dhcp</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getGateway_ip <em>Gateway ip</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getHost_routes <em>Host routes</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getIp_version <em>Ip version</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getNetwork_id <em>Network id</em>}</li>
+ * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getTenant_id <em>Tenant id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SubnetImpl extends NeutronObjectImpl implements Subnet {
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final String ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected String id = ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected static final String STATUS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatus()
+ * @generated
+ * @ordered
+ */
+ protected String status = STATUS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAdmin_state_up()
+ * @generated
+ * @ordered
+ */
+ protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getCidr() <em>Cidr</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCidr()
+ * @generated
+ * @ordered
+ */
+ protected static final String CIDR_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getCidr() <em>Cidr</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCidr()
+ * @generated
+ * @ordered
+ */
+ protected String cidr = CIDR_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getAllocation_pools() <em>Allocation pools</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAllocation_pools()
+ * @generated
+ * @ordered
+ */
+ protected EList<AllocationPool> allocation_pools;
+
+ /**
+ * The cached value of the '{@link #getDns_nameservers() <em>Dns nameservers</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDns_nameservers()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> dns_nameservers;
+
+ /**
+ * The default value of the '{@link #getEnable_dhcp() <em>Enable dhcp</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnable_dhcp()
+ * @generated
+ * @ordered
+ */
+ protected static final Boolean ENABLE_DHCP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getEnable_dhcp() <em>Enable dhcp</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEnable_dhcp()
+ * @generated
+ * @ordered
+ */
+ protected Boolean enable_dhcp = ENABLE_DHCP_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getGateway_ip() <em>Gateway ip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGateway_ip()
+ * @generated
+ * @ordered
+ */
+ protected static final String GATEWAY_IP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getGateway_ip() <em>Gateway ip</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getGateway_ip()
+ * @generated
+ * @ordered
+ */
+ protected String gateway_ip = GATEWAY_IP_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getHost_routes() <em>Host routes</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getHost_routes()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> host_routes;
+
+ /**
+ * The default value of the '{@link #getIp_version() <em>Ip version</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getIp_version()
+ * @generated
+ * @ordered
+ */
+ protected static final Integer IP_VERSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getIp_version() <em>Ip version</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getIp_version()
+ * @generated
+ * @ordered
+ */
+ protected Integer ip_version = IP_VERSION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String NETWORK_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNetwork_id()
+ * @generated
+ * @ordered
+ */
+ protected String network_id = NETWORK_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected static final String TENANT_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTenant_id()
+ * @generated
+ * @ordered
+ */
+ protected String tenant_id = TENANT_ID_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SubnetImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return NeutronPackage.Literals.SUBNET;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(String newId) {
+ String oldId = id;
+ id = newId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__ID, oldId, id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatus(String newStatus) {
+ String oldStatus = status;
+ status = newStatus;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__STATUS, oldStatus, status));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getAdmin_state_up() {
+ return admin_state_up;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAdmin_state_up(Boolean newAdmin_state_up) {
+ Boolean oldAdmin_state_up = admin_state_up;
+ admin_state_up = newAdmin_state_up;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getCidr() {
+ return cidr;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCidr(String newCidr) {
+ String oldCidr = cidr;
+ cidr = newCidr;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__CIDR, oldCidr, cidr));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<AllocationPool> getAllocation_pools() {
+ if (allocation_pools == null) {
+ allocation_pools = new EObjectContainmentEList<AllocationPool>(AllocationPool.class, this, NeutronPackage.SUBNET__ALLOCATION_POOLS);
+ }
+ return allocation_pools;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getDns_nameservers() {
+ if (dns_nameservers == null) {
+ dns_nameservers = new EDataTypeEList<String>(String.class, this, NeutronPackage.SUBNET__DNS_NAMESERVERS);
+ }
+ return dns_nameservers;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Boolean getEnable_dhcp() {
+ return enable_dhcp;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEnable_dhcp(Boolean newEnable_dhcp) {
+ Boolean oldEnable_dhcp = enable_dhcp;
+ enable_dhcp = newEnable_dhcp;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__ENABLE_DHCP, oldEnable_dhcp, enable_dhcp));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getGateway_ip() {
+ return gateway_ip;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setGateway_ip(String newGateway_ip) {
+ String oldGateway_ip = gateway_ip;
+ gateway_ip = newGateway_ip;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__GATEWAY_IP, oldGateway_ip, gateway_ip));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getHost_routes() {
+ if (host_routes == null) {
+ host_routes = new EDataTypeEList<String>(String.class, this, NeutronPackage.SUBNET__HOST_ROUTES);
+ }
+ return host_routes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Integer getIp_version() {
+ return ip_version;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setIp_version(Integer newIp_version) {
+ Integer oldIp_version = ip_version;
+ ip_version = newIp_version;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__IP_VERSION, oldIp_version, ip_version));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getNetwork_id() {
+ return network_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setNetwork_id(String newNetwork_id) {
+ String oldNetwork_id = network_id;
+ network_id = newNetwork_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__NETWORK_ID, oldNetwork_id, network_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTenant_id() {
+ return tenant_id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTenant_id(String newTenant_id) {
+ String oldTenant_id = tenant_id;
+ tenant_id = newTenant_id;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__TENANT_ID, oldTenant_id, tenant_id));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case NeutronPackage.SUBNET__ALLOCATION_POOLS:
+ return ((InternalEList<?>)getAllocation_pools()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case NeutronPackage.SUBNET__ID:
+ return getId();
+ case NeutronPackage.SUBNET__NAME:
+ return getName();
+ case NeutronPackage.SUBNET__STATUS:
+ return getStatus();
+ case NeutronPackage.SUBNET__ADMIN_STATE_UP:
+ return getAdmin_state_up();
+ case NeutronPackage.SUBNET__CIDR:
+ return getCidr();
+ case NeutronPackage.SUBNET__ALLOCATION_POOLS:
+ return getAllocation_pools();
+ case NeutronPackage.SUBNET__DNS_NAMESERVERS:
+ return getDns_nameservers();
+ case NeutronPackage.SUBNET__ENABLE_DHCP:
+ return getEnable_dhcp();
+ case NeutronPackage.SUBNET__GATEWAY_IP:
+ return getGateway_ip();
+ case NeutronPackage.SUBNET__HOST_ROUTES:
+ return getHost_routes();
+ case NeutronPackage.SUBNET__IP_VERSION:
+ return getIp_version();
+ case NeutronPackage.SUBNET__NETWORK_ID:
+ return getNetwork_id();
+ case NeutronPackage.SUBNET__TENANT_ID:
+ return getTenant_id();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case NeutronPackage.SUBNET__ID:
+ setId((String)newValue);
+ return;
+ case NeutronPackage.SUBNET__NAME:
+ setName((String)newValue);
+ return;
+ case NeutronPackage.SUBNET__STATUS:
+ setStatus((String)newValue);
+ return;
+ case NeutronPackage.SUBNET__ADMIN_STATE_UP:
+ setAdmin_state_up((Boolean)newValue);
+ return;
+ case NeutronPackage.SUBNET__CIDR:
+ setCidr((String)newValue);
+ return;
+ case NeutronPackage.SUBNET__ALLOCATION_POOLS:
+ getAllocation_pools().clear();
+ getAllocation_pools().addAll((Collection<? extends AllocationPool>)newValue);
+ return;
+ case NeutronPackage.SUBNET__DNS_NAMESERVERS:
+ getDns_nameservers().clear();
+ getDns_nameservers().addAll((Collection<? extends String>)newValue);
+ return;
+ case NeutronPackage.SUBNET__ENABLE_DHCP:
+ setEnable_dhcp((Boolean)newValue);
+ return;
+ case NeutronPackage.SUBNET__GATEWAY_IP:
+ setGateway_ip((String)newValue);
+ return;
+ case NeutronPackage.SUBNET__HOST_ROUTES:
+ getHost_routes().clear();
+ getHost_routes().addAll((Collection<? extends String>)newValue);
+ return;
+ case NeutronPackage.SUBNET__IP_VERSION:
+ setIp_version((Integer)newValue);
+ return;
+ case NeutronPackage.SUBNET__NETWORK_ID:
+ setNetwork_id((String)newValue);
+ return;
+ case NeutronPackage.SUBNET__TENANT_ID:
+ setTenant_id((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.SUBNET__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__STATUS:
+ setStatus(STATUS_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__ADMIN_STATE_UP:
+ setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__CIDR:
+ setCidr(CIDR_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__ALLOCATION_POOLS:
+ getAllocation_pools().clear();
+ return;
+ case NeutronPackage.SUBNET__DNS_NAMESERVERS:
+ getDns_nameservers().clear();
+ return;
+ case NeutronPackage.SUBNET__ENABLE_DHCP:
+ setEnable_dhcp(ENABLE_DHCP_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__GATEWAY_IP:
+ setGateway_ip(GATEWAY_IP_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__HOST_ROUTES:
+ getHost_routes().clear();
+ return;
+ case NeutronPackage.SUBNET__IP_VERSION:
+ setIp_version(IP_VERSION_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__NETWORK_ID:
+ setNetwork_id(NETWORK_ID_EDEFAULT);
+ return;
+ case NeutronPackage.SUBNET__TENANT_ID:
+ setTenant_id(TENANT_ID_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case NeutronPackage.SUBNET__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case NeutronPackage.SUBNET__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NeutronPackage.SUBNET__STATUS:
+ return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status);
+ case NeutronPackage.SUBNET__ADMIN_STATE_UP:
+ return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up);
+ case NeutronPackage.SUBNET__CIDR:
+ return CIDR_EDEFAULT == null ? cidr != null : !CIDR_EDEFAULT.equals(cidr);
+ case NeutronPackage.SUBNET__ALLOCATION_POOLS:
+ return allocation_pools != null && !allocation_pools.isEmpty();
+ case NeutronPackage.SUBNET__DNS_NAMESERVERS:
+ return dns_nameservers != null && !dns_nameservers.isEmpty();
+ case NeutronPackage.SUBNET__ENABLE_DHCP:
+ return ENABLE_DHCP_EDEFAULT == null ? enable_dhcp != null : !ENABLE_DHCP_EDEFAULT.equals(enable_dhcp);
+ case NeutronPackage.SUBNET__GATEWAY_IP:
+ return GATEWAY_IP_EDEFAULT == null ? gateway_ip != null : !GATEWAY_IP_EDEFAULT.equals(gateway_ip);
+ case NeutronPackage.SUBNET__HOST_ROUTES:
+ return host_routes != null && !host_routes.isEmpty();
+ case NeutronPackage.SUBNET__IP_VERSION:
+ return IP_VERSION_EDEFAULT == null ? ip_version != null : !IP_VERSION_EDEFAULT.equals(ip_version);
+ case NeutronPackage.SUBNET__NETWORK_ID:
+ return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id);
+ case NeutronPackage.SUBNET__TENANT_ID:
+ return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (id: ");
+ result.append(id);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", status: ");
+ result.append(status);
+ result.append(", admin_state_up: ");
+ result.append(admin_state_up);
+ result.append(", cidr: ");
+ result.append(cidr);
+ result.append(", dns_nameservers: ");
+ result.append(dns_nameservers);
+ result.append(", enable_dhcp: ");
+ result.append(enable_dhcp);
+ result.append(", gateway_ip: ");
+ result.append(gateway_ip);
+ result.append(", host_routes: ");
+ result.append(host_routes);
+ result.append(", ip_version: ");
+ result.append(ip_version);
+ result.append(", network_id: ");
+ result.append(network_id);
+ result.append(", tenant_id: ");
+ result.append(tenant_id);
+ result.append(')');
+ return result.toString();
+ }
+
+} //SubnetImpl