Skip to content
Snippets Groups Projects
Commit f30b9017 authored by František Řezníček's avatar František Řezníček
Browse files

fix: further normalization optimization (network entities field revision_number)

parent f628791c
No related branches found
No related tags found
No related merge requests found
Pipeline #638525 passed
...@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.9.4] - 2025-06-14
### Fixed
- Further normalization optimization (network entities field revision_number)
## [1.9.3] - 2025-06-14 ## [1.9.3] - 2025-06-14
### Fixed ### Fixed
- Additional normalization added (networks, ports, resource providers) - Additional normalization added (networks, ports, resource providers)
......
...@@ -68,14 +68,15 @@ for i_file in ${AZ_FILES}; do ...@@ -68,14 +68,15 @@ for i_file in ${AZ_FILES}; do
file_dup_remove "${i_file}" file_dup_remove "${i_file}"
done done
# remove volatile values from routers and ports # remove volatile values from routers, networks and ports
ROUTER_FILES="$(find "${DUMP_ROOTDIR}" -type f -name "*-router.json")" ROUTER_FILES="$(find "${DUMP_ROOTDIR}" -type f -name "*-router.json")"
NETWORK_FILES="$(find "${DUMP_ROOTDIR}" -type f -name "*-network.json")"
PORT_FILES="$(find "${DUMP_ROOTDIR}" -type f -name "*-port.json")" PORT_FILES="$(find "${DUMP_ROOTDIR}" -type f -name "*-port.json")"
ROUTER_PORT_FIELDS_REMOVE_REGEXP="revision_number" RNP_FIELDS_REMOVE_REGEXP="revision_number"
echo -ne "\nRemove volatile fields ${ROUTER_PORT_FIELDS_REMOVE_REGEXP} from routers and ports: " echo -ne "\nRemove volatile fields ${RNP_FIELDS_REMOVE_REGEXP} from routers, networks and ports: "
for i_file in ${ROUTER_FILES} ${PORT_FILES}; do for i_file in ${ROUTER_FILES} ${NETWORK_FILES} ${PORT_FILES}; do
file_dup_create "${i_file}" file_dup_create "${i_file}"
grep -Ev "\"${ROUTER_PORT_FIELDS_REMOVE_REGEXP}\":" "${i_file}.tmp" > "${i_file}" grep -Ev "\"${RNP_FIELDS_REMOVE_REGEXP}\":" "${i_file}.tmp" > "${i_file}"
echo -n $? echo -n $?
file_dup_remove "${i_file}" file_dup_remove "${i_file}"
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment