ports: add clear() to inputport operation object.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>