Now quantum checks attributes strictly on REST request by
the changeset of 61bdda62e8950a9747073e2be7b81cdea0af2f25
Don't send non-standard attribute.

> commit 61bdda62e8950a9747073e2be7b81cdea0af2f25
> Author: Jason Zhang <[email protected]>
> Date:   Tue Feb 12 18:40:12 2013 -0800
>
>     Raising error if invalid attribute passed in.
>
>     400 will be returned when invalid attributes
>     are passed into Quantum API.
>
>     Fixed the some test cases failed since the
>     enforcement of invalid attribute checking
>
>     Fixes: bug #1076179
>
>     Change-Id: I4e9e2891c444f9dcd051f7b325d3c9403b28db86

Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/app/quantum_adapter.py |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/ryu/app/quantum_adapter.py b/ryu/app/quantum_adapter.py
index 56f0970..b77451f 100644
--- a/ryu/app/quantum_adapter.py
+++ b/ryu/app/quantum_adapter.py
@@ -209,14 +209,7 @@ class OVSSwitch(object):
                 return
 
             port_data = {
-                'datapath_id': dpid_lib.dpid_to_str(self.dpid),
-                'port_no': port.ofport,
-
-                # In order to set
-                # port.status = quantum.common.constants.PORT_STATUS_DOWN
-                # port.status can't be changed via rest api directly,
-                # so resort to ryu-specical parameter to tell it.
-                'deleted': True
+                'status': 'DOWN'
             }
             body = {'port': port_data}
             # self.logger.debug("port-body = %s", body)
-- 
1.7.10.4


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to