Change the order of parameters for lsp_bind method

The function parameters "chassis" and "name" of the lsp_bind method of
OvnSbApiIdlImpl is in reverse order compared to the corresponding abstract
method in the API class.

This change fixes the order.

Change-Id: Ibaee0ad1c78414982dab10f696c9fb4b6c3cbfbf
Closes-Bug: 1827210
This commit is contained in:
Abhiram Sangana 2019-05-02 06:10:31 -07:00
parent 354c87d4b9
commit 776377f0b6
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ class API(api.API):
"""Bind a logical port to a chassis
:param port: The name of the logical port to bind
:type port: chassis
:type port: string
:param chassis: The name of the chassis
:type chassis: string
:param may_exist: Don't fail if port is already bound to a chassis

View File

@ -36,8 +36,8 @@ class OvnSbApiIdlImpl(ovs_idl.Backend, api.API):
def chassis_list(self):
return cmd.ChassisListCommand(self)
def lsp_bind(self, chassis, port, may_exist=False):
return cmd.LspBindCommand(self, chassis, port, may_exist)
def lsp_bind(self, port, chassis, may_exist=False):
return cmd.LspBindCommand(self, port, chassis, may_exist)
def lsp_unbind(self, port, if_exists=False):
return cmd.LspUnbindCommand(self, port, if_exists)