From 8a98235b5d7f19a0f90cbd536097b3aef0ea29d7 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 12 Jun 2021 13:17:13 +0200 Subject: wwan: T3620: rename "wirelessmodem wlm" interfaces to new wwan interface tree (cherry picked from commit c2a1c071e7d0a9ca754d7f5016eed7db188b3d1a) --- op-mode-definitions/connect.xml.in | 2 +- op-mode-definitions/disconnect.xml.in | 2 +- .../show-interfaces-wirelessmodem.xml.in | 51 ---------- op-mode-definitions/show-interfaces-wwan.xml.in | 103 +++++++++++++++++++++ 4 files changed, 105 insertions(+), 53 deletions(-) delete mode 100644 op-mode-definitions/show-interfaces-wirelessmodem.xml.in create mode 100644 op-mode-definitions/show-interfaces-wwan.xml.in (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/connect.xml.in b/op-mode-definitions/connect.xml.in index 1ec62949a..8f19eac70 100644 --- a/op-mode-definitions/connect.xml.in +++ b/op-mode-definitions/connect.xml.in @@ -19,7 +19,7 @@ Bring up a connection-oriented network interface interfaces pppoe - interfaces wirelessmodem + interfaces wwan sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3" diff --git a/op-mode-definitions/disconnect.xml.in b/op-mode-definitions/disconnect.xml.in index bf2c37b89..4415c0ed2 100644 --- a/op-mode-definitions/disconnect.xml.in +++ b/op-mode-definitions/disconnect.xml.in @@ -10,7 +10,7 @@ Take down a connection-oriented network interface interfaces pppoe - interfaces wirelessmodem + interfaces wwan sudo ${vyos_op_scripts_dir}/connect_disconnect.py --disconnect "$3" diff --git a/op-mode-definitions/show-interfaces-wirelessmodem.xml.in b/op-mode-definitions/show-interfaces-wirelessmodem.xml.in deleted file mode 100644 index 18b1e55c7..000000000 --- a/op-mode-definitions/show-interfaces-wirelessmodem.xml.in +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - Show Wireless Modem (WWAN) interface information - - interfaces wirelessmodem - - - ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" - - - - Show specified WWAN interface log - - /usr/bin/journalctl --unit "ppp@$4".service - - - - Show specified WWAN interface statistics - - interfaces wirelessmodem - - - if [ -d "/sys/class/net/$4" ]; then /usr/sbin/pppstats "$4"; fi - - - - - - Show Wireless Modem (WWAN) interface information - - ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wirelessmodem --action=show-brief - - - - Show detailed Wireless Modem (WWAN( interface information - - ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wirelessmodem --action=show - - - - - - - - diff --git a/op-mode-definitions/show-interfaces-wwan.xml.in b/op-mode-definitions/show-interfaces-wwan.xml.in new file mode 100644 index 000000000..d57e17a13 --- /dev/null +++ b/op-mode-definitions/show-interfaces-wwan.xml.in @@ -0,0 +1,103 @@ + + + + + + + + + Show Wireless Wire Area Network (WWAN) interface information + + interfaces wwan + + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show WWAN module capabilities + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --capabilities + + + + Show WWAN module firmware + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --firmware + + + + Show WWAN module IMEI/ESN/MEID + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --imei + + + + Show WWAN module IMSI + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --imsi + + + + Show WWAN module manufacturer + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --model + + + + Show WWAN module MSISDN + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --msisdn + + + + Show WWAN module revision + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --revision + + + + Show WWAN module RF signal info + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --signal + + + + Show WWAN module connected SIM card information + + sudo ${vyos_op_scripts_dir}/show_wwan.py --interface=$4 --sim + + + + Show WWAN module information summary + + mmcli --modem ${4#wwan} + + + + Show interface log for specified interface + + echo not implemented + + + + + + Show Wireless Modem (WWAN) interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wirelessmodem --action=show-brief + + + + Show detailed Wireless Modem (WWAN( interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wirelessmodem --action=show + + + + + + + + -- cgit v1.2.3