Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,14 @@ nmcli connection modify ens2f0 connection.autoconnect yes
nmcli connection delete bond1
```

## Release

1. Run `git tag -s vX.Y.Z -m vX.Y.Z`.
2. Run `git push origin vX.Y.Z` and wait for the Release to be created.
3. Edit the created Release.
4. Press the `Generate release notes` button and edit the release notes.
5. Press the `Update release` button.

## License

MIT
Expand Down
16 changes: 11 additions & 5 deletions nmcli-cli-autoconnect-list
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 all
$0 yes|no or on|off
${COMMAND_NAME} all
${COMMAND_NAME} yes|no or on|off

Examples:
$0 all
$0 yes

${COMMAND_NAME} all
${COMMAND_NAME} yes
_EOF_
}

Expand Down
13 changes: 9 additions & 4 deletions nmcli-cli-autoconnect-set
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -35,19 +36,23 @@ echo_or_execute() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] IF_NAME yes|no or on|off
${COMMAND_NAME} [-n] [-x] IF_NAME yes|no or on|off

Options:
-n No interface check (Default: check interface)
-x Run command (Default: echo only)

Examples:
$0 eno1 off
$0 bond1 on

${COMMAND_NAME} eno1 off
${COMMAND_NAME} bond1 on
_EOF_
}

Expand Down
13 changes: 9 additions & 4 deletions nmcli-cli-bond-add
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -35,19 +36,23 @@ echo_or_execute() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] NEW_BOND_IF_NAME BOND_OPTIONS IF_SLAVE1 IF_SLAVE2 [IF_SLAVE3...]
${COMMAND_NAME} [-n] [-x] NEW_BOND_IF_NAME BOND_OPTIONS IF_SLAVE1 IF_SLAVE2 [IF_SLAVE3...]

Options:
-n No interface check (Default: check interface)
-x Run command (Default: echo only)

Examples:
$0 bond1 mode=active-backup eno1 ens2f0
$0 bond1 mode=802.3ad,miimon=100,updelay=500,xmit_hash_policy=layer2+3 eno1 eno3 ens2f0

${COMMAND_NAME} bond1 mode=active-backup eno1 ens2f0
${COMMAND_NAME} bond1 mode=802.3ad,miimon=100,updelay=500,xmit_hash_policy=layer2+3 eno1 eno3 ens2f0
_EOF_
}

Expand Down
11 changes: 8 additions & 3 deletions nmcli-cli-bond-delete
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -35,18 +36,22 @@ echo_or_execute() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] BOND_IF_NAME
${COMMAND_NAME} [-n] [-x] BOND_IF_NAME

Options:
-n No interface check (Default: check interface)
-x Run command (Default: echo only)

Examples:
$0 bond1

${COMMAND_NAME} bond1
_EOF_
}

Expand Down
13 changes: 9 additions & 4 deletions nmcli-cli-bridge-add
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -35,19 +36,23 @@ echo_or_execute() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] NEW_BRIDGE_IF_NAME IF_SLAVE
${COMMAND_NAME} [-n] [-x] NEW_BRIDGE_IF_NAME IF_SLAVE

Options:
-n No interface check (Default: check interface)
-x Run command (Default: echo only)

Examples:
$0 br1 eno1
$0 br1 bond1

${COMMAND_NAME} br1 eno1
${COMMAND_NAME} br1 bond1
_EOF_
}

Expand Down
11 changes: 8 additions & 3 deletions nmcli-cli-bridge-delete
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -35,18 +36,22 @@ echo_or_execute() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] BRIDGE_NAME
${COMMAND_NAME} [-n] [-x] BRIDGE_NAME

Options:
-n No interface check (Default: check interface)
-x Run command (Default: echo only)

Examples:
$0 br1

${COMMAND_NAME} br1
_EOF_
}

Expand Down
13 changes: 9 additions & 4 deletions nmcli-cli-device-name
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -35,19 +36,23 @@ echo_or_execute() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] DEVICE [NEW_IF_NAME]
${COMMAND_NAME} [-n] [-x] DEVICE [NEW_IF_NAME]

Options:
-n No interface check (Default: check interface)
-x Run command (Default: echo only)

Examples:
$0 eno1
$0 eno1 "New Name 1"

${COMMAND_NAME} eno1
${COMMAND_NAME} eno1 "New Name 1"
_EOF_
}

Expand Down
21 changes: 13 additions & 8 deletions nmcli-cli-ipv4
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -35,11 +36,16 @@ echo_or_execute() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] NAME dhcp|disable
$0 [-n] [-x] NAME static IP_SUBNET [GATEWAY] [DNS]
${COMMAND_NAME} [-n] [-x] NAME dhcp|disable
${COMMAND_NAME} [-n] [-x] NAME static IP_SUBNET [GATEWAY] [DNS]

Options:
-n No interface check (Default: check interface)
Expand All @@ -51,12 +57,11 @@ Usage:
The first IP_SUBNET is the primary IP address.

Examples:
$0 eno1 dhcp
$0 eno1 static 192.168.1.101/24 192.168.1.1 192.168.1.1,10.0.0.2
$0 eno1 static 192.168.1.101/24
$0 eno1 static 192.168.1.101/24,10.0.0.201/23
$0 eno1 disable

${COMMAND_NAME} eno1 dhcp
${COMMAND_NAME} eno1 static 192.168.1.101/24 192.168.1.1 192.168.1.1,10.0.0.2
${COMMAND_NAME} eno1 static 192.168.1.101/24
${COMMAND_NAME} eno1 static 192.168.1.101/24,10.0.0.201/23
${COMMAND_NAME} eno1 disable
_EOF_
}

Expand Down
17 changes: 11 additions & 6 deletions nmcli-cli-ipv4-copy
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -43,21 +44,25 @@ nmcli_value() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] SRC_IF_NAME DEST_IF_NAME
${COMMAND_NAME} [-n] [-x] SRC_IF_NAME DEST_IF_NAME

Options:
-n No interface check (Default: check interface)
-x Run command (Default: echo only)

Examples:
$0 eno1 bond1
$0 bond1 br1
$0 eno1 bond1 (copy primary and secondary addresses)
$0 eno1 (show current configuration)

${COMMAND_NAME} eno1 bond1
${COMMAND_NAME} bond1 br1
${COMMAND_NAME} eno1 bond1 (copy primary and secondary addresses)
${COMMAND_NAME} eno1 (show current configuration)
_EOF_
}

Expand Down
25 changes: 15 additions & 10 deletions nmcli-cli-ipv6
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php

VERSION="1.2.0"
ECHO_OR_EXECUTE="echo"

print_command() {
Expand Down Expand Up @@ -35,11 +36,16 @@ echo_or_execute() {
}

usage() {
local COMMAND_NAME
COMMAND_NAME="$(basename "${0}")"

cat << _EOF_
${COMMAND_NAME} ${VERSION}

Usage:

$0 [-n] [-x] NAME auto|dhcp|link-local|disable|ignore
$0 [-n] [-x] NAME static|manual IP_SUBNET [GATEWAY] [DNS]
${COMMAND_NAME} [-n] [-x] NAME auto|dhcp|link-local|disable|ignore
${COMMAND_NAME} [-n] [-x] NAME static|manual IP_SUBNET [GATEWAY] [DNS]

Options:
-n No interface check (Default: check interface)
Expand All @@ -51,14 +57,13 @@ Usage:
The first IP_SUBNET is the primary IP address.

Examples:
$0 eno1 auto
$0 eno1 dhcp
$0 eno1 static 2001:db8:1::101/48 2001:db8:1::1 2001:db8:1::1,2001:db8:1::2
$0 eno1 static 2001:db8:1::101/48
$0 eno1 static 2001:db8:1::101/48,2001:db8:2::201/64
$0 eno1 link-local
$0 eno1 disable

${COMMAND_NAME} eno1 auto
${COMMAND_NAME} eno1 dhcp
${COMMAND_NAME} eno1 static 2001:db8:1::101/48 2001:db8:1::1 2001:db8:1::1,2001:db8:1::2
${COMMAND_NAME} eno1 static 2001:db8:1::101/48
${COMMAND_NAME} eno1 static 2001:db8:1::101/48,2001:db8:2::201/64
${COMMAND_NAME} eno1 link-local
${COMMAND_NAME} eno1 disable
_EOF_
}

Expand Down
Loading