Lines Matching refs:subnets

30subnets.List(fake.ServiceClient(), subnets.ListOpts{}).EachPage(func(page pagination.Page) (bool, …
32 actual, err := subnets.ExtractSubnets(page)
38 expected := []subnets.Subnet{
69 s, err := subnets.Get(fake.ServiceClient(), "54d6f61d-db07-451c-9ab3-b9609b6b6f0b").Extract()
77 th.AssertDeepEquals(t, s.AllocationPools, []subnets.AllocationPool{
83 th.AssertDeepEquals(t, s.HostRoutes, []subnets.HostRoute{})
109 opts := subnets.CreateOpts{
114 AllocationPools: []subnets.AllocationPool{
121 HostRoutes: []subnets.HostRoute{
126 s, err := subnets.Create(fake.ServiceClient(), opts).Extract()
134 th.AssertDeepEquals(t, s.AllocationPools, []subnets.AllocationPool{
140 th.AssertDeepEquals(t, s.HostRoutes, []subnets.HostRoute{})
166 opts := subnets.CreateOpts{
171 AllocationPools: []subnets.AllocationPool{
179 s, err := subnets.Create(fake.ServiceClient(), opts).Extract()
186 th.AssertDeepEquals(t, s.AllocationPools, []subnets.AllocationPool{
192 th.AssertDeepEquals(t, s.HostRoutes, []subnets.HostRoute{})
216 opts := subnets.CreateOpts{
220 AllocationPools: []subnets.AllocationPool{
228 s, err := subnets.Create(fake.ServiceClient(), opts).Extract()
235 th.AssertDeepEquals(t, s.AllocationPools, []subnets.AllocationPool{
241 th.AssertDeepEquals(t, s.HostRoutes, []subnets.HostRoute{})
266 opts := subnets.CreateOpts{
274 s, err := subnets.Create(fake.ServiceClient(), opts).Extract()
306 opts := subnets.CreateOpts{
310 HostRoutes: []subnets.HostRoute{
315 s, err := subnets.Create(fake.ServiceClient(), opts).Extract()
323 th.AssertDeepEquals(t, s.AllocationPools, []subnets.AllocationPool{
329 th.AssertDeepEquals(t, s.HostRoutes, []subnets.HostRoute{})
354 opts := subnets.CreateOpts{
358 HostRoutes: []subnets.HostRoute{
364 s, err := subnets.Create(fake.ServiceClient(), opts).Extract()
372 th.AssertDeepEquals(t, s.AllocationPools, []subnets.AllocationPool{
378 th.AssertDeepEquals(t, s.HostRoutes, []subnets.HostRoute{})
387 res := subnets.Create(fake.ServiceClient(), subnets.CreateOpts{})
392 res = subnets.Create(fake.ServiceClient(), subnets.CreateOpts{NetworkID: "foo"})
397 …res = subnets.Create(fake.ServiceClient(), subnets.CreateOpts{NetworkID: "foo", CIDR: "bar", IPVer…
422 opts := subnets.UpdateOpts{
425 HostRoutes: &[]subnets.HostRoute{
429 …s, err := subnets.Update(fake.ServiceClient(), "08eae331-0402-425a-923c-34f7cfe39c1b", opts).Extra…
455 opts := subnets.UpdateOpts{
459 …s, err := subnets.Update(fake.ServiceClient(), "08eae331-0402-425a-923c-34f7cfe39c1b", opts).Extra…
486 opts := subnets.UpdateOpts{
490 …s, err := subnets.Update(fake.ServiceClient(), "08eae331-0402-425a-923c-34f7cfe39c1b", opts).Extra…
515 HostRoutes := []subnets.HostRoute{
523 opts := subnets.UpdateOpts{
527 …s, err := subnets.Update(fake.ServiceClient(), "08eae331-0402-425a-923c-34f7cfe39c1b", opts).Extra…
552 noHostRoutes := []subnets.HostRoute{}
553 opts := subnets.UpdateOpts{
556 …s, err := subnets.Update(fake.ServiceClient(), "08eae331-0402-425a-923c-34f7cfe39c1b", opts).Extra…
582 opts := subnets.UpdateOpts{
584 AllocationPools: []subnets.AllocationPool{
591 …s, err := subnets.Update(fake.ServiceClient(), "08eae331-0402-425a-923c-34f7cfe39c1b", opts).Extra…
596 th.AssertDeepEquals(t, s.AllocationPools, []subnets.AllocationPool{
614 res := subnets.Delete(fake.ServiceClient(), "08eae331-0402-425a-923c-34f7cfe39c1b")