Migrate configuration for etherlike

Migrate infix-if-type:etherlike in configuration to infix-if-type:ethernet
This commit is contained in:
Mattias Walström
2025-02-14 09:52:37 +01:00
parent b290e44318
commit 31d0f79a10
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Rename interface type etherlike => ethernet
#
file=$1
temp=${file}.tmp
jq '(.["ietf-interfaces:interfaces"].interface[] | select(.type == "infix-if-type:etherlike") .type) |= "infix-if-type:ethernet"' "$file" > "$temp" &&
mv "$temp" "$file"
+1 -1
View File
@@ -1,2 +1,2 @@
migratedir = $(pkgdatadir)/migrate/1.5
dist_migrate_DATA = 10-change-key-types.sh
dist_migrate_DATA = 10-change-key-types.sh 11-rename-etherlike.sh