{"type":"api","title":"Modify an SR P2MP policy","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/4f2aaf95-2f8f-3408-9111-439f336c64fd","info":{"description":"This API provides operations for managing Segment Routing Point-to-Multipoint (SR P2MP) policies, including creation, modification, deletion, and data list operations.","version":"7.1.0","title":"Cisco Crosswork SR P2MP Policy Operations API","contact":{"name":"API Support","url":"https://www.cisco.com/support","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"}},"swagger":"2.0","host":"localhost:30603","basePath":"/crosswork/nbi/optimization/v3/restconf","securityDefinitions":{"api_key":{"description":"Authentication: Bearer $JWT","type":"apiKey","name":"api_key","in":"header"}}},"spec":{"operationId":"srP2mpPolicyModify","tags":["cisco-crosswork-optimization-engine-sr-p2mp-policy-operations"],"summary":"Modify an SR P2MP policy","description":"Modifies the configuration of an existing Segment Routing Point-to-Multipoint (SR P2MP) policy.","parameters":[{"in":"body","name":"sr.p2mp.policy.common.SrP2mpPolicyDetailList.body-param","required":false,"description":"Request body containing details for modifying an SR P2MP policy.","schema":{"type":"object","properties":{"input":{"type":"object","properties":{"sr-p2mp-policies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the SR P2MP policy"},"root-node":{"type":"string","description":"The root node of the SR P2MP policy"},"tree-sid-label":{"type":"integer","format":"int64","description":"The MPLS label asssociated with the SR P2MP policy"},"lfa-frr":{"description":"Enable or disable LFA-FRR for the SR P2MP policy","type":"string","enum":["enable","disable"],"$$ref":"#/definitions/sr.p2mp.policy.common.LfaFrr"},"optimization-objective":{"description":"The objective to minimize, igp-metric, te-metric or delay","type":"string","enum":["igp-metric","te-metric","delay"],"$$ref":"#/definitions/sr.p2mp.policy.common.OptimizationObjectiveEnumeration"},"affinities":{"type":"object","properties":{"include-all":{"type":"integer","format":"int64","description":"include-any affinity bits combined into an unsigned integer"},"exclude-any":{"type":"integer","format":"int64","description":"include-any affinity bits combined into an unsigned integer"},"include-any":{"type":"integer","format":"int64","description":"include-any affinity bits combined into an unsigned integer"}},"$$ref":"#/definitions/sr.p2mp.policy.common.srp2mppolicydetailfields.Affinities"},"leaf-nodes":{"type":"array","description":"A leaf node of the SR P2MP policy","items":{"type":"string"}}},"$$ref":"#/definitions/sr.p2mp.policy.common.srp2mppolicydetaillist.SrP2mpPolicies"}}},"$$ref":"#/definitions/sr.p2mp.policy.common.SrP2mpPolicyDetailList"}}}}],"responses":{"200":{"description":"Correct response","schema":{"type":"object","properties":{"output":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the SR P2MP policy"},"root-node":{"type":"string","description":"The root node of the SR P2MP policy"},"tree-sid-label":{"type":"integer","format":"int64","description":"The MPLS label asssociated with the SR P2MP policy"},"message":{"type":"string","description":"The details of state above, for failure and degraded"},"state":{"description":"The result for an SR P2MP policy create, update or delete operation","type":"string","enum":["success","failure","degraded"],"$$ref":"#/definitions/sr.p2mp.policy.common.StateEnumeration"}},"$$ref":"#/definitions/sr.p2mp.policy.common.srp2mppolicyresultlist.Results"}}},"$$ref":"#/definitions/sr.p2mp.policy.common.SrP2mpPolicyResultList"}}}},"204":{"description":"No response"},"400":{"description":"Internal error"}},"__originalOperationId":"srP2mpPolicyModify","consumes":["application/yang-data+json"],"produces":["application/yang-data+json"],"method":"post","path":"/operations/cisco-crosswork-optimization-engine-sr-p2mp-policy-operations:sr-p2mp-policy-modify"}}