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 295977 Details for
Bug 434990
[PATCH] allow setup of DNS for static IP via text interface
[?]
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]
provide a way to add DNS info
system-config-network-tui-dns.patch (text/plain), 2.89 KB, created by
Adam Stokes
on 2008-02-26 18:44:40 UTC
(
hide
)
Description:
provide a way to add DNS info
Filename:
MIME Type:
Creator:
Adam Stokes
Created:
2008-02-26 18:44:40 UTC
Size:
2.89 KB
patch
obsolete
>diff -up system-config-network-1.3.99.10/src/netconfpkg/tui/NCTcpIp.py.stokes system-config-network-1.3.99.10/src/netconfpkg/tui/NCTcpIp.py >--- system-config-network-1.3.99.10/src/netconfpkg/tui/NCTcpIp.py.stokes 2008-02-26 09:36:17.000000000 -0500 >+++ system-config-network-1.3.99.10/src/netconfpkg/tui/NCTcpIp.py 2008-02-26 09:34:46.000000000 -0500 >@@ -1,5 +1,6 @@ > from snack import * > from rhpl import ethtool >+from netconfpkg.NCProfileList import getProfileList > # > # General TCP/IP > # >@@ -20,6 +21,9 @@ class NCTcpIpDialog: > self.statip=Entry(20,"") > self.netmask=Entry(20,"") > self.gw=Entry(20,"") >+ self.ns=Entry(20,"") >+ self.profilelist = getProfileList() >+ self.active_profile = self.profilelist.getActiveProfile() > > def setState(self, dev=None): > """ >@@ -45,6 +49,7 @@ class NCTcpIpDialog: > self.netmask.set(dev.Netmask) > if dev.Gateway: > self.gw.set(dev.Gateway) >+ self.ns.set(self.active_profile.DNS.PrimaryDNS) > > def useDynamicCheckBox(self): > """ >@@ -56,7 +61,7 @@ class NCTcpIpDialog: > state=FLAGS_SET > else: > state=FLAGS_RESET >- for i in self.statip,self.netmask,self.gw: >+ for i in self.statip,self.netmask,self.gw,self.ns: > i.setFlags(FLAG_DISABLED,state) > > def processInfo(self): >@@ -81,6 +86,11 @@ class NCTcpIpDialog: > pass > else: > self.dev.HardwareAddress = hwaddr >+ >+ if self.ns.value(): >+ self.active_profile.DNS.PrimaryDNS = self.ns.value() >+ self.profilelist.commit() >+ self.profilelist.save() > > def runIt(self, screen): > """ >@@ -88,19 +98,21 @@ class NCTcpIpDialog: > """ > self.screen=screen > g1=Grid(1,1) >- g2=Grid(2,6) >+ g2=Grid(2,7) > g2.setField(Label (_("Name")),0,0,anchorLeft=1) > g2.setField(Label (_("Device")),0,1,anchorLeft=1) > g2.setField(Label (_("Use DHCP")),0,2,anchorLeft=1) > g2.setField(Label (_("Static IP")),0,3,anchorLeft=1) > g2.setField(Label (_("Netmask")),0,4,anchorLeft=1) > g2.setField(Label (_("Default gateway IP")),0,5,anchorLeft=1) >+ g2.setField(Label (_("Primary namserver")),0,6,anchorLeft=1) > g2.setField(self.name,1,0,(1,0,0,0)) > g2.setField(self.hwdev,1,1,(1,0,0,0)) > g2.setField(self.dynip,1,2,(1,0,0,0),anchorLeft=1) > g2.setField(self.statip,1,3,(1,0,0,0)) > g2.setField(self.netmask,1,4,(1,0,0,0)) > g2.setField(self.gw,1,5,(1,0,0,0)) >+ g2.setField(self.ns,1,6,(1,0,0,0)) > self.dynip.setCallback(self.useDynamicCheckBox) > bb=ButtonBar(self.screen,((_("Ok"),"ok"),(_("Cancel"),"cancel"))) > self.setState(self.dev) >@@ -120,3 +132,4 @@ class NCTcpIpDialog: > self.processInfo() > return True > break >+
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 434990
: 295977