Closed kthare10 closed 1 year ago
There are two reasons here:
>
not ==
. I don't remember if there is a deep reason for why i wasn't checking for strict equality. I tested it with strict equality and it works for PTP (for STS, since no limit is set, I still don't see an error and also, possibly, this is not an error condition - unless the service itself doesn't want to run with fewer than 2 ports).
@kthare10 let me know.
minimal_number_of_ports
constraint and set it to 2 for both - that's if the AMHandler has problems with fewer than 2. @ibaldin - Can we please do both 1 and 2 as the net_handler.py
in AMHandlers rejects the request for both PTP/STS for fewer than 2 ports?
I'm adding another field to constraints for min_interfaces
. This should allow us to check both the minimum and the maximum number of interfaces.
Scenario: