summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)