LOS ANGELES (AP) — Gun owners and 30 California sheriffs are suing to block a Los Angeles city ban on high-capacity gun magazines.

The Los Angeles Daily News first reported on the suit Friday.

READ MORE: See Who Won During The Golden Globe Awards

This summer, the City Council banned possession of magazines that hold more than 10 rounds of ammunition. Owners have until Nov. 18 to sell the magazines, take them out of the city or surrender them to police.

The law mirrors laws in San Francisco and Sunnyvale.

READ MORE: 2 Riverside Co. Sheriff's Deputies Recovering After Being Hit By Delivery Van; 2 Women Killed

But the lawsuit argues that the ordinance violates existing state regulations, which ban the manufacture and sale of the magazines but not their possession.

Joining the sheriffs’ suit are a state-affiliated group of the National Rifle Association and the California Reserve Peace Officers Association.

City Attorney Mike Feuer says the law is constitutional.

MORE NEWS: Video: Multiple Trees Fall On Homes, Leading To Injuries During Severe Winds

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)