summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2013-05-17 10:08:51 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-05-18 05:55:02 +0900
commit66e2e848cfa1bc6f69a60cfd89e75d9428c8ffa4 (patch)
treec083f72f0af025a414c145c9628d90193a0baf9a
parentb836696d31a6725a1ce13eb970d971cf30d67a9f (diff)
app/quantum_adapter: unbreak quantum change
Now quantum checks attributes strictly on REST request by the changeset of 61bdda62e8950a9747073e2be7b81cdea0af2f25 Don't send non-standard attribute. > commit 61bdda62e8950a9747073e2be7b81cdea0af2f25 > Author: Jason Zhang <zhesen@nttmcl.com> > 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 <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/app/quantum_adapter.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/ryu/app/quantum_adapter.py b/ryu/app/quantum_adapter.py
index 56f09701..b77451fc 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)