Skip to content

Commit

Permalink
Merge pull request #118 from fabric-testbed/fac-port-L2PTP
Browse files Browse the repository at this point in the history
Added FacilityPort as a type of port capable of terminating a L2PTP service and updated tests
  • Loading branch information
ibaldin authored Jun 25, 2022
2 parents 1c96991 + b239128 commit b35b74c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fim/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#
__VERSION__ = "1.2.4"
__VERSION__ = "1.2.5"
3 changes: 2 additions & 1 deletion fim/slivers/network_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ class NetworkServiceSliver(BaseSliver):
forbidden_properties=['mirror_port',
'mirror_direction',
'controller_url'],
required_interface_types=[InterfaceType.DedicatedPort]),
required_interface_types=[InterfaceType.DedicatedPort,
InterfaceType.FacilityPort]),
ServiceType.L2Multisite: ServiceConstraintRecord(layer=NSLayer.L2, num_interfaces=NO_LIMIT, num_sites=NO_LIMIT,
num_instances=NO_LIMIT,
desc='A Multi-Site L2 service in FABRIC.',
Expand Down
1 change: 1 addition & 0 deletions test/slice_topology_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def __init__(self, val):
interfaces=[fac1.interface_list[0],
n1.interface_list[2]])

self.topo.validate()
self.assertEqual(s1.layer, f.Layer.L2)
print(fac1.network_services['RENCI-DTN-ns'].labels)
self.assertEqual(fac1.network_services['RENCI-DTN-ns'].layer, f.Layer.L2)
Expand Down

0 comments on commit b35b74c

Please sign in to comment.