Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fibre
portal-interface
Commits
4be1092d
Commit
4be1092d
authored
Jan 24, 2020
by
Felipe Fonseca
Browse files
Merge branch 'release/1.3.1'
parents
4f0f4c68
9903ab16
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
5 deletions
+16
-5
.gitignore
.gitignore
+1
-0
portal/models/oedl.py
portal/models/oedl.py
+2
-2
portal/templates/main/base.html
portal/templates/main/base.html
+11
-1
portal/urls.py
portal/urls.py
+1
-1
portal/views/views_slices.py
portal/views/views_slices.py
+1
-1
No files found.
.gitignore
View file @
4be1092d
portal/static/output
.idea/
*.pyc
__pycache__
...
...
portal/models/oedl.py
View file @
4be1092d
...
...
@@ -564,7 +564,7 @@ class OEDL:
connections
+=
[
edge
[
'destination'
],
edge
[
'source'
]]
for
link_connection
in
connections
:
if
link_connection
[
'data'
][
'resource_type'
]
==
"openflow_switch"
:
if
link_connection
[
'data'
][
'resource_type'
]
==
"openflow_switch"
and
len
(
slice_resource
[
'vlans'
])
!=
0
:
flowvisor
=
oedl
.
def_flowvisor
(
slice_resource
[
'name'
],
link_connection
[
'urn'
])
new_slice
=
flowvisor
.
add_slice
(
slice_resource
[
'name'
],
link_connection
[
'urn'
],
'"tcp:#{controller_ip}:6633"'
)
match
=
"in_port={0},dl_vlan={1}"
.
format
(
link_connection
[
'port'
],
...
...
@@ -608,7 +608,7 @@ class OEDL:
connections
+=
[
edge
[
'destination'
],
edge
[
'source'
]]
for
link_connection
in
connections
:
if
link_connection
[
'data'
][
'resource_type'
]
==
"openflow_switch"
:
if
link_connection
[
'data'
][
'resource_type'
]
==
"openflow_switch"
and
len
(
slice_resource
[
'vlans'
])
!=
0
:
flowvisor
=
oedl
.
def_flowvisor
(
slice_resource
[
'name'
],
link_connection
[
'urn'
])
new_slice
=
flowvisor
.
add_slice
(
slice_resource
[
'name'
],
link_connection
[
'urn'
],
'"tcp:#{controller_ip}:6633"'
)
...
...
portal/templates/main/base.html
View file @
4be1092d
...
...
@@ -98,7 +98,17 @@
<link
rel=
"stylesheet"
href=
"{% static 'css/slice.css' %}"
>
<script
src=
'https://www.google.com/recaptcha/api.js'
></script>
<title>
FIBRE Portal
</title>
<title>
FIBRE Portal
</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src=
"https://www.googletagmanager.com/gtag/js?id=UA-151354689-1"
></script>
<script>
window
.
dataLayer
=
window
.
dataLayer
||
[];
function
gtag
(){
dataLayer
.
push
(
arguments
);}
gtag
(
'
js
'
,
new
Date
());
gtag
(
'
config
'
,
'
UA-151354689-1
'
);
</script>
</head>
{% block body %}
...
...
portal/urls.py
View file @
4be1092d
...
...
@@ -13,7 +13,7 @@ urlpatterns = [
# #############################################
# CAFe Authentication
url
(
r
'^
DS
/$'
,
url
(
r
'^
Cafe
/$'
,
views_auth
.
cafe_authentication
,
name
=
'cafe_authentication'
),
...
...
portal/views/views_slices.py
View file @
4be1092d
...
...
@@ -445,7 +445,7 @@ def _create_minimum_topology(topology, slice_resource):
edges
[(
edge
[
0
],
edge
[
1
])]
=
edge_data
for
edx
in
edge
:
if
edx
not
in
nodes
:
node_data
=
graph
.
node
[
edx
][
'data'
]
node_data
=
graph
.
node
s
[
edx
][
'data'
]
nodes
[
edx
]
=
node_data
for
path
in
all_paths
:
...
...
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