Create neutronv2 module for ports
Co-Authored-By: Oleg Bondarev <obondarev@mirantis.com>
Change-Id: I605a50e92331cc6e7bb18ffb3b7a79d0aeae0880
diff --git a/_modules/neutronv2/lists.py b/_modules/neutronv2/lists.py
index 1b56392..eea4a7a 100644
--- a/_modules/neutronv2/lists.py
+++ b/_modules/neutronv2/lists.py
@@ -34,3 +34,9 @@
def router_list(**kwargs):
url = '/routers?{}'.format(urlencode(kwargs))
return url, {}
+
+
+@send('get')
+def port_list(**kwargs):
+ url = '/ports?{}'.format(urlencode(kwargs))
+ return url, {}
\ No newline at end of file