[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-08(UTC)"],[],[],null,["# Update BGP route policies\n=========================\n\nThis guide describes how to do the following updates to BGP route policies\nfor Cloud Router:\n\n- [Remove a BGP route policy](#remove-policy)\n- [Add BGP route policy terms](#add-bgp-route-policy-term)\n- [Update BGP route policy terms](#update-bgp-route-policy-term)\n- [Remove BGP route policy terms](#remove-bgp-route-policy-term)\n\nRemove a BGP route policy\n-------------------------\n\nRun the following: \n\n```\ngcloud compute routers remove-route-policy ROUTER_NAME \\\n --policy-name=BGP_ROUTE_POLICY_NAME\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eROUTER_NAME\u003c/var\u003e: the name of your Cloud Router\n- \u003cvar translate=\"no\"\u003eBGP_ROUTE_POLICY_NAME\u003c/var\u003e: the name of the BGP route policy that you want to remove\n\nAdd a BGP route policy term\n---------------------------\n\nRun the following: \n\n```\ngcloud compute routers add-route-policy-term ROUTER_NAME \\\n --policy-name=BGP_ROUTE_POLICY_NAME \\\n --priority=PRIORITY \\\n --match=CEL_MATCH_EXPRESSION \\\n --actions=CEL_ACTIONS_EXPRESSION\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eROUTER_NAME\u003c/var\u003e: the name of your Cloud Router\n- \u003cvar translate=\"no\"\u003eBGP_ROUTE_POLICY_NAME\u003c/var\u003e: the name of the BGP route policy that you want to export\n- \u003cvar translate=\"no\"\u003ePRIORITY\u003c/var\u003e: the order of this term within the BGP route policy, where lower values indicate higher priority. The accepted range is \\[0, 2\\^31).\n- \u003cvar translate=\"no\"\u003eCEL_MATCH_EXPRESSION\u003c/var\u003e: a Common Expression Language (CEL) element that matches routes that this term applies to\n- \u003cvar translate=\"no\"\u003eCEL_ACTIONS_EXPRESSION\u003c/var\u003e: a semicolon separated CEL expression for actions to take for items that match this rule\n\nUpdate a BGP route policy term\n------------------------------\n\nRun the following: \n\n```\ngcloud compute routers update-route-policy-term ROUTER_NAME \\\n --policy-name=BGP_ROUTE_POLICY_NAME \\\n --priority=PRIORITY \\\n --match=CEL_MATCH_EXPRESSION \\\n --actions=CEL_ACTIONS_EXPRESSION\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eROUTER_NAME\u003c/var\u003e: the name of your Cloud Router\n- \u003cvar translate=\"no\"\u003eBGP_ROUTE_POLICY_NAME\u003c/var\u003e: the name of the BGP route policy that you want to export\n- \u003cvar translate=\"no\"\u003ePRIORITY\u003c/var\u003e: The order of this term within the BGP route policy, where lower values indicate higher priority. The accepted range is \\[0, 2\\^31).\n- \u003cvar translate=\"no\"\u003eCEL_MATCH_EXPRESSION\u003c/var\u003e: a CEL element that matches routes that this term applies to\n- \u003cvar translate=\"no\"\u003eCEL_ACTIONS_EXPRESSION\u003c/var\u003e: a semicolon separated CEL expression for actions to take for items that match this rule\n- \u003cvar translate=\"no\"\u003eBGP_ROUTE_POLICY_NAME\u003c/var\u003e: the name of the BGP route policy that you want to export\n\nRemove a BGP route policy term\n------------------------------\n\nRun the following: \n\n```\ngcloud compute routers remove-route-policy-term ROUTER_NAME \\\n --policy-name=BGP_ROUTE_POLICY_NAME \\\n --priority=PRIORITY\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eROUTER_NAME\u003c/var\u003e: the name of your Cloud Router\n- \u003cvar translate=\"no\"\u003eBGP_ROUTE_POLICY_NAME\u003c/var\u003e: the name of the BGP route policy that you want to export\n- \u003cvar translate=\"no\"\u003ePRIORITY\u003c/var\u003e: the order of this term within the BGP route policy, where lower values indicate higher priority. The accepted range is \\[0, 2\\^31)."]]