Feature #1081

Colored net interfaces

Added by Davide Principi over 9 years ago. Updated over 8 years ago.

Status:CLOSEDStart date:05/28/2012
Priority:HighDue date:11/19/2012
Assignee:-% Done:

100%

Category:nethserver-base
Target version:NSA1
Resolution: NEEDINFO:

Description

DBF05 Re-design configuration database {Internal,External}Interface keys => green, red, blue...


Related issues

Related to NethServer 6 - Task #1532: Merge NetworksDB and InterfacesDB CLOSED 10/30/2012 10/31/2012

Associated revisions

Revision d836c713
Added by Davide Principi almost 9 years ago

network-config-restart action: removed extra "dev" parameter to `ip` command. Refs #1081 -- Colored net interfaces

Revision 1c6d6b04
Added by Davide Principi almost 9 years ago

network-config-restart action: ensure MAC address is uppercase. Stop network at first, to bring down dhclient. Check commands exit code. Refs #1081

Added executable flag to network-config-* actions.

Revision 75a4d215
Added by Davide Principi almost 9 years ago

sshd_config: get LocalIP from InterfacesDB. Refs #1081 -- Colored net interfaces

Revision 21906216
Added by Davide Principi over 8 years ago

ConfigDB.pm (wins_server): obsolete function returns always undef to respect package dependencies. InternalInterface prop no longer exists and smb key is owned by nethserver-samba package. Refs #7, #1081

History

#1 Updated by Davide Principi over 9 years ago

  • Description updated (diff)

#2 Updated by Davide Principi about 9 years ago

  • Project changed from NethServer 6 to 1

#3 Updated by Davide Principi about 9 years ago

  • Assignee set to Giacomo Sanchietti
  • Start date set to 05/28/2012

#4 Updated by Giacomo Sanchietti almost 9 years ago

Database: network_interfaces

Each entry describe a network interface according to CentOS/RHEL specification for network-scripts files:

<device_name> = type
     role = <role>
    <param> = <value>

<type> is the type of inteface. Valid values are: <device_name> is the name for the device:
  • if the device is a physical ethernet device, the name will start with the role name followed by an optional ordering number. Eg: green, orange, red1, red2, ecc
  • if the device is a logical device, name will be the standard one for the specific function. Eg: bond0, br0, br1, ecc

All ethernet devices are renamed using udev rules like (/etc/udev/rules.d/70-persistent-net.rules):

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:de:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="green" 

<role> is a mandatory parameter which describe the interface role. Valid values are:
  • green: local network, all services are exposed on this interface by default
  • orange: DMS network
  • blue: guest network
  • red: external network, usually Internet
  • yellow: reserved for private network (eg. cluster)
  • empty: ethernet not assigned
All <param>/<value> are all valid CentOS network parameter for the specified interface. All parameter must be lowercase. Eg:
  • ippaddr
  • hwaddr
  • dhcp_hostname
  • netmask
  • slave
  • ...

All parameters will be mapped 1-to-1 to the configuration file

#5 Updated by Giacomo Sanchietti almost 9 years ago

  • Status changed from NEW to ON_DEV

#7 Updated by Davide Principi almost 9 years ago

  • Priority changed from Normal to High

#8 Updated by Davide Principi over 8 years ago

  • Due date set to 11/19/2012
  • Status changed from ON_DEV to CLOSED
  • % Done changed from 0 to 100

Giacomo Sanchietti wrote:

Database: network_interfaces

Database: networks (#1532)

#9 Updated by Davide Principi over 8 years ago

  • Project changed from 1 to NethServer 6

Also available in: Atom PDF