{"type":"api","title":"Policy definitions","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/075a86bc-a0e0-3b96-9457-820dfdb5d533","info":{"title":"cisco-l2vpn-routing-policy","description":"IETF L2VPN ROUTING POLICY Cisco NSO Modifications","termsOfService":"http://www.cisco.com/web/siteassets/legal/terms_condition.html","contact":{"name":"Cisco Systems","url":"https://www.cisco.com","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"security":[{"bearerAuth":[]}],"tags":[{"name":"data","description":"data resources"}],"x-parser-conf":{"overview":{"markdownPath":"reference/CNC/cisco-l2vpn-routing-policy-api-overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://{cnc-host}:{cnc-port}/crosswork/proxy/nso/restconf","variables":{"cnc-host":{"default":"127.0.0.1","description":"host name or ip address of the target CNC Cluster"},"cnc-port":{"default":"30603","description":"port number of the target CNC Cluster"}}}],"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"spec":{"tags":["data"],"summary":"Policy definitions.","description":"List of top-level policy definitions, keyed by unique\nname. These policy definitions are expected to be\nreferenced (by name) in policy chains specified in\nimport or export configuration statements.","operationId":"data_cisco_l2vpn_routing_policy_l2vpn_routing_policy_policy_definitions_policy_definition_policy_definition_name_get","parameters":[{"name":"policy-definition-name","in":"path","description":"Name of the top-level policy definition; this name\nis used in references to the current policy.","required":true,"schema":{"type":"string","format":"string"}},{"name":"content","in":"query","description":"controlling descendant nodes in response","schema":{"type":"string","format":"enumeration","default":"config","enum":["config","nonconfig","all"]}},{"name":"depth","in":"query","description":"limit the depth of nodes in response","schema":{"type":"integer","format":"uint16"}},{"name":"fields","in":"query","description":"optionally identify specific data nodes in response","schema":{"type":"string","format":"string"}},{"name":"filter","in":"query","description":"xpath expression to filter data nodes in response","schema":{"type":"string","format":"string"}},{"name":"with-defaults","in":"query","description":"controlling default values in response","schema":{"type":"string","format":"enumeration","default":"report-all","enum":["report-all","trim","explicit","report-all-tagged"]}}],"responses":{"200":{"description":"Policy definitions.","content":{"application/yang-data+json":{"schema":{"type":"object","properties":{"cisco-l2vpn-routing-policy:policy-definition":{"type":"array","description":"List of top-level policy definitions, keyed by unique\nname. These policy definitions are expected to be\nreferenced (by name) in policy chains specified in\nimport or export configuration statements. (list)","items":{"type":"object","properties":{"name":{"type":"string","description":"Name of the top-level policy definition; this name\nis used in references to the current policy. (leaf)","format":"string","x-yang":{"type":"leaf"}},"statements":{"type":"object","properties":{"statement":{"type":"array","description":"Policy statements group conditions and actions\nwithin a policy definition. They are evaluated in\nthe order specified. (list)","items":{"type":"object","properties":{"name":{"type":"string","description":"Name of the policy statement. (leaf)","format":"string","x-yang":{"type":"leaf"}},"conditions":{"type":"object","properties":{"match-etag-set":{"type":"object","properties":{"etag-set":{"type":"string","description":"References a defined etag set. (leaf)","format":"leafref","x-yang":{"type":"leaf"}}},"description":"Match a referenced etag-set. (presence)","x-yang":{"is_presence":"true","type":"container"}},"match-evpn-route-type-set":{"type":"object","properties":{"evpn-route-type-set":{"type":"string","description":"References a defined neighbor set. (leaf)","format":"leafref","x-yang":{"type":"leaf"}}},"description":"Match a referenced evpn-route-type-set. (presence)","x-yang":{"is_presence":"true","type":"container"}},"match-rd-set":{"type":"object","properties":{"rd-set":{"type":"string","description":"References a defined RD set. (leaf)","format":"leafref","x-yang":{"type":"leaf"}}},"description":"Match a referenced RD-set. (presence)","x-yang":{"is_presence":"true","type":"container"}}},"description":"Condition statements for the current policy\nstatement. (non-presence)","x-yang":{"is_presence":"false","type":"container"}},"actions":{"type":"object","properties":{"bgp-actions":{"type":"object","properties":{"set-ext-community":{"type":"object","properties":{"ext-community-set-ref":{"type":"string","description":"References a defined extended community set by name. Creating routing-policy tag-set is mandatory and needs to be mapped here. (leaf)","format":"leafref","x-yang":{"type":"leaf"}}},"description":"Action to set the extended community attributes of the\n route, along with options to modify how the community is\n modified. Extended communities may be set using an inline\n list OR a reference to an existing defined set (but not\n both). (presence)","x-yang":{"is_presence":"true","type":"container"}}},"description":"Top-level container for BGP-specific actions (presence)","x-yang":{"is_presence":"true","type":"container"}}},"description":"Top-level container for policy action\nstatements. (non-presence)","x-yang":{"is_presence":"false","type":"container"}}}},"x-yang":{"type":"list"}}},"description":"Enclosing container for policy statements. (non-presence)","x-yang":{"is_presence":"false","type":"container"}}}},"x-yang":{"type":"list"}}},"$$ref":"#/components/schemas/data_cisco-l2vpn-routing-policy_l2vpn-routing-policy_policy-definitions_policy-definition_policy-definition-name"}}}},"204":{"description":"No Content","content":{}},"400":{"description":"Bad Request","content":{}},"401":{"description":"Unauthorized","content":{}},"404":{"description":"Not Found","content":{}},"405":{"description":"Method Not Allowed","content":{}},"409":{"description":"Conflict","content":{}}},"security":[{"bearerAuth":[]}],"__originalOperationId":"data_cisco_l2vpn_routing_policy_l2vpn_routing_policy_policy_definitions_policy_definition_policy_definition_name_get","method":"get","path":"/data/cisco-l2vpn-routing-policy:l2vpn-routing-policy/policy-definitions/policy-definition={policy-definition-name}"}}