Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
itminedu
snf-ganeti
Commits
b2999982
Commit
b2999982
authored
15 years ago
by
Iustin Pop
Browse files
Options
Downloads
Patches
Plain Diff
Add a new node list field
This patch adds a new node list field (ptags), showing the primary instance tags.
parent
0f15cc76
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Ganeti/HTools/Node.hs
+3
-0
3 additions, 0 deletions
Ganeti/HTools/Node.hs
with
3 additions
and
0 deletions
Ganeti/HTools/Node.hs
+
3
−
0
View file @
b2999982
...
...
@@ -412,6 +412,8 @@ showField t field =
"mload"
->
printf
"%5.3f"
uM
"dload"
->
printf
"%5.3f"
uD
"nload"
->
printf
"%5.3f"
uN
"ptags"
->
intercalate
","
.
map
(
\
(
k
,
v
)
->
printf
"%s=%d"
k
v
)
.
Map
.
toList
$
pTags
t
_
->
printf
"<unknown field>"
where
T
.
DynUtil
{
T
.
cpuWeight
=
uC
,
T
.
memWeight
=
uM
,
...
...
@@ -444,6 +446,7 @@ showHeader field =
"mload"
->
(
"lMem"
,
True
)
"dload"
->
(
"lDsk"
,
True
)
"nload"
->
(
"lNet"
,
True
)
"ptags"
->
(
"PrimaryTags"
,
False
)
_
->
(
"<unknown field>"
,
False
)
-- | String converter for the node list functionality.
...
...
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