From: Beniamino Galvani Date: Sat, 26 Mar 2016 09:19:25 +0000 (+0100) Subject: man: use replace with X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=NetworkManager.git;a=commitdiff_plain;h=f67bf52046c249117040c530c837b5da2c027437 man: use replace with It makes more sense and actually looks good in rendered HTML. [lkundrak@v3.sk: wrote the commit message] --- diff --git a/man/nmcli-examples.xml b/man/nmcli-examples.xml index 4f5f22f60..0ce7dc72c 100644 --- a/man/nmcli-examples.xml +++ b/man/nmcli-examples.xml @@ -143,9 +143,9 @@ org.freedesktop.NetworkManager.settings.modify.hostname auth by a system administrator and are not meant to be changed by users. The usual place for the polkit configuration is /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy. pkaction command can display description for polkit actions. - - pkaction --action-id org.freedesktop.NetworkManager.network-control --verbose - + +pkaction --action-id org.freedesktop.NetworkManager.network-control --verbose + More information about polkit can be found at http://www.freedesktop.org/wiki/Software/polkit. @@ -176,11 +176,11 @@ $ nmcli g log level INFO domains DEFAULT Adding a bonding master and two slave connection profiles - + $ nmcli con add type bond ifname mybond0 mode active-backup $ nmcli con add type ethernet ifname eth1 master mybond0 $ nmcli con add type ethernet ifname eth2 master mybond0 - + This example demonstrates adding a bond master connection and two slaves. The @@ -192,11 +192,11 @@ $ nmcli con add type ethernet ifname eth2 master mybond0 Adding a team master and two slave connection profiles - + $ nmcli con add type team con-name Team1 ifname Team1 config team1-master-json.conf $ nmcli con add type ethernet con-name Team1-slave1 ifname em1 master Team1 $ nmcli con add type ethernet con-name Team1-slave2 ifname em2 master Team1 - + This example demonstrates adding a team master connection profile and two slaves. It is @@ -210,22 +210,22 @@ $ nmcli con add type ethernet con-name Team1-slave2 ifname em2 master Team1 em2. The slaves don't specify config and thus teamd will use its default configuration. You will activate the whole setup by activating both slaves: - + $ nmcli con up Team1-slave1 $ nmcli con up Team1-slave2 - + By default, the created profiles are marked for auto-activation. But if another connection has been activated on the device, the new profile won't activate automatically and you need to activate it manually. Adding a bridge and two slave profiles - + $ nmcli con add type bridge con-name TowerBridge ifname TowerBridge $ nmcli con add type ethernet con-name br-slave-1 ifname ens3 master TowerBridge $ nmcli con add type ethernet con-name br-slave-2 ifname ens4 master TowerBridge $ nmcli con modify TowerBridge bridge.stp no - + This example demonstrates adding a bridge master connection and two slaves. The @@ -239,7 +239,7 @@ $ nmcli con modify TowerBridge bridge.stp no Adding an ethernet connection profile with manual IP configuration - + $ nmcli con add con-name my-con-em1 ifname em1 type ethernet ip4 192.168.100.100/24 gw4 192.168.100.1 ip4 1.2.3.4 ip6 abbe::cafe $ nmcli con mod my-con-em1 ipv4.dns "8.8.8.8 8.8.4.4" @@ -247,7 +247,7 @@ $ nmcli con mod my-con-em1 +ipv4.dns 1.2.3.4 $ nmcli con mod my-con-em1 ipv6.dns "2001:4860:4860::8888 2001:4860:4860::8844" $ nmcli -p con show my-con-em1 - + The first command adds an Ethernet connection profile named my-con-em1 @@ -263,11 +263,11 @@ $ nmcli -p con show my-con-em1 Escaping colon characters in tabular mode - + $ nmcli -t -f general -e yes -m tab dev show eth0 - + GENERAL:eth0:ethernet:Intel Corporation:82567LM Gigabit Network Connection:e1000e:2.1.4-k:1.8-3:00\:22\:68\:15\:29\:21:1500:100 (connected):0 (No reason given):/sys/devices/pci0000\:00/0000\:00\:19.0/net/eth0:eth0:yes:yes:no:ethernet-13:89cbcbc6-dc85-456c-9c8b-bd828fee3917:/org/freedesktop/NetworkManager/ActiveConnection/9 @@ -316,11 +316,11 @@ fi Example sessions of interactive connection editor Adding an ethernet connection profile in interactive editor (a) - + $ nmcli connection edit type ethernet - + ===| nmcli interactive connection editor |===