def create_vlan(vlan, user): """Create vlan""" vlan_obj = Vlan() vlan_obj.create_v3(vlan) return vlan_obj
def create_vlan(vlan, user): """Create vlan.""" try: vlan_obj = Vlan() vlan_obj.create_v3(vlan, user) except ObjectDoesNotExistException, e: raise ObjectDoesNotExistException(str(e))