Browse Source

Merge "Fix code bug in document"

tags/1.17.0^0
Zuul 2 weeks ago
parent
commit
3a08cc4528
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      doc/source/user/usage.rst

+ 3
- 3
doc/source/user/usage.rst View File

@@ -26,7 +26,7 @@ of type ``os_vif.objects.instance_info.InstanceInfo``:
26 26
     from os_vif.objects import fields
27 27
     from os_vif.objects import instance_info
28 28
     from os_vif.objects import network
29
-    from os_vif.objects import subnet
29
+    from os_vif.objects import subnet as os_subnet
30 30
     from os_vif.objects import vif as vif_obj
31 31
 
32 32
     instance_uuid = 'd7a730ca-3c28-49c3-8f26-4662b909fe8a'
@@ -36,8 +36,8 @@ of type ``os_vif.objects.instance_info.InstanceInfo``:
36 36
         name=instance.name,
37 37
         project_id=instance.project_id)
38 38
 
39
-    subnet = subnet.Subnet(cidr='192.168.1.0/24')
40
-    subnets = subnet.SubnetList([subnet])
39
+    subnet = os_subnet.Subnet(cidr='192.168.1.0/24')
40
+    subnets = os_subnet.SubnetList([subnet])
41 41
     network = network.Network(label='tenantnet',
42 42
                               subnets=subnets,
43 43
                               multi_host=False,

Loading…
Cancel
Save