Add port_present client state
This state allows to create port with desired parameters in
a given network.
Related prod: PROD-11917
Change-Id: Iff637a7085a9e83a906c68fb1e608645d1536b61
diff --git a/_modules/neutronng.py b/_modules/neutronng.py
index 6a3eaf8..06f273e 100644
--- a/_modules/neutronng.py
+++ b/_modules/neutronng.py
@@ -328,9 +328,7 @@
.. code-block:: bash
salt '*' neutronng.create_port network_id='openstack-network-id'
'''
- response = neutron_interface.create_port({'port': port_params})
- if 'port' in response and 'id' in response['port']:
- return response['port']['id']
+ return neutron_interface.create_port({'port': port_params})
@_autheticate