self._portprofile_ops_param_list = [{
'param-name': 'portprofile_name',
'required': True}, {
- 'param-name': 'qos_name',
- 'required': True}, {
- 'param-name': 'assignment',
- 'required': False}
+ 'param-name': 'qos_name',
+ 'required': True}, {
+ 'param-name': 'assignment',
+ 'required': False}
]
self._assignprofile_ops_param_list = [{
'param-name': 'network-id',
'required': True}, {
- 'param-name': 'port-id',
- 'required': True}
+ 'param-name': 'port-id',
+ 'required': True}
]
self._serialization_metadata = {
'message': self.wrapped_exc.explanation}}
# 'code' is an attribute on the fault tag itself
content_type = req.best_match_content_type()
- self.wrapped_exc.body = wsgi.Serializer().\
- serialize(fault_data, content_type)
+ self.wrapped_exc.body = wsgi.Serializer().serialize(
+ fault_data, content_type)
self.wrapped_exc.content_type = content_type
return self.wrapped_exc
att_id=port['interface_id'])
try:
- port = session.query(models.Port).\
- filter_by(interface_id=new_interface_id).\
- one()
+ port = session.query(models.Port).filter_by(
+ interface_id=new_interface_id).one()
raise q_exc.AlreadyAttached(port_id=port_id,
att_id=new_interface_id,
att_port_id=port['uuid'])