Application of S-BFD and protection parameters to static SR-policies

A named maintenance policy is applied to a static SR policy using the maintenance-policy command as follows:

config router segment-routing sr-policies
         static-policy <name> 
            head-end local
            binding-sid <number>
            maintenance-policy <name>
            ...

A maintenance policy can only be configured if the static SR policy head-end is set to local. Policies with an IP address that is not local to the node are not programmed in the SR database and cannot have S-BFD sessions established on them by this node because they are not the head end for the SR policy path.

S-BFD needs an endpoint address for the session so that the S-BFD reflector discriminator can be looked-up as a part of the session addressing. A maintenance policy cannot be configured on an SR policy with a null endpoint.