var _ = Describe("Network", func() {
	var network core.Network

	Describe("StaticIPs", func() {
		BeforeEach(func() {
			network = core.Network{
				Subnets: []core.NetworkSubnet{
					{Static: []string{"10.0.0.1", "10.0.0.2"}},
					{Static: []string{"10.0.0.3", "10.0.0.4"}},
				},
			}
		})

		It("returns the requested number of ips", func() {
			ips := network.StaticIPs(3)

			Expect(ips).To(HaveLen(3))
			Expect(ips).To(ConsistOf([]string{"10.0.0.1", "10.0.0.2", "10.0.0.3"}))
		})

		It("returns an empty slice when there are fewer ips available than requested", func() {
			ips := network.StaticIPs(5)
			Expect(ips).To(HaveLen(0))
		})
	})

	Describe("StaticIPsFromRange", func() {
		BeforeEach(func() {
			network = core.Network{
				Subnets: []core.NetworkSubnet{