diff --git a/fim/__init__.py b/fim/__init__.py index c5342b6..670ccae 100644 --- a/fim/__init__.py +++ b/fim/__init__.py @@ -1,2 +1,2 @@ # -__VERSION__ = "1.2.4" +__VERSION__ = "1.2.5" diff --git a/fim/slivers/network_service.py b/fim/slivers/network_service.py index 089d3e0..9a41268 100644 --- a/fim/slivers/network_service.py +++ b/fim/slivers/network_service.py @@ -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.', diff --git a/test/slice_topology_test.py b/test/slice_topology_test.py index 1ce57c6..60758b4 100644 --- a/test/slice_topology_test.py +++ b/test/slice_topology_test.py @@ -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)