Correct ns parsing with defines: Only apply defines to one router.

Signed-off-by: Eddie Kohler <ekohler@gmail.com>