vagrant/plugins/guests/redhat/cap
Michaël Faille 96611341a9 Revert "Fix `service network restart` on RHEL-7 / Fedora"
`/etc/init.d/network restart` already restart NM and shutdown interfaces.

In start() :
```
        if [ "$(LANG=C nmcli -t --fields running general status 2>/dev/null)" = "running" ]; then
                nmcli connection reload
        fi

```

In stop() :

```
       for i in $vpninterfaces $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
                unset DEVICE TYPE
                (. ./ifcfg-$i
                if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

                if ! check_device_down $DEVICE; then
                   action $"Shutting down interface $i: " ./ifdown $i boot
                   [ $? -ne 0 ] && rc=1
                fi
                )
        done
```
Where $remaining include all "others" interfaces including eth*

This reverts commit 166d10d4e1.
2016-12-21 20:33:57 -05:00
..
change_host_name.rb Revert "Fix `service network restart` on RHEL-7 / Fedora" 2016-12-21 20:33:57 -05:00
configure_networks.rb Revert "Fix `service network restart` on RHEL-7 / Fedora" 2016-12-21 20:33:57 -05:00
flavor.rb Add Virtuozzo Linux 7 to list of RHEL flavors 2016-09-23 10:45:16 +02:00
network_scripts_dir.rb Lots more guest capabilities converted 2013-04-04 12:09:40 -07:00
nfs_client.rb guests/redhat: Configure NFS in one command 2016-06-06 11:58:38 -04:00
rsync.rb guests/redhat: Install RedHat in one command 2016-06-06 11:58:39 -04:00