Skip to content

Commit

Permalink
Merge pull request #171 from kytos-ng/fix/vlan_pool_script
Browse files Browse the repository at this point in the history
Filtered out archived EVCs
  • Loading branch information
viniarck authored Oct 16, 2023
2 parents 151db27 + 6ac6e61 commit 305f6ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/vlan_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def update_database(mongo: Mongo):
"""Update database"""
db = mongo.client[mongo.db_name]
intf_documents = db.interface_details.find()
evc_documents = db.evcs.find()
evc_documents = db.evcs.find({"archived": False})

evc_intf = defaultdict(set)
evc_tags = defaultdict(set)
Expand Down Expand Up @@ -150,7 +150,7 @@ def aggregate_outdated_interfaces(mongo: Mongo):
" amount of items, minimum and maximum items will be shown only")
print(messages)

evc_documents = db.evcs.find()
evc_documents = db.evcs.find({"archived": False})
evc_intf = defaultdict(set)
evc_tags = defaultdict(set)

Expand Down

0 comments on commit 305f6ae

Please sign in to comment.