aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
Commit message (Collapse)AuthorAgeFilesLines
* ifup-post: always update nameserver & search entries in /etc/resolv.confDavid Kaspar [Dee'Kej]2017-10-311-0/+33
| | | | | | | | | | | | | | | | | | | | | | This is complete rework of how we generate the /etc/resolv.conf. Fixes: * always update 'nameserver' & 'search' entries when DNS* & DOMAIN options (respectively) were updated in ifcfg-* files * always update the order of 'nameserver' entries when the order of DNS* options was updated * always keep /etc/resolv.conf.save as a proper backup - do not overwrite it everytime when updating 'nameserver' or 'search' Enhancements: * added support for DNS3 option (equals to MAXNS value in GLIBC) * added logic to process duplicate DNS* options * added logic to process randomly omitted DNS* options (e.g. omitting DNS1 while specifying DNS2 and/or DNS3 will still work now) This work was based on these two RHEL-7.5 BZs: https://bugzilla.redhat.com/show_bug.cgi?id=1364895 https://bugzilla.redhat.com/show_bug.cgi?id=1357658
* init.d/functions: convert2sec() function addedDavid Kaspar [Dee'Kej]2017-08-071-1/+1
| | | | | | | | | | And network-scripts/network-functions was patched to use convert2sec(). This function can be used to convert the value of its first parameter to a number of seconds - based on the time unit (specified as the second parameter). This is mostly useful for converting values for use with the sleep(1).
* Replace /var/run with /run everywhereZbigniew Jędrzejewski-Szmek2017-08-031-2/+2
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1471489
* ARPUPDATE introducedDavid Kaspar [Dee'Kej]2017-07-141-0/+6
| | | | | | | | | The ARPUPDATE option has been introduced. It defaults to 'yes'. By setting the ARPUPDATE to 'no', administrator can disable updating neighbouring computers with ARP information about current NIC. This is especially needed when using LVS Load Balancing with Direct routing enabled.
* Replace usleep(1) calls with sleep(1) callsDavid Kaspar [Dee'Kej]2017-05-251-2/+6
| | | | | The time units had to be manually converted from microseconds to seconds. Hopefully this was done right.
* DHCP_FQDN and DHCP_SEND_HOSTNAME introducedDavid Kaspar [Dee'Kej]2017-05-031-0/+32
| | | | | | | | | | | | | | The way DHCP_HOSTNAME is being sent to DHCP server has been completely reworked... DHCP_FQDN now allows user to specify fully qualified domain name to be sent to DHCP server instead of just using simple hostname. This option takes precedence before DHCP_HOSTNAME variable. DHCP_SEND_HOSTNAME can be used to tell initscripts to not send either DHCP_HOSTNAME or DHCP_FQDN to DHCP server. Both of these options should behave same as they do in NetworkManager.
* re-add missing $HOSTNAME initializationDavid Kaspar [Dee'Kej]2017-04-261-3/+5
|
* network: load NetworkManager connection via dbusPetr Horáček2017-02-141-1/+9
| | | | | Use dbus to refresh configuration files for NetworkManager in order to make ifup and ifdown faster.
* network: check for running NetworkManager via dbusPetr Horáček2017-02-141-1/+5
| | | | Use dbus instead of nmcli to make ifup command faster.
* sysconfig/network: NO_DHCP_HOSTNAME option introducedDavid Kaspar [Dee'Kej]2016-11-161-3/+19
| | | | | | | Previously, some administrators were unable to force initscripts to not obtatin hostname from DHCP, even though they were using static configuration of network. Righ now, setting 'NO_DHCP_HOSTNAME' to 'yes', 'true' or '1' in /etc/sysconfig/network will allow them to do so.
* network-functions: do not send hostname via dhclient everytimeDavid Kaspar [Dee'Kej]2016-11-101-7/+10
|
* [2/3] Remove tabs and fix spacing: network-functionsPhil Dibowitz2016-10-121-284/+289
|
* ifup: don't call nmcli on any lo deviceLukas Nykryn2016-06-161-1/+1
| | | | Resolves: #1336869
* source_config: tell NetworkManger to load ifcfg file even for NM_CONTROLLED=noThomas Haller2016-06-131-4/+6
|
* network-scripts: DEVICE and HWADRR could be quoted by apostropheLukas Nykryn2015-10-271-2/+2
|
* network-functions: fix wireless detectionLukas Nykryn2015-08-061-1/+1
|
* network-functions: fix change_resolv_conf after grep updateLukas Nykryn2015-04-091-4/+4
|
* network-functions: is_available_wait should wait even in the case that ↵Lukas Nykryn2015-01-121-4/+2
| | | | is_available returns 2
* network-functions: fix check in install_bonding_driverLukas Nykryn2015-01-021-1/+1
|
* network-functions: reeplace iwconfig with iwValdis Kletnieks2014-12-101-2/+2
|
* improve_check_for_bond_master_in_install_bonding_driverAshish Samant2014-12-081-2/+14
| | | | | | | | | | | | | | | | | | The current grep check (fgrep -sqx) in install_bonding_driver, to determine whether bond master exists, fails when there are multiple bond masters. The fix assumes that multiple bond masters are on different lines in the file "/sys/class/net/bonding_masters", while they are in fact on the same line. Since fgrep -sqx checks for the entire line,it will never match any one bond master within the line and always fail if there are multiple bonds. This patch improves the check by creating a new function, bond_master_exists() to handle this and other conditions. Orabug: 19897586 Signed-off-by: Ashish Samant <ashish.samant@oracle.com> Signed-off-by: John Haxby <john.haxby@oracle.com> Acked-by: Mukesh Kacker <mukesh.kacker@oracle.com>
* network_function: return immediately when device is presentLukas Nykryn2014-10-071-1/+4
| | | | | Conflicts: sysconfig/network-scripts/network-functions
* add configurable DEVTIMEOUTLukas Nykryn2014-10-071-0/+17
|
* network-functions: grep->fgrep in bonding masters matchingLukas Nykryn2014-09-191-1/+1
|
* network-functions: improve bonding_masters grepLukas Nykryn2014-09-161-1/+1
| | | | kudos to john.haxby@oracle.com
* network-functions: ETHTOOL_DELAY introduction patchLukas Nykryn2014-09-091-0/+1
|
* ifup-wireless: add support for wowlan (second part)Eduardo Minguez2014-09-091-0/+5
|
* network-functions: handle BONDING_OPTS betterJirka Klimes2014-07-241-3/+29
|
* is_nm_handling: fix RELukas Nykryn2014-04-011-1/+1
|
* bonding: match whole name of interfaceLuke Bigum2014-03-311-1/+1
|
* network: try to not compete with NM during bootLukas Nykryn2014-03-111-0/+5
|
* update ifup/ifdown NetworkManager interaction (#1036701, #1061810)Lukas Nykryn2014-02-131-2/+3
|
* update functions who call nmcli (#1002958)Lukas Nykryn2014-01-141-2/+2
|
* install_bonding_driver: drop check for existing device (#991335)Lukas Nykryn2013-08-051-1/+0
| | | | | Install_bonding_driver is now doing more that loading kernel driver, so that check is not correct.
* network-functions: to determine state of nscd check socket not lock (#960779)Lukas Nykryn2013-05-221-1/+1
|
* add ipip6 tunneling support (#928232, raorn@raorn.name)Lukas Nykryn2013-03-271-1/+1
|
* Fix greps to correctly handle comments and quotationLukas Nykryn2013-02-261-1/+1
|
* Correctly detect Open vSwitch device typesThomas Graf2013-01-251-0/+3
| | | | | | | | | | | | | ifup-ovs in the openvswitch package uses the types: - OVSBridge - OVSPort - OVSIntPort - OVSBond to configure the various Open vSwitch device types. Automatically detecting these avoids the need to pass in DEVICETYPE=ovs or to name all bridge "ovsN".
* Sets BONDING_OPTS before interface is brougth upLukas Nykryn2013-01-221-1/+33
|
* Revert "Use sysfs rather than iwconfig for wireless check"Bill Nottingham2012-11-121-1/+3
| | | | | This reverts commit af401fb40f6dd5139e8468dfe1bd3dafe40e8e93. upstream removed sysfs wireless. How nice.
* Allow duplicate address dectection to be disabledBenjamin Coddington2012-08-071-0/+7
|
* Handle (improper) quoted HWADDR (#835372)Bill Nottingham2012-06-261-1/+1
|
* check_device_down: Don't bother calling ip to check link state if the device ↵Bill Nottingham2012-05-021-0/+1
| | | | doesn't exist.
* Rename internal tracking variable USE_NM to _use_nm, to more clearly state ↵Bill Nottingham2012-04-301-2/+2
| | | | it's not for configuration use.
* Allow dhclient configuration files for DHCPv6 as well. (#815676)Bill Nottingham2012-04-241-0/+11
|
* Use NetworkManager-compatible lease file names by default.Bill Nottingham2012-03-091-0/+9
|
* Allow non-'-s' options in ETHTOOL_OPTS, and allow multiple option types. ↵Bill Nottingham2011-06-281-1/+15
| | | | (#692410, #693583)
* Ensure DHCP_HOSTNAME is a short hostname, seed it from HOSTNAME if needed. ↵Bill Nottingham2011-05-311-0/+2
| | | | (#697877)
* Override NETMASK from PREFIX where specified (#705367, <mpoole@redhat.com>)Bill Nottingham2011-05-181-0/+5
|
* Fix index handling for expanded configs <jklimes@redhat.com>Bill Nottingham2011-04-121-1/+1
|