@on.control
def h0(c):
    for (k, v) in c.items():
        v['status'] = v.get('intent', v.get('status', 'undef'))
@on.control
def h0(c):
    for (k, v) in c.items():
        v['status'] = v.get('intent', v.get('status', 'undef'))