You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.`,
82
82
},
83
+
84
+
"redundant_interface": {
85
+
Type: schema.TypeString,
86
+
Optional: true,
87
+
ForceNew: true,
88
+
Description: `The name of the interface that is redundant to this interface.`,
89
+
},
83
90
},
84
91
UseJSONNumber: true,
85
92
}
@@ -123,6 +130,7 @@ func resourceComputeRouterInterfaceCreate(d *schema.ResourceData, meta interface
123
130
}
124
131
125
132
ifaces:=router.Interfaces
133
+
126
134
for_, iface:=rangeifaces {
127
135
ififace.Name==ifaceName {
128
136
d.SetId("")
@@ -132,6 +140,10 @@ func resourceComputeRouterInterfaceCreate(d *schema.ResourceData, meta interface
132
140
133
141
iface:=&compute.RouterInterface{Name: ifaceName}
134
142
143
+
ifriVal, ok:=d.GetOk("redundant_interface"); ok {
144
+
iface.RedundantInterface=riVal.(string)
145
+
}
146
+
135
147
ifipVal, ok:=d.GetOk("ip_range"); ok {
136
148
iface.IpRange=ipVal.(string)
137
149
}
@@ -225,6 +237,9 @@ func resourceComputeRouterInterfaceRead(d *schema.ResourceData, meta interface{}
0 commit comments