examples/ip_pipeline: update routes when ports state change