test: Refactor CIDR egress to world check
test: Refactor CIDR egress to world check

This will be reused in an upcoming commit.

Signed-off-by: Joe Stringer <16a9a54ddf4259952e3c118c763138e83693d7fd@covalent.io>

scanf/cilium,eloycoto/cilium,cilium-team/cilium,scanf/cilium,cilium/cilium,michi-covalent/cilium,eloycoto/cilium,tgraf/cilium,cilium/cilium,cilium/cilium,eloycoto/cilium,scanf/cilium,michi-covalent/cilium,scanf/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,michi-covalent/cilium,tklauser/cilium,scanf/cilium,eloycoto/cilium,tklauser/cilium,tklauser/cilium,cilium/cilium,tklauser/cilium,tgraf/cilium,michi-covalent/cilium,tgraf/cilium,scanf/cilium,scanf/cilium,tklauser/cilium,cilium/cilium,eloycoto/cilium,tgraf/cilium,eloycoto/cilium,cilium-team/cilium,eloycoto/cilium