Skip to content

Commit 0fd9342

Browse files
authored
Merge pull request #194 from fabric-testbed/br_193_194
only update IFS for NICs and increase waitress threads
2 parents 6768bf9 + 85d1b2b commit 0fd9342

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

fabric_cf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "1.2.5"
1+
__VERSION__ = "1.2.6"

fabric_cf/actor/fim/fim_helper.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,16 @@ def update_node(*, graph_id: str, sliver: BaseSliver):
289289
capacity_allocations=component.capacity_allocations,
290290
node_map=component.node_map)
291291
# Update Mac address
292-
for ns in component.network_service_info.network_services.values():
293-
if ns.interface_info is None or ns.interface_info.interfaces is None:
294-
continue
295-
296-
for ifs in ns.interface_info.interfaces.values():
297-
topo_component = node.components[cname]
298-
topo_ifs = topo_component.interfaces[ifs.get_name()]
299-
topo_ifs.set_properties(label_allocations=ifs.label_allocations)
292+
if component.network_service_info is not None and \
293+
component.network_service_info.network_services is not None:
294+
for ns in component.network_service_info.network_services.values():
295+
if ns.interface_info is None or ns.interface_info.interfaces is None:
296+
continue
297+
298+
for ifs in ns.interface_info.interfaces.values():
299+
topo_component = node.components[cname]
300+
topo_ifs = topo_component.interfaces[ifs.get_name()]
301+
topo_ifs.set_properties(label_allocations=ifs.label_allocations)
300302

301303
elif isinstance(sliver, NetworkServiceSliver):
302304
node = neo4j_topo.network_services[node_name]

fabric_cf/authority/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ services:
5050
build:
5151
context: ../../../
5252
dockerfile: Dockerfile-auth
53-
image: authority:1.2
53+
image: authority:1.2.6
5454
container_name: site1-am
5555
restart: always
5656
depends_on:

fabric_cf/broker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ services:
5353
build:
5454
context: ../../../
5555
dockerfile: Dockerfile-broker
56-
image: broker:1.2
56+
image: broker:1.2.6
5757
container_name: broker
5858
restart: always
5959
networks:

fabric_cf/orchestrator/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def main():
7272
app.add_api('swagger.yaml', arguments={'title': 'Fabric Orchestrator API'}, pythonic_params=True)
7373

7474
# Start up the server to expose the metrics.
75-
waitress.serve(app, port=int(rest_port_str))
75+
waitress.serve(app, port=int(rest_port_str), threads=8)
7676
while True:
7777
time.sleep(0.0001)
7878
if h.interrupted:

fabric_cf/orchestrator/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ services:
6767
build:
6868
context: ../../../
6969
dockerfile: Dockerfile-orchestrator
70-
image: orchestrator:1.2
70+
image: orchestrator:1.2.6
7171
container_name: orchestrator
7272
restart: always
7373
depends_on:

0 commit comments

Comments
 (0)