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
85621519
Commit
85621519
authored
Apr 18, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GUI: new helper printLxcNetwork
parent
b82c40d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
Parser.js
www/manager/Parser.js
+23
-0
No files found.
www/manager/Parser.js
View file @
85621519
...
...
@@ -223,6 +223,29 @@ Ext.define('PVE.Parser', { statics: {
return
netarray
.
join
(
'
;
'
);
},
printLxcNetwork
:
function
(
data
)
{
var
tmparray
=
[];
Ext
.
Array
.
each
([
'
link
'
,
'
hwaddr
'
,
'
mtu
'
,
'
name
'
,
'
ipv4
'
,
'
ipv4.gateway
'
,
'
ipv6
'
,
'
ipv6.gateway
'
,
'
firewall
'
],
function
(
key
)
{
var
value
=
data
[
key
];
if
(
key
===
'
bridge
'
){
if
(
data
[
'
tag
'
]){
value
=
value
+
'
v
'
+
data
[
'
tag
'
];
}
if
(
data
[
'
firewall
'
]){
value
=
value
+
'
f
'
;
}
}
if
(
value
)
{
tmparray
.
push
(
key
+
'
=
'
+
value
);
}
});
return
tmparray
.
join
(
'
,
'
);
},
parseStartup
:
function
(
value
)
{
if
(
value
===
undefined
)
{
return
;
...
...
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