]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/network
man: Convert network-zone(8) to asciidoc
[people/ms/network.git] / src / network
index 506b1e0422d1ce1184aa42ec0117c4e053b95e17..be06d8a28be24be64384e75b11beb2432c416d02 100644 (file)
@@ -251,35 +251,6 @@ cli_device_status_serial() {
        fi
 }
 
-cli_device_status_phy() {
-       local phy="${1}"
-       assert phy_exists "${phy}"
-
-       local address="$(phy_get_address "${phy}")"
-       cli_print_fmt1 1 "Address" "${address}"
-
-       # Show kernel module
-       local driver="$(phy_get_driver "${phy}")"
-       if isset driver; then
-               cli_print_fmt1 1 "Driver" "${driver}"
-       fi
-
-       cli_space
-
-       local devices="$(phy_get_devices "${phy}")"
-       if isset devices; then
-               cli_headline 2 "Soft interfaces"
-
-               local device
-               for device in ${devices}; do
-                       cli_print 2 "* %s" "${device}"
-               done
-               cli_space
-       fi
-
-       return ${EXIT_OK}
-}
-
 cli_device_discover() {
        local device=${1}
        shift
@@ -1209,12 +1180,12 @@ cli_reset() {
        done
 
        local zone
-       for zone in $(zones_get --all); do
+       for zone in $(zones_get_all); do
                zone_destroy "${zone}"
        done
 
        local port
-       for port in $(ports_get --all); do
+       for port in $(ports_get_all); do
                port_destroy "${port}"
        done
 
@@ -1410,6 +1381,9 @@ case "${action}" in
                # Update resolv.conf(5) when initializing the network
                dns_generate_resolvconf
 
+               # Make sure bird is running
+               bird_enable
+
                # Also execute all triggers
                triggers_execute_all "init"
                ;;