@@ -1249,6 +1249,7 @@ def describe_vxnets(self, vxnets=None,
12491249 offset = None ,
12501250 tags = None ,
12511251 vxnet_type = None ,
1252+ mode = None ,
12521253 ** ignore ):
12531254 """ Describe vxnets filtered by condition.
12541255 @param vxnets: the IDs of vxnets you want to describe.
@@ -1257,15 +1258,18 @@ def describe_vxnets(self, vxnets=None,
12571258 @param limit: specify the number of the returning results.
12581259 @param tags : the array of IDs of tags.
12591260 @param vxnet_type: the vxnet of type you want to describe.
1261+ @param mode: the vxnet mode. 0: gre+ovs, 1: vxlan+bridge.
12601262 """
12611263 action = const .ACTION_DESCRIBE_VXNETS
12621264 valid_keys = ['vxnets' , 'search_word' , 'verbose' , 'limit' , 'offset' ,
1263- 'tags' , 'vxnet_type' , 'owner' ]
1265+ 'tags' , 'vxnet_type' , 'owner' , 'mode' ]
12641266 body = filter_out_none (locals (), valid_keys )
12651267 if not self .req_checker .check_params (body ,
12661268 required_params = [],
12671269 integer_params = [
1268- 'limit' , 'offset' , 'verbose' , 'vxnet_type' ],
1270+ 'limit' , 'offset' , 'verbose' ,
1271+ 'vxnet_type' , 'mode' ,
1272+ ],
12691273 list_params = ['vxnets' , 'tags' ]
12701274 ):
12711275 return None
@@ -1275,20 +1279,22 @@ def describe_vxnets(self, vxnets=None,
12751279 def create_vxnets (self , vxnet_name = None ,
12761280 vxnet_type = const .VXNET_TYPE_MANAGED ,
12771281 count = 1 ,
1282+ mode = 0 ,
12781283 ** ignore ):
12791284 """ Create one or more vxnets.
12801285 @param vxnet_name: the name of vxnet you want to create.
12811286 @param vxnet_type: vxnet type: unmanaged or managed.
1282- @param offset : the starting offset of the returning results .
1283- @param limit: specify the number of the returning results .
1287+ @param count : the number of vxnet you want to create .
1288+ @param mode: the vxnet mode. 0: gre+ovs, 1: vxlan+bridge .
12841289 """
12851290 action = const .ACTION_CREATE_VXNETS
1286- valid_keys = ['vxnet_name' , 'vxnet_type' , 'count' ]
1291+ valid_keys = ['vxnet_name' , 'vxnet_type' , 'count' , 'mode' ]
12871292 body = filter_out_none (locals (), valid_keys )
12881293 if not self .req_checker .check_params (body ,
12891294 required_params = ['vxnet_type' ],
12901295 integer_params = [
1291- 'vxnet_type' , 'count' ],
1296+ 'vxnet_type' , 'count' , 'mode' ,
1297+ ],
12921298 list_params = []
12931299 ):
12941300 return None
0 commit comments