Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
infrastructure-entity-exporter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud
infrastructure-entity-exporter
Commits
f30b9017
Commit
f30b9017
authored
4 weeks ago
by
František Řezníček
Browse files
Options
Downloads
Patches
Plain Diff
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
4 weeks ago
Stage: env-setup
Stage: build-image
Stage: release-image
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/ostack-entity-normalize.sh
+6
-5
6 additions, 5 deletions
src/ostack-entity-normalize.sh
with
10 additions
and
5 deletions
CHANGELOG.md
+
4
−
0
View file @
f30b9017
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
src/ostack-entity-normalize.sh
+
6
−
5
View file @
f30b9017
...
@@ -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"
)
"
R
OUTER_PORT
_FIELDS_REMOVE_REGEXP
=
"revision_number"
R
NP
_FIELDS_REMOVE_REGEXP
=
"revision_number"
echo
-ne
"
\n
Remove volatile fields
${
R
OUTER_PORT
_FIELDS_REMOVE_REGEXP
}
from routers and ports: "
echo
-ne
"
\n
Remove volatile fields
${
R
NP
_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
"
\"
${
R
OUTER_PORT
_FIELDS_REMOVE_REGEXP
}
\"
:"
"
${
i_file
}
.tmp"
>
"
${
i_file
}
"
grep
-Ev
"
\"
${
R
NP
_FIELDS_REMOVE_REGEXP
}
\"
:"
"
${
i_file
}
.tmp"
>
"
${
i_file
}
"
echo
-n
$?
echo
-n
$?
file_dup_remove
"
${
i_file
}
"
file_dup_remove
"
${
i_file
}
"
done
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment