From a4e19162a53ec97402eba79aa1a5b28b55743cf3 Mon Sep 17 00:00:00 2001 From: Dario Maiocchi Date: Fri, 24 Nov 2017 12:00:24 +0100 Subject: adding documentation about network autostart --- libvirt/resource_libvirt_network_test.go | 2 -- website/docs/r/network.markdown | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt/resource_libvirt_network_test.go b/libvirt/resource_libvirt_network_test.go index ae450012..cedcc507 100644 --- a/libvirt/resource_libvirt_network_test.go +++ b/libvirt/resource_libvirt_network_test.go @@ -87,8 +87,6 @@ func testAccCheckLibvirtNetworkDestroy(s *terraform.State) error { if rs.Type != "libvirt_network" { continue } - - // Try to find the server _, err := virtConn.LookupNetworkByUUIDString(rs.Primary.ID) if err == nil { return fmt.Errorf( diff --git a/website/docs/r/network.markdown b/website/docs/r/network.markdown index 1c2f2757..1f4698ad 100644 --- a/website/docs/r/network.markdown +++ b/website/docs/r/network.markdown @@ -74,6 +74,8 @@ The following arguments are supported: one or mode of these blocks in your network definition. You must specify one or both of `address` and `domain`. You can use either of the forms below to specify dns_forwarders: +* `autostart` - (Optional) Set to `true` to start the network on host boot up. + If not specified `false` is assumed. ```hcl resource "libvirt_network" "my_network" { -- cgit v1.2.3