mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Document ifreload new option + add it into init.d networking script
Ticket: Reviewed By: trivial Testing Done: Tested build/install/boot + ifupdown2 sanity
This commit is contained in:
@@ -166,12 +166,21 @@ reload)
|
|||||||
log_action_end_msg $?
|
log_action_end_msg $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
reload-currently-up)
|
||||||
|
|
||||||
|
ifupdown_init
|
||||||
|
log_action_begin_msg "Reloading currently up network interfaces configuration"
|
||||||
|
|
||||||
|
ifreload --currently-up $EXTRA_ARGS
|
||||||
|
log_action_end_msg $?
|
||||||
|
;;
|
||||||
|
|
||||||
force-reload)
|
force-reload)
|
||||||
|
|
||||||
ifupdown_init
|
ifupdown_init
|
||||||
|
|
||||||
log_action_begin_msg "Reloading network interfaces configuration"
|
log_action_begin_msg "Reloading network interfaces configuration"
|
||||||
ifreload -a
|
ifreload -f -a $EXTRA_ARGS
|
||||||
log_action_end_msg $?
|
log_action_end_msg $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@ reload network interface configuration
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
========
|
========
|
||||||
ifreload [-h] -a [-v] [-d] [-f] [-n]
|
ifreload [-h] (-a|-c) [-v] [-d] [-f] [-n]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
===========
|
===========
|
||||||
@@ -27,6 +27,10 @@ DESCRIPTION
|
|||||||
but it skips **ifdown** for interfaces that did not change in the config
|
but it skips **ifdown** for interfaces that did not change in the config
|
||||||
file.
|
file.
|
||||||
|
|
||||||
|
If you do not wish to execute **down** on any interfaces, but only **up** on
|
||||||
|
interfaces that were already **up**, please see the **--currently-up**
|
||||||
|
option below.
|
||||||
|
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
=======
|
=======
|
||||||
@@ -40,6 +44,11 @@ OPTIONS
|
|||||||
|
|
||||||
-f, --force force run all operations
|
-f, --force force run all operations
|
||||||
|
|
||||||
|
-c, --currently-up only reload auto and other interfaces that are
|
||||||
|
currently up. This can be used as a non-disruptive
|
||||||
|
alternative to -a because it will not down any
|
||||||
|
interfaces
|
||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
========
|
========
|
||||||
# reload all auto interfaces in **interfaces(5)** file
|
# reload all auto interfaces in **interfaces(5)** file
|
||||||
@@ -50,6 +59,10 @@ EXAMPLES
|
|||||||
|
|
||||||
**service networking reload**
|
**service networking reload**
|
||||||
|
|
||||||
|
# reload all currently up interfaces without bringing any interfaces down
|
||||||
|
|
||||||
|
**service networking reload-currently-up**
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
========
|
========
|
||||||
ifup(8),
|
ifup(8),
|
||||||
|
@@ -353,6 +353,9 @@ def update_ifreload_argparser(argparser):
|
|||||||
argparser.add_argument('-l', '--syslog', dest='syslog',
|
argparser.add_argument('-l', '--syslog', dest='syslog',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help=argparse.SUPPRESS)
|
help=argparse.SUPPRESS)
|
||||||
|
argparser.add_argument('-f', '--force', dest='force',
|
||||||
|
action='store_true',
|
||||||
|
help='force run all operations')
|
||||||
|
|
||||||
def parse_args(argsv, op):
|
def parse_args(argsv, op):
|
||||||
if op == 'query':
|
if op == 'query':
|
||||||
|
Reference in New Issue
Block a user