logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ocf_heartbeat_iface-macvlan - Manages MACVLAN network interfaces.

Author

ClusterLabscontributors(seetheresourceagentsourceforinformationaboutindividualauthors)

resource-agents 4.16.0-3ubuntu                     06/25/2025                             OCF_HEARTBEAT_IFACE(7)

Description

       This resource manages MACVLAN network interfaces. It can add, remove, configure MACVLANs.

Example Crm Shell

       The following is an example configuration for a iface-macvlan resource using the crm(8) shell:

           primitive p_iface-macvlan ocf:heartbeat:iface-macvlan \
             params \
               device=string \
               name=string \
             op monitor timeout="20s" depth="0" interval="10s"

Example Pcs

       The following is an example configuration for a iface-macvlan resource using pcs(8)

           pcs resource create p_iface-macvlan ocf:heartbeat:iface-macvlan \
             device=string \
             name=string \
             op monitor timeout="20s" OCF_CHECK_LEVEL="0" interval="10s"

Name

       ocf_heartbeat_iface-macvlan - Manages MACVLAN network interfaces.

See Also

Supported Actions

       This resource agent supports the following actions (operations):

       start
           Starts the resource. Suggested minimum timeout: 30s.

       stop
           Stops the resource. Suggested minimum timeout: 20s.

       status
           Performs a status check. Suggested minimum timeout: 20s. Suggested interval: 10s.

       monitor
           Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10s.

       meta-data
           Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.

       validate-all
           Performs a validation of the resource configuration. Suggested minimum timeout: 20s.

Supported Parameters

device
           Define the interface where MACVLAN should be attached.

           (required, string, no default)

       name
           Define the MACVLAN NAME. It has to be a valid interface name (max 15 characters).

           (unique, required, string, no default)

       mode
           Define the name of the MACVLAN mode (currently only bridge is supported).

           (optional, string, default "bridge")

       mac
           Set the interface MAC address explicitly.

           (unique, optional, string, no default)

Synopsis

iface-macvlan [start | stop | status | monitor | meta-data | validate-all]

See Also