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
445ed928
Commit
445ed928
authored
Apr 22, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc GUI: enable firewall and vlan tag
parent
7643161b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Parser.js
www/manager/Parser.js
+2
-2
Network.js
www/manager/lxc/Network.js
+0
-2
No files found.
www/manager/Parser.js
View file @
445ed928
...
...
@@ -233,7 +233,7 @@ Ext.define('PVE.Parser', { statics: {
if
(
!
p
||
p
.
match
(
/^
\s
*$/
))
{
return
;
// continue
}
var
match_res
=
p
.
match
(
/^
(
bridge|hwaddr|mtu|name|ip|ip6|gw|gw6
)
=
(\S
+
)
$/
);
var
match_res
=
p
.
match
(
/^
(
bridge|hwaddr|mtu|name|ip|ip6|gw|gw6
|firewall|tag
)
=
(\S
+
)
$/
);
if
(
!
match_res
)
{
// todo: simply ignore errors ?
return
;
// continue
...
...
@@ -247,7 +247,7 @@ Ext.define('PVE.Parser', { statics: {
printLxcNetwork
:
function
(
data
)
{
var
tmparray
=
[];
Ext
.
Array
.
each
([
'
bridge
'
,
'
hwaddr
'
,
'
mtu
'
,
'
name
'
,
'
ip
'
,
'
gw
'
,
'
ip6
'
,
'
gw6
'
],
function
(
key
)
{
'
gw
'
,
'
ip6
'
,
'
gw6
'
,
'
firewall
'
,
'
tag
'
],
function
(
key
)
{
var
value
=
data
[
key
];
if
(
value
)
{
tmparray
.
push
(
key
+
'
=
'
+
value
);
...
...
www/manager/lxc/Network.js
View file @
445ed928
...
...
@@ -136,14 +136,12 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
{
xtype
:
'
pveVlanField
'
,
name
:
'
tag
'
,
disabled
:
true
,
value
:
cdata
.
tag
,
},
{
xtype
:
'
pvecheckbox
'
,
fieldLabel
:
gettext
(
'
Firewall
'
),
name
:
'
firewall
'
,
disabled
:
true
,
checked
:
cdata
.
firewall
,
}
];
...
...
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