

def handle_get_port_state(self, handle, connection, match, data, hdr):
    ' Get port from id\n        '
    state = {
        
    }
    try:
        state = self.node.am.get_port_state(match.group(1), match.group(2))
        status = calvinresponse.OK
    except:
        status = calvinresponse.NOT_FOUND
    self.send_response(handle, connection, json.dumps(state), match)

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvincontrol.py CalvinControl.handle_get_port_state/VarMisuse@91/117 `status`->`match`