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
7f9f949c
Commit
7f9f949c
authored
Jul 03, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy panel/Firewall.js from manager to manager5
parent
bb616ead
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
97 additions
and
0 deletions
+97
-0
Firewall.js
www/manager5/panel/Firewall.js
+97
-0
No files found.
www/manager5/panel/Firewall.js
0 → 100644
View file @
7f9f949c
Ext
.
define
(
'
PVE.panel.Firewall
'
,
{
extend
:
'
PVE.panel.SubConfig
'
,
alias
:
'
widget.pveFirewallPanel
'
,
configPrefix
:
'
firewall
'
,
fwtype
:
undefined
,
// 'dc', 'node' or 'vm'
base_url
:
undefined
,
initComponent
:
function
()
{
/*jslint confusion: true */
var
me
=
this
;
if
(
!
me
.
base_url
)
{
throw
"
no base_url specified
"
;
}
if
(
!
(
me
.
fwtype
===
'
dc
'
||
me
.
fwtype
===
'
node
'
||
me
.
fwtype
===
'
vm
'
))
{
throw
"
unknown firewall panel type
"
;
}
var
list_refs_url
=
me
.
fwtype
===
'
vm
'
?
(
me
.
base_url
+
'
/refs
'
)
:
'
/cluster/firewall/refs
'
;
var
items
=
[
{
xtype
:
'
pveFirewallRules
'
,
title
:
gettext
(
'
Rules
'
),
allow_iface
:
true
,
base_url
:
me
.
base_url
+
'
/rules
'
,
list_refs_url
:
list_refs_url
,
itemId
:
'
rules
'
}
];
if
(
me
.
fwtype
===
'
dc
'
)
{
items
.
push
({
xtype
:
'
pveSecurityGroups
'
,
title
:
gettext
(
'
Security Group
'
),
itemId
:
'
sg
'
});
items
.
push
({
xtype
:
'
pveFirewallAliases
'
,
base_url
:
'
/cluster/firewall/aliases
'
,
itemId
:
'
aliases
'
});
items
.
push
({
xtype
:
'
pveIPSet
'
,
base_url
:
'
/cluster/firewall/ipset
'
,
list_refs_url
:
list_refs_url
,
itemId
:
'
ipset
'
});
}
if
(
me
.
fwtype
===
'
vm
'
)
{
items
.
push
({
xtype
:
'
pveFirewallAliases
'
,
base_url
:
me
.
base_url
+
'
/aliases
'
,
itemId
:
'
aliases
'
});
items
.
push
({
xtype
:
'
pveIPSet
'
,
base_url
:
me
.
base_url
+
'
/ipset
'
,
list_refs_url
:
list_refs_url
,
itemId
:
'
ipset
'
});
}
items
.
push
({
xtype
:
'
pveFirewallOptions
'
,
title
:
gettext
(
'
Options
'
),
base_url
:
me
.
base_url
+
'
/options
'
,
fwtype
:
me
.
fwtype
,
itemId
:
'
options
'
});
if
(
me
.
fwtype
!==
'
dc
'
)
{
items
.
push
({
title
:
'
Log
'
,
itemId
:
'
fwlog
'
,
xtype
:
'
pveLogView
'
,
url
:
'
/api2/extjs
'
+
me
.
base_url
+
'
/log
'
});
}
Ext
.
apply
(
me
,
{
defaults
:
{
border
:
false
,
pveSelNode
:
me
.
pveSelNode
},
items
:
items
});
me
.
callParent
();
}
});
\ No newline at end of file
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