Change a dictionary within a loop

I am trying to edit ansible_facts created by network-engine inside a loop but cannot figure out the syntax.

I have a bunch of VLANs as a dict.