summaryrefslogtreecommitdiff
path: root/src/migration-scripts/system/16-to-17
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-08 22:43:23 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-09 21:00:39 +0200
commit7b565f0bcc0dcfc7aa95cdbbb63264f5ba41456e (patch)
tree3fbcece90ca9a8c037af004d98ddbc3990e9c528 /src/migration-scripts/system/16-to-17
parent0ce5f5e7c2173b605125136dbfd20d10f5c32cac (diff)
downloadvyos-1x-7b565f0bcc0dcfc7aa95cdbbb63264f5ba41456e.tar.gz
vyos-1x-7b565f0bcc0dcfc7aa95cdbbb63264f5ba41456e.zip
console: T2570: remove support for Hayes Modems
Support for Hayes modems has been long gone (1.2.x) and nobody cared. It was removed in commit d582bbaf3 ("update console settings for systemd") of vyatta-cfg-system. So as there have been zero complaints - cleanup the CLI.
Diffstat (limited to 'src/migration-scripts/system/16-to-17')
-rwxr-xr-xsrc/migration-scripts/system/16-to-177
1 files changed, 7 insertions, 0 deletions
diff --git a/src/migration-scripts/system/16-to-17 b/src/migration-scripts/system/16-to-17
index 34ce5a71d..ca3b10f49 100755
--- a/src/migration-scripts/system/16-to-17
+++ b/src/migration-scripts/system/16-to-17
@@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# remove "system console netconsole"
+# remove "system console device <device> modem"
import os
import sys
@@ -40,6 +41,12 @@ else:
if config.exists(base + ['netconsole']):
config.delete(base + ['netconsole'])
+ for device in config.list_nodes(base + ['device']):
+ dev_path = base + ['device', device]
+ # remove "system console device <device> modem" (T2570)
+ if config.exists(dev_path + ['modem']):
+ config.delete(dev_path + ['modem'])
+
try:
with open(file_name, 'w') as f:
f.write(config.to_string())