Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 587943 Details for
Bug 826835
IPsrcaddr does not work
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
diff (text/plain), 1014 bytes, created by
lav
on 2012-05-31 06:22:16 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
lav
Created:
2012-05-31 06:22:16 UTC
Size:
1014 bytes
patch
obsolete
>--- /mnt/2/etc/ha.d/resource.d/IPsrcaddr 2011-02-10 02:24:36.000000000 +0300 >+++ IPsrcaddr 2012-05-31 10:19:46.000000000 +0400 >@@ -11,7 +11,7 @@ > # > # It can add a preferred source address, or remove one. > # >-# usage: IPsrcaddr ip-address {start|stop|status|monitor} >+# usage: IPsrcaddr ip-address/netmaskbits {start|stop|status|monitor} > # > # The "start" arg adds a preferred source address. > # >@@ -35,7 +35,7 @@ > > . /etc/ha.d/resource.d//hto-mapfuncs > >-USAGE="usage: $0 <ip-address> $LEGAL_ACTIONS"; >+USAGE="usage: $0 <ip-address/netmaskbits> $LEGAL_ACTIONS"; > > usage() { > echo $USAGE >&2 >@@ -50,5 +50,13 @@ > OCF_RESOURCE_INSTANCE=${OCF_TYPE} > export OCF_TYPE OCF_RESOURCE_INSTANCE > >-OCF_RESKEY_ipaddress=$1; export OCF_RESKEY_ipaddress >+SRCIP=`echo $1 | sed 's%/.*%%'` >+OCF_RESKEY_ipaddress=$SRCIP; export OCF_RESKEY_ipaddress >+ >+str=`echo $1 | sed 's%^'$SRCIP'/*%%'` >+if [ ! -z "$str" ]; then >+ NETMASK=$str >+ OCF_RESKEY_cidr_netmask=$NETMASK; export OCF_RESKEY_cidr_netmask >+fi >+ > ra_execocf $2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 826835
: 587943