Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
2df82b9d
Commit
2df82b9d
authored
Apr 03, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ha fencing panel (dummy for now)
parent
8cd3a74b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
0 deletions
+134
-0
Makefile
www/manager/Makefile
+2
-0
Fencing.js
www/manager/ha/Fencing.js
+47
-0
Groups.js
www/manager/ha/Groups.js
+85
-0
No files found.
www/manager/Makefile
View file @
2df82b9d
...
...
@@ -167,6 +167,8 @@ JSSRC= \
storage/ZFSPoolEdit.js
\
ha/StatusView.js
\
ha/Resources.js
\
ha/Groups.js
\
ha/Fencing.js
\
ha/Config.js
\
dc/Summary.js
\
dc/OptionView.js
\
...
...
www/manager/ha/Fencing.js
0 → 100644
View file @
2df82b9d
Ext
.
define
(
'
PVE.ha.FencingView
'
,
{
extend
:
'
Ext.grid.GridPanel
'
,
alias
:
[
'
widget.pveFencingView
'
],
initComponent
:
function
()
{
var
me
=
this
;
var
store
=
new
Ext
.
data
.
Store
({
model
:
'
pve-ha-fencing
'
,
data
:
[]
});
Ext
.
apply
(
me
,
{
store
:
store
,
stateful
:
false
,
viewConfig
:
{
trackOver
:
false
,
deferEmptyText
:
false
,
emptyText
:
'
Use watchgog based fencing.
'
},
columns
:
[
{
header
:
'
Node
'
,
width
:
100
,
sortable
:
true
,
dataIndex
:
'
node
'
},
{
header
:
gettext
(
'
Command
'
),
flex
:
1
,
dataIndex
:
'
command
'
}
]
});
me
.
callParent
();
}
},
function
()
{
Ext
.
define
(
'
pve-ha-fencing
'
,
{
extend
:
'
Ext.data.Model
'
,
fields
:
[
'
node
'
,
'
command
'
,
'
digest
'
]
});
});
www/manager/ha/Groups.js
0 → 100644
View file @
2df82b9d
Ext
.
define
(
'
PVE.ha.GroupsView
'
,
{
extend
:
'
Ext.grid.GridPanel
'
,
alias
:
[
'
widget.pveHAGroupsView
'
],
initComponent
:
function
()
{
var
me
=
this
;
var
store
=
new
Ext
.
data
.
Store
({
model
:
'
pve-ha-groups
'
,
proxy
:
{
type
:
'
pve
'
,
url
:
"
/api2/json/cluster/ha/groups
"
},
sorters
:
{
property
:
'
group
'
,
order
:
'
DESC
'
}
});
var
reload
=
function
()
{
store
.
load
();
};
var
sm
=
Ext
.
create
(
'
Ext.selection.RowModel
'
,
{});
Ext
.
apply
(
me
,
{
store
:
store
,
selModel
:
sm
,
stateful
:
false
,
viewConfig
:
{
trackOver
:
false
},
columns
:
[
{
header
:
gettext
(
'
Group
'
),
width
:
150
,
sortable
:
true
,
dataIndex
:
'
group
'
},
{
header
:
gettext
(
'
restricted
'
),
width
:
100
,
sortable
:
true
,
renderer
:
PVE
.
Utils
.
format_boolean
,
dataIndex
:
'
restricted
'
},
{
header
:
gettext
(
'
nofailback
'
),
width
:
100
,
sortable
:
true
,
renderer
:
PVE
.
Utils
.
format_boolean
,
dataIndex
:
'
nofailback
'
},
{
header
:
gettext
(
'
Nodes
'
),
width
:
500
,
sortable
:
false
,
dataIndex
:
'
nodes
'
},
{
header
:
gettext
(
'
Description
'
),
flex
:
1
,
dataIndex
:
'
comment
'
}
],
listeners
:
{
show
:
reload
// itemdblclick: run_editor
}
});
me
.
callParent
();
}
},
function
()
{
Ext
.
define
(
'
pve-ha-groups
'
,
{
extend
:
'
Ext.data.Model
'
,
fields
:
[
'
group
'
,
'
type
'
,
'
restricted
'
,
'
digest
'
,
'
nofailback
'
,
'
nodes
'
,
'
comment
'
],
idProperty
:
'
group
'
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment