routeros.InterfaceVrrp
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const interfaceVrrp = new routeros.InterfaceVrrp("interfaceVrrp", {"interface": "bridge"});
import pulumi
import pulumi_routeros as routeros
interface_vrrp = routeros.InterfaceVrrp("interfaceVrrp", interface="bridge")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := routeros.NewInterfaceVrrp(ctx, "interfaceVrrp", &routeros.InterfaceVrrpArgs{
Interface: pulumi.String("bridge"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;
return await Deployment.RunAsync(() =>
{
var interfaceVrrp = new Routeros.InterfaceVrrp("interfaceVrrp", new()
{
Interface = "bridge",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.InterfaceVrrp;
import com.pulumi.routeros.InterfaceVrrpArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var interfaceVrrp = new InterfaceVrrp("interfaceVrrp", InterfaceVrrpArgs.builder()
.interface_("bridge")
.build());
}
}
resources:
interfaceVrrp:
type: routeros:InterfaceVrrp
properties:
interface: bridge
Create InterfaceVrrp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InterfaceVrrp(name: string, args: InterfaceVrrpArgs, opts?: CustomResourceOptions);
@overload
def InterfaceVrrp(resource_name: str,
args: InterfaceVrrpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InterfaceVrrp(resource_name: str,
opts: Optional[ResourceOptions] = None,
interface: Optional[str] = None,
mtu: Optional[str] = None,
group_authority: Optional[str] = None,
arp_timeout: Optional[str] = None,
authentication: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
___id_: Optional[float] = None,
group_master: Optional[str] = None,
___path_: Optional[str] = None,
interface_vrrp_id: Optional[str] = None,
arp: Optional[str] = None,
interval: Optional[str] = None,
password: Optional[str] = None,
on_backup: Optional[str] = None,
on_fail: Optional[str] = None,
on_master: Optional[str] = None,
name: Optional[str] = None,
preemption_mode: Optional[bool] = None,
priority: Optional[float] = None,
remote_address: Optional[str] = None,
sync_connection_tracking: Optional[bool] = None,
v3_protocol: Optional[str] = None,
version: Optional[float] = None,
vrid: Optional[float] = None)
func NewInterfaceVrrp(ctx *Context, name string, args InterfaceVrrpArgs, opts ...ResourceOption) (*InterfaceVrrp, error)
public InterfaceVrrp(string name, InterfaceVrrpArgs args, CustomResourceOptions? opts = null)
public InterfaceVrrp(String name, InterfaceVrrpArgs args)
public InterfaceVrrp(String name, InterfaceVrrpArgs args, CustomResourceOptions options)
type: routeros:InterfaceVrrp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InterfaceVrrpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InterfaceVrrpArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InterfaceVrrpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InterfaceVrrpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InterfaceVrrpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InterfaceVrrp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InterfaceVrrp resource accepts the following input properties:
- Interface string
- Name of the interface.
- Arp string
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- Arp
Timeout string - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - Authentication string
- Authentication method to use for VRRP advertisement packets.
- Comment string
- Disabled bool
- string
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - Group
Master string - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - Interface
Vrrp stringId - Interval string
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- Mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- Name string
- On
Backup string - Script to execute when the node is switched to the backup state.
- On
Fail string - Script to execute when the node fails.
- On
Master string - Script to execute when the node is switched to master state.
- Password string
- Password required for authentication. Can be ignored if authentication is not used.
- Preemption
Mode bool - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - Priority double
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - Remote
Address string - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - Sync
Connection boolTracking - Synchronize connection tracking entries from Master to Backup device.
- V3Protocol string
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- Version double
- Which VRRP version to use.
- Vrid double
- Virtual Router identifier. Each Virtual router must have a unique id number.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Interface string
- Name of the interface.
- Arp string
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- Arp
Timeout string - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - Authentication string
- Authentication method to use for VRRP advertisement packets.
- Comment string
- Disabled bool
- string
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - Group
Master string - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - Interface
Vrrp stringId - Interval string
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- Mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- Name string
- On
Backup string - Script to execute when the node is switched to the backup state.
- On
Fail string - Script to execute when the node fails.
- On
Master string - Script to execute when the node is switched to master state.
- Password string
- Password required for authentication. Can be ignored if authentication is not used.
- Preemption
Mode bool - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - Priority float64
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - Remote
Address string - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - Sync
Connection boolTracking - Synchronize connection tracking entries from Master to Backup device.
- V3Protocol string
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- Version float64
- Which VRRP version to use.
- Vrid float64
- Virtual Router identifier. Each Virtual router must have a unique id number.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- interface_ String
- Name of the interface.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- arp String
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- arp
Timeout String - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - authentication String
- Authentication method to use for VRRP advertisement packets.
- comment String
- disabled Boolean
- String
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - group
Master String - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - interface
Vrrp StringId - interval String
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- mtu String
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name String
- on
Backup String - Script to execute when the node is switched to the backup state.
- on
Fail String - Script to execute when the node fails.
- on
Master String - Script to execute when the node is switched to master state.
- password String
- Password required for authentication. Can be ignored if authentication is not used.
- preemption
Mode Boolean - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - priority Double
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - remote
Address String - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - sync
Connection BooleanTracking - Synchronize connection tracking entries from Master to Backup device.
- v3Protocol String
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- version Double
- Which VRRP version to use.
- vrid Double
- Virtual Router identifier. Each Virtual router must have a unique id number.
- interface string
- Name of the interface.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- arp string
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- arp
Timeout string - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - authentication string
- Authentication method to use for VRRP advertisement packets.
- comment string
- disabled boolean
- string
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - group
Master string - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - interface
Vrrp stringId - interval string
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name string
- on
Backup string - Script to execute when the node is switched to the backup state.
- on
Fail string - Script to execute when the node fails.
- on
Master string - Script to execute when the node is switched to master state.
- password string
- Password required for authentication. Can be ignored if authentication is not used.
- preemption
Mode boolean - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - priority number
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - remote
Address string - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - sync
Connection booleanTracking - Synchronize connection tracking entries from Master to Backup device.
- v3Protocol string
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- version number
- Which VRRP version to use.
- vrid number
- Virtual Router identifier. Each Virtual router must have a unique id number.
- interface str
- Name of the interface.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- arp str
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- arp_
timeout str - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - authentication str
- Authentication method to use for VRRP advertisement packets.
- comment str
- disabled bool
- str
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - group_
master str - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - interface_
vrrp_ strid - interval str
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- mtu str
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name str
- on_
backup str - Script to execute when the node is switched to the backup state.
- on_
fail str - Script to execute when the node fails.
- on_
master str - Script to execute when the node is switched to master state.
- password str
- Password required for authentication. Can be ignored if authentication is not used.
- preemption_
mode bool - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - priority float
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - remote_
address str - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - sync_
connection_ booltracking - Synchronize connection tracking entries from Master to Backup device.
- v3_
protocol str - A protocol that will be used by VRRPv3. Valid only if the version is 3.
- version float
- Which VRRP version to use.
- vrid float
- Virtual Router identifier. Each Virtual router must have a unique id number.
- interface String
- Name of the interface.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- arp String
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- arp
Timeout String - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - authentication String
- Authentication method to use for VRRP advertisement packets.
- comment String
- disabled Boolean
- String
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - group
Master String - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - interface
Vrrp StringId - interval String
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- mtu String
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name String
- on
Backup String - Script to execute when the node is switched to the backup state.
- on
Fail String - Script to execute when the node fails.
- on
Master String - Script to execute when the node is switched to master state.
- password String
- Password required for authentication. Can be ignored if authentication is not used.
- preemption
Mode Boolean - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - priority Number
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - remote
Address String - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - sync
Connection BooleanTracking - Synchronize connection tracking entries from Master to Backup device.
- v3Protocol String
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- version Number
- Which VRRP version to use.
- vrid Number
- Virtual Router identifier. Each Virtual router must have a unique id number.
Outputs
All input properties are implicitly available as output properties. Additionally, the InterfaceVrrp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Invalid bool
- Mac
Address string - Current mac address.
- Running bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Invalid bool
- Mac
Address string - Current mac address.
- Running bool
- id String
- The provider-assigned unique ID for this managed resource.
- invalid Boolean
- mac
Address String - Current mac address.
- running Boolean
- id string
- The provider-assigned unique ID for this managed resource.
- invalid boolean
- mac
Address string - Current mac address.
- running boolean
- id str
- The provider-assigned unique ID for this managed resource.
- invalid bool
- mac_
address str - Current mac address.
- running bool
- id String
- The provider-assigned unique ID for this managed resource.
- invalid Boolean
- mac
Address String - Current mac address.
- running Boolean
Look up Existing InterfaceVrrp Resource
Get an existing InterfaceVrrp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InterfaceVrrpState, opts?: CustomResourceOptions): InterfaceVrrp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
arp: Optional[str] = None,
arp_timeout: Optional[str] = None,
authentication: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
group_authority: Optional[str] = None,
group_master: Optional[str] = None,
interface: Optional[str] = None,
interface_vrrp_id: Optional[str] = None,
interval: Optional[str] = None,
invalid: Optional[bool] = None,
mac_address: Optional[str] = None,
mtu: Optional[str] = None,
name: Optional[str] = None,
on_backup: Optional[str] = None,
on_fail: Optional[str] = None,
on_master: Optional[str] = None,
password: Optional[str] = None,
preemption_mode: Optional[bool] = None,
priority: Optional[float] = None,
remote_address: Optional[str] = None,
running: Optional[bool] = None,
sync_connection_tracking: Optional[bool] = None,
v3_protocol: Optional[str] = None,
version: Optional[float] = None,
vrid: Optional[float] = None) -> InterfaceVrrp
func GetInterfaceVrrp(ctx *Context, name string, id IDInput, state *InterfaceVrrpState, opts ...ResourceOption) (*InterfaceVrrp, error)
public static InterfaceVrrp Get(string name, Input<string> id, InterfaceVrrpState? state, CustomResourceOptions? opts = null)
public static InterfaceVrrp get(String name, Output<String> id, InterfaceVrrpState state, CustomResourceOptions options)
resources: _: type: routeros:InterfaceVrrp get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arp string
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- Arp
Timeout string - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - Authentication string
- Authentication method to use for VRRP advertisement packets.
- Comment string
- Disabled bool
- string
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - Group
Master string - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - Interface string
- Name of the interface.
- Interface
Vrrp stringId - Interval string
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- Invalid bool
- Mac
Address string - Current mac address.
- Mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- Name string
- On
Backup string - Script to execute when the node is switched to the backup state.
- On
Fail string - Script to execute when the node fails.
- On
Master string - Script to execute when the node is switched to master state.
- Password string
- Password required for authentication. Can be ignored if authentication is not used.
- Preemption
Mode bool - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - Priority double
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - Remote
Address string - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - Running bool
- Sync
Connection boolTracking - Synchronize connection tracking entries from Master to Backup device.
- V3Protocol string
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- Version double
- Which VRRP version to use.
- Vrid double
- Virtual Router identifier. Each Virtual router must have a unique id number.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Arp string
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- Arp
Timeout string - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - Authentication string
- Authentication method to use for VRRP advertisement packets.
- Comment string
- Disabled bool
- string
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - Group
Master string - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - Interface string
- Name of the interface.
- Interface
Vrrp stringId - Interval string
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- Invalid bool
- Mac
Address string - Current mac address.
- Mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- Name string
- On
Backup string - Script to execute when the node is switched to the backup state.
- On
Fail string - Script to execute when the node fails.
- On
Master string - Script to execute when the node is switched to master state.
- Password string
- Password required for authentication. Can be ignored if authentication is not used.
- Preemption
Mode bool - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - Priority float64
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - Remote
Address string - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - Running bool
- Sync
Connection boolTracking - Synchronize connection tracking entries from Master to Backup device.
- V3Protocol string
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- Version float64
- Which VRRP version to use.
- Vrid float64
- Virtual Router identifier. Each Virtual router must have a unique id number.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- arp String
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- arp
Timeout String - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - authentication String
- Authentication method to use for VRRP advertisement packets.
- comment String
- disabled Boolean
- String
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - group
Master String - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - interface
Vrrp StringId - interface_ String
- Name of the interface.
- interval String
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- invalid Boolean
- mac
Address String - Current mac address.
- mtu String
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name String
- on
Backup String - Script to execute when the node is switched to the backup state.
- on
Fail String - Script to execute when the node fails.
- on
Master String - Script to execute when the node is switched to master state.
- password String
- Password required for authentication. Can be ignored if authentication is not used.
- preemption
Mode Boolean - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - priority Double
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - remote
Address String - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - running Boolean
- sync
Connection BooleanTracking - Synchronize connection tracking entries from Master to Backup device.
- v3Protocol String
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- version Double
- Which VRRP version to use.
- vrid Double
- Virtual Router identifier. Each Virtual router must have a unique id number.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- arp string
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- arp
Timeout string - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - authentication string
- Authentication method to use for VRRP advertisement packets.
- comment string
- disabled boolean
- string
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - group
Master string - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - interface string
- Name of the interface.
- interface
Vrrp stringId - interval string
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- invalid boolean
- mac
Address string - Current mac address.
- mtu string
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name string
- on
Backup string - Script to execute when the node is switched to the backup state.
- on
Fail string - Script to execute when the node fails.
- on
Master string - Script to execute when the node is switched to master state.
- password string
- Password required for authentication. Can be ignored if authentication is not used.
- preemption
Mode boolean - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - priority number
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - remote
Address string - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - running boolean
- sync
Connection booleanTracking - Synchronize connection tracking entries from Master to Backup device.
- v3Protocol string
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- version number
- Which VRRP version to use.
- vrid number
- Virtual Router identifier. Each Virtual router must have a unique id number.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- arp str
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- arp_
timeout str - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - authentication str
- Authentication method to use for VRRP advertisement packets.
- comment str
- disabled bool
- str
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - group_
master str - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - interface str
- Name of the interface.
- interface_
vrrp_ strid - interval str
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- invalid bool
- mac_
address str - Current mac address.
- mtu str
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name str
- on_
backup str - Script to execute when the node is switched to the backup state.
- on_
fail str - Script to execute when the node fails.
- on_
master str - Script to execute when the node is switched to master state.
- password str
- Password required for authentication. Can be ignored if authentication is not used.
- preemption_
mode bool - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - priority float
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - remote_
address str - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - running bool
- sync_
connection_ booltracking - Synchronize connection tracking entries from Master to Backup device.
- v3_
protocol str - A protocol that will be used by VRRPv3. Valid only if the version is 3.
- version float
- Which VRRP version to use.
- vrid float
- Virtual Router identifier. Each Virtual router must have a unique id number.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- arp String
- Address Resolution Protocol mode: * disabled - the interface will not use ARP * enabled - the interface will use ARP * local-proxy-arp - the router performs proxy ARP on the interface and sends replies to the same interface * proxy-arp - the router performs proxy ARP on the interface and sends replies to other interfaces * reply-only - the interface will only reply to requests originated from matching IP address/MAC address combinations which are entered as static entries in the ARP table. No dynamic entries will be automatically stored in the ARP table. Therefore for communications to be successful, a valid static entry must already exist.
- arp
Timeout String - ARP timeout is time how long ARP record is kept in ARP table after no packets are received from IP. Value auto equals to
the value of arp-timeout in IP/Settings, default is 30s. Can use postfix
ms
,s
,m
,h
,d
for milliseconds, seconds, minutes, hours or days. If no postfix is set then seconds (s) is used. - authentication String
- Authentication method to use for VRRP advertisement packets.
- comment String
- disabled Boolean
- String
- Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - group
Master String - Allows combining multiple VRRP interfaces to maintain the same VRRP status within the group.
group_authority
was previously calledgroup_master
,group_master
is kept for compatibility with scripts, but if both are set onlygroup_authority
will be taken into account. - interface String
- Name of the interface.
- interface
Vrrp StringId - interval String
- VRRP update interval in seconds. Defines how often master sends advertisement packets.
- invalid Boolean
- mac
Address String - Current mac address.
- mtu String
- Layer3 Maximum transmission unit ('auto', 0 .. 65535)
- name String
- on
Backup String - Script to execute when the node is switched to the backup state.
- on
Fail String - Script to execute when the node fails.
- on
Master String - Script to execute when the node is switched to master state.
- password String
- Password required for authentication. Can be ignored if authentication is not used.
- preemption
Mode Boolean - Whether the master node always has the priority. When set to
no
the backup node will not be elected to be a master until the current master fails, even if the backup node has higher priority than the current master. This setting is ignored if the owner router becomes available - priority Number
- Priority of VRRP node used in Master election algorithm. A higher number means higher priority.
255
is reserved for the router that owns VR IP and0
is reserved for the Master router to indicate that it is releasing responsibility. - remote
Address String - Specifies the remote address of the other VRRP router for syncing connection tracking. If not set, the system
autodetects the remote address via VRRP. The remote address is used only if
sync_connection_tracking = true
.Sync connection tracking uses UDP port 8275. - running Boolean
- sync
Connection BooleanTracking - Synchronize connection tracking entries from Master to Backup device.
- v3Protocol String
- A protocol that will be used by VRRPv3. Valid only if the version is 3.
- version Number
- Which VRRP version to use.
- vrid Number
- Virtual Router identifier. Each Virtual router must have a unique id number.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/interface/vrrp get [print show-ids]]
$ pulumi import routeros:index/interfaceVrrp:InterfaceVrrp interface_vrrp "*0"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.