Enhancement #1883

Base: remove interface rename

Added by Giacomo Sanchietti over 8 years ago. Updated about 8 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-base
Target version:v6.4-beta1
Resolution: NEEDINFO:

Description

Renaming is interface is dangerous and can cause problems.

Remove code for interface renaming from interface-update event and test bootstrp-console and network configuration from ui.

configure.pm.patch Magnifier - Assign green role when one NIC only is installed (463 Bytes) Davide Principi, 05/02/2013 12:49 PM


Related issues

Related to NethServer 6 - Feature #1765: Gateway and Firewall mode CLOSED

Associated revisions

Revision 767daf9b
Added by Giacomo Sanchietti over 8 years ago

Remove code for interface rename. Refs #1883

Revision 9b2a5ea5
Added by Giacomo Sanchietti over 8 years ago

dnsmasq.conf template: fix green device name handling. Refs #1883

Revision 9825cb57
Added by Davide Principi over 8 years ago

console/configure.pm: assign green role when one NIC only is installed. Refs #1883

History

#1 Updated by Giacomo Sanchietti over 8 years ago

  • Status changed from NEW to ON_DEV
  • % Done changed from 0 to 30

#2 Updated by Giacomo Sanchietti over 8 years ago

  • Status changed from ON_DEV to ON_QA
  • % Done changed from 30 to 80

#3 Updated by Giacomo Sanchietti over 8 years ago

  • Status changed from ON_QA to MODIFIED
  • % Done changed from 80 to 100

To update an existing installation:

sed -i 's/device|green/device|eth0/g' /var/lib/nethserver/db/networks
sed -i 's/green=/eth0=/g' /var/lib/nethserver/db/networks
rm -rf /etc/udev/rules.d/80-persistent-net.rules
mv /etc/sysconfig/network-scripts/ifcfg-green /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i 's/green/eth0/g' /etc/sysconfig/network-scripts/ifcfg-eth0
reboot
signal-event interface-update
expand-template /etc/dnsmasq.conf
service dnsmasq restart

#4 Updated by Davide Principi over 8 years ago

  • File configure.pm.patchMagnifier added
  • Status changed from MODIFIED to ON_DEV
  • % Done changed from 100 to 30

When only one NIC is present, the prop role=green is not set by bootstrap-console. This causes the following failure

localhost console: Can't call method "key" on an undefined value at /usr/share/perl5/vendor_perl/esmith/console/configure.pm line 294

Attached patch fixes the problem.

#5 Updated by Davide Principi over 8 years ago

  • Status changed from ON_DEV to ON_QA
  • % Done changed from 30 to 80

In nethserver-base-1.2.1-1.ns6.noarch.rpm (repo nethserver-updates)

#6 Updated by Davide Principi about 8 years ago

  • Status changed from ON_QA to MODIFIED
  • % Done changed from 80 to 100

#7 Updated by Davide Principi about 8 years ago

  • Status changed from MODIFIED to CLOSED

Also available in: Atom PDF