@@ -256,7 +256,7 @@ def list_subnets(self, identifier=None, datacenter=None, version=0,
256256
257257 return self .account .getSubnets (** kwargs )
258258
259- def list_vlans (self , datacenter = None , vlan_number = None , vlan_name = None ,
259+ def list_vlans (self , datacenter = None , vlan_number = None , name = None ,
260260 ** kwargs ):
261261 """ Display a list of all VLANs on the account.
262262
@@ -267,7 +267,7 @@ def list_vlans(self, datacenter=None, vlan_number=None, vlan_name=None,
267267 VLANs in the specified data center.
268268 :param int vlan_number: If specified, the list will only contain the
269269 VLAN matching this VLAN number.
270- :param int vlan_name : If specified, the list will only contain the
270+ :param int name : If specified, the list will only contain the
271271 VLAN matching this VLAN name.
272272 :param dict \*\*kwargs: response-level arguments (limit, offset, etc.)
273273
@@ -277,8 +277,8 @@ def list_vlans(self, datacenter=None, vlan_number=None, vlan_name=None,
277277 if vlan_number :
278278 _filter ['networkVlans' ]['vlanNumber' ] = query_filter (vlan_number )
279279
280- if vlan_name :
281- _filter ['networkVlans' ]['name' ] = query_filter (vlan_name )
280+ if name :
281+ _filter ['networkVlans' ]['name' ] = query_filter (name )
282282
283283 if datacenter :
284284 _filter ['networkVlans' ]['primaryRouter' ]['datacenter' ]['name' ] = \
@@ -385,7 +385,7 @@ def _list_subnets_by_identifier(self, identifier):
385385 return [result ['id' ] for result in results ]
386386
387387 def _list_vlans_by_name (self , name ):
388- results = self .list_vlans (vlan_name = name , mask = 'id' )
388+ results = self .list_vlans (name = name , mask = 'id' )
389389 return [result ['id' ] for result in results ]
390390
391391 def _get_subnet_mask (self ):
0 commit comments