aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
Commit message (Collapse)AuthorAgeFilesLines
* Add option for IPv6 GRE tunnel.Jan Macku2019-08-191-1/+1
| | | Resolve: BZ #1691552
* network-functions: use tr to upper case strings rather than awkMatteo Croce2018-05-171-3/+3
| | | | | | | | | | | | | | | | | | | | network-functions uses awk to tranform the mac address to upper case. Replace awk with tr which is two order of magnitude faster: $ time awk '{ print toupper($0) }' </usr/share/dict/words >/dev/null real 0m0,227s user 0m0,224s sys 0m0,004s $ time tr '[a-z]' '[A-Z]' </usr/share/dict/words >/dev/null real 0m0,005s user 0m0,000s sys 0m0,005s Also use here-strings instead of spawning a subshell and a pipe. Signed-off-by: Matteo Croce <mcroce@redhat.com>
* network-functions: add error messages for bonding installationDavid Kaspar [Dee'Kej]2018-05-171-5/+17
| | | | | | | | | | | | | Instead of displaying messages without context, like this: ./network-functions: line 571: echo: write error: Invalid argument ./network-functions: line 598: echo: write error: Permission denied We will now display pretty error messages (via net_log) about what has actually failed... This has been requested by our customer: https://bugzilla.redhat.com/show_bug.cgi?id=1542514
* ifup-post: always update nameserver & search entries in /etc/resolv.confDavid Kaspar [Dee'Kej]2017-11-021-0/+29
| | | | | | | | | | | | | | | | | | | | 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 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-10-311-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 usleep(1) calls with sleep(1) callsDavid Kaspar [Dee'Kej]2017-10-311-2/+6
| | | | | The time units had to be manually converted from microseconds to seconds. Hopefully this was done right.
* ARPUPDATE introducedDavid Kaspar [Dee'Kej]2017-10-161-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.
* 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-05-031-3/+5
|
* 9.70-sync: sysconfig/network-scripts/* updated - part 2David Kaspar [Dee'Kej]2017-03-221-287/+323
| | | | | This commit contains a lot of whitespace changes. Use 'git diff --ignore-all-space' to display the relevant changes.
* 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.
* 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
| | | | | Cherry-picked from: 61fb1cb Resolves: #1345919
* network-functions: is_available_wait should wait even in the case that ↵Lukas Nykryn2016-05-261-4/+2
| | | | | | | is_available returns 2 Cherry-picked from: 1f230a3d2e2733e30577c91645005801ab2c0f40 Resolves: #1339648
* network-functions: fix wireless detectionLukas Nykryn2015-08-071-1/+1
|
* network-functions: reeplace iwconfig with iwValdis Kletnieks2015-07-011-2/+2
|
* network-functions: fix check in install_bonding_driverLukas Nykryn2015-05-061-1/+1
|
* network-functions: fix change_resolv_conf after grep updateLukas Nykryn2015-05-061-4/+4
|
* network_function: return immediately when device is presentLukas Nykryn2014-09-231-1/+1
|
* network-functions: grep->fgrep in bonding masters matchingLukas Nykryn2014-09-191-1/+1
|
* is_available_wait: properly propage return value from is_availableLukas Nykryn2014-09-171-1/+4
|
* network-functions: improve bonding_masters grepLukas Nykryn2014-09-161-1/+1
| | | | | | | kudos to john.haxby@oracle.com Conflicts: sysconfig/network-scripts/network-functions
* ifup-wireless: add support for wowlan (second part)Eduardo Minguez2014-09-161-0/+5
|
* network-functions: ETHTOOL_DELAY introduction patchLukas Nykryn2014-09-091-0/+1
|
* network-functions: handle BONDING_OPTS betterJirka Klimes2014-07-241-3/+29
|
* add configurable DEVTIMEOUTLukas Nykryn2014-04-021-0/+17
|
* is_nm_handling: fix RELukas Nykryn2014-04-011-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-121-2/+3
|
* update functions who call nmcli (#1002958)Lukas Nykryn2013-08-301-2/+2
|
* install_bonding_driver: drop check for existing device (#991335)Lukas Nykryn2013-08-191-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
|
* Switch the default logging value to error.Bill Nottingham2011-03-251-2/+2
| | | | It's what's used the most.
* Make net_log()'s output similar to that of the ipv6 logger.Bill Nottingham2011-03-251-1/+16
| | | | This will cause output strings to change, of course, so it's not really appropriate for earlier releases.