BGP_ROUTE_POLICY_NAME: nama kebijakan rute BGP
yang ingin Anda ekspor
PRIORITY: urutan istilah ini dalam kebijakan rute BGP, dengan nilai yang lebih rendah menunjukkan prioritas yang lebih tinggi. Rentang yang diterima adalah
[0, 2^31).
CEL_MATCH_EXPRESSION: elemen Common Expression Language (CEL)
yang cocok dengan rute yang diterapkan istilah ini
CEL_ACTIONS_EXPRESSION: ekspresi CEL yang dipisahkan titik koma
untuk tindakan yang akan dilakukan pada item yang cocok dengan aturan ini
BGP_ROUTE_POLICY_NAME: nama kebijakan rute BGP
yang ingin Anda ekspor
PRIORITY: Urutan istilah ini dalam kebijakan rute BGP,
dengan nilai yang lebih rendah menunjukkan prioritas yang lebih tinggi. Rentang yang diterima adalah
[0, 2^31).
CEL_MATCH_EXPRESSION: elemen CEL yang cocok dengan rute yang berlaku untuk istilah ini
CEL_ACTIONS_EXPRESSION: ekspresi CEL yang dipisahkan titik koma
untuk tindakan yang akan dilakukan pada item yang cocok dengan aturan ini
BGP_ROUTE_POLICY_NAME: nama kebijakan rute BGP
yang ingin Anda ekspor
BGP_ROUTE_POLICY_NAME: nama kebijakan rute BGP
yang ingin Anda ekspor
PRIORITY: urutan istilah ini dalam kebijakan rute BGP, dengan nilai yang lebih rendah menunjukkan prioritas yang lebih tinggi. Rentang yang diterima adalah
[0, 2^31).
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-12 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)."]]