'\" t .\" Title: ocf_heartbeat_iface-macvlan .\" Author: ClusterLabs contributors (see the resource agent source for information about individual authors) .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 03/13/2024 .\" Manual: OCF resource agents .\" Source: resource-agents 4.13.0-1+b1 .\" Language: English .\" .TH "OCF_HEARTBEAT_IFACE" "7" "03/13/2024" "resource-agents 4.13.0-1+b1" "OCF resource agents" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ocf_heartbeat_iface-macvlan \- Manages MACVLAN network interfaces\&. .SH "SYNOPSIS" .HP \w'\fBiface\-macvlan\fR\ 'u \fBiface\-macvlan\fR [start | stop | status | monitor | meta\-data | validate\-all] .SH "DESCRIPTION" .PP This resource manages MACVLAN network interfaces\&. It can add, remove, configure MACVLANs\&. .SH "SUPPORTED PARAMETERS" .PP \fBdevice\fR .RS 4 Define the interface where MACVLAN should be attached\&. .sp (required, string, no default) .RE .PP \fBname\fR .RS 4 Define the MACVLAN NAME\&. It has to be a valid interface name (max 15 characters)\&. .sp (unique, required, string, no default) .RE .PP \fBmode\fR .RS 4 Define the name of the MACVLAN mode (currently only bridge is supported)\&. .sp (optional, string, default "bridge") .RE .PP \fBmac\fR .RS 4 Set the interface MAC address explicitly\&. .sp (unique, optional, string, no default) .RE .SH "SUPPORTED ACTIONS" .PP This resource agent supports the following actions (operations): .PP \fBstart\fR .RS 4 Starts the resource\&. Suggested minimum timeout: 30s\&. .RE .PP \fBstop\fR .RS 4 Stops the resource\&. Suggested minimum timeout: 20s\&. .RE .PP \fBstatus\fR .RS 4 Performs a status check\&. Suggested minimum timeout: 20s\&. Suggested interval: 10s\&. .RE .PP \fBmonitor\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 20s\&. Suggested interval: 10s\&. .RE .PP \fBmeta\-data\fR .RS 4 Retrieves resource agent metadata (internal use only)\&. Suggested minimum timeout: 5s\&. .RE .PP \fBvalidate\-all\fR .RS 4 Performs a validation of the resource configuration\&. Suggested minimum timeout: 20s\&. .RE .SH "EXAMPLE CRM SHELL" .PP The following is an example configuration for a iface\-macvlan resource using the \fBcrm\fR(8) shell: .sp .if n \{\ .RS 4 .\} .nf primitive p_iface\-macvlan ocf:heartbeat:iface\-macvlan \e params \e device=\fIstring\fR \e name=\fIstring\fR \e op monitor timeout="20s" depth="0" interval="10s" .fi .if n \{\ .RE .\} .SH "EXAMPLE PCS" .PP The following is an example configuration for a iface\-macvlan resource using \fBpcs\fR(8) .sp .if n \{\ .RS 4 .\} .nf pcs resource create p_iface\-macvlan ocf:heartbeat:iface\-macvlan \e device=\fIstring\fR \e name=\fIstring\fR \e op monitor timeout="20s" OCF_CHECK_LEVEL="0" interval="10s" .fi .if n \{\ .RE .\} .SH "SEE ALSO" .PP \m[blue]\fB\%http://clusterlabs.org/\fR\m[] .SH "AUTHOR" .PP \fBClusterLabs contributors (see the resource agent source for information about individual authors)\fR