Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
resource-agents.26626
0001-IPaddr2-Allow-to-disable-Duplicate-Address...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-IPaddr2-Allow-to-disable-Duplicate-Address-Detection.patch of Package resource-agents.26626
From fd1d6426a2d05f521207c305d10b49fedd92c2df Mon Sep 17 00:00:00 2001 From: Petr Pavlu <petr.pavlu@suse.com> Date: Mon, 28 Feb 2022 09:27:42 +0100 Subject: [PATCH 1/4] IPaddr2: Allow to disable Duplicate Address Detection for IPv6 "Starting" an IPv6 address with IPaddr2 involves performing Duplicate Address Detection which typically takes at least 1000 ms. Allow the user to disable DAD if they can guarantee that the configured address is not duplicate and they wish to start the resource faster. --- heartbeat/IPaddr2 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/heartbeat/IPaddr2 b/heartbeat/IPaddr2 index 735dd777..650392b7 100755 --- a/heartbeat/IPaddr2 +++ b/heartbeat/IPaddr2 @@ -88,6 +88,7 @@ OCF_RESKEY_arp_sender_default="" OCF_RESKEY_send_arp_opts_default="" OCF_RESKEY_flush_routes_default="false" OCF_RESKEY_run_arping_default=false +OCF_RESKEY_nodad_default=false OCF_RESKEY_noprefixroute_default="false" OCF_RESKEY_preferred_lft_default="forever" OCF_RESKEY_network_namespace_default="" @@ -110,6 +111,7 @@ OCF_RESKEY_network_namespace_default="" : ${OCF_RESKEY_send_arp_opts=${OCF_RESKEY_send_arp_opts_default}} : ${OCF_RESKEY_flush_routes=${OCF_RESKEY_flush_routes_default}} : ${OCF_RESKEY_run_arping=${OCF_RESKEY_run_arping_default}} +: ${OCF_RESKEY_nodad=${OCF_RESKEY_nodad_default}} : ${OCF_RESKEY_noprefixroute=${OCF_RESKEY_noprefixroute_default}} : ${OCF_RESKEY_preferred_lft=${OCF_RESKEY_preferred_lft_default}} : ${OCF_RESKEY_network_namespace=${OCF_RESKEY_network_namespace_default}} @@ -391,6 +393,14 @@ Whether or not to run arping for IPv4 collision detection check. <content type="string" default="${OCF_RESKEY_run_arping_default}"/> </parameter> +<parameter name="nodad"> +<longdesc lang="en"> +For IPv6, do not perform Duplicate Address Detection when adding the address. +</longdesc> +<shortdesc lang="en">Use nodad flag</shortdesc> +<content type="string" default="${OCF_RESKEY_nodad_default}"/> +</parameter> + <parameter name="noprefixroute"> <longdesc lang="en"> Use noprefixroute flag (see 'man ip-address'). @@ -662,6 +672,11 @@ add_interface () { msg="Adding $FAMILY address $ipaddr/$netmask with broadcast address $broadcast to device $iface" fi + if [ "$FAMILY" = "inet6" ] && ocf_is_true "${OCF_RESKEY_nodad}"; then + cmd="$cmd nodad" + msg="${msg} (with nodad)" + fi + if ocf_is_true "${OCF_RESKEY_noprefixroute}"; then cmd="$cmd noprefixroute" msg="${msg} (with noprefixroute)" -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor