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 301479 Details for
Bug 441215
findks.cgi matching ip_address and mac_address is broken
[?]
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]
patch which fixes IP and MAC address matches
findks.patch (text/plain), 1.37 KB, created by
Carsten Clasohm
on 2008-04-07 07:53:15 UTC
(
hide
)
Description:
patch which fixes IP and MAC address matches
Filename:
MIME Type:
Creator:
Carsten Clasohm
Created:
2008-04-07 07:53:15 UTC
Size:
1.37 KB
patch
obsolete
>*** findks.cgi.orig 2008-04-07 09:41:50.000000000 +0200 >--- findks.cgi 2008-04-04 11:35:02.000000000 +0200 >*************** >*** 75,82 **** > for x in systems: > > for y in x["interfaces"]: >! if x["interfaces"][y]["ip_address"] == ip: >! candidates.append(x) > > if len(candidates) == 0: > print "# no system entries with MAC %s found" % mac >--- 75,82 ---- > for x in systems: > > for y in x["interfaces"]: >! if x["interfaces"][y]["mac_address"].lower() == mac.lower(): >! candidates.append(x["name"]) > > if len(candidates) == 0: > print "# no system entries with MAC %s found" % mac >*************** >*** 91,97 **** > # attempt to match by the IP. > > ip = os.environ["REMOTE_ADDR"] >! candidates = [system['name'] for system in systems if system['ip_address'] == ip] > > if len(candidates) == 0: > print "# no system entries with ip %s found" % ip >--- 91,103 ---- > # attempt to match by the IP. > > ip = os.environ["REMOTE_ADDR"] >! >! candidates = [] >! for x in systems: >! >! for y in x["interfaces"]: >! if x["interfaces"][y]["ip_address"] == ip: >! candidates.append(x["name"]) > > if len(candidates) == 0: > print "# no system entries with ip %s found" % ip
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 441215
:
301478
| 301479