ໂລໂກ້ CISCOCISCO Custom Templates

ຄູ່ມືຜູ້ໃຊ້

ເອກະສານຊ້ອນທ້າຍ: ແມ່ແບບແບບກຳນົດເອງ

This section explains the following topics:

  • Custom Templates Configuration, on page 1

ການຕັ້ງຄ່າແມ່ແບບແບບກຳນົດເອງ

ຈຸດປະສົງ
Custom templates are user-defined templates that allow for the customization and automation of network services not supported by the function pack. They define specific configurations and settings that can be applied to network devices and services, making deploying and managing network resources more efficient and consistent.
To use custom templates in Crosswork Network Controller, you must pre-configure them in Crosswork Network Services Orchestration (NSO). Once configured in NSO, the Crosswork Network Controller will display your custom template for selection when you provision a device or a service. NSO uses XML-based configuration (config) templates, which you can invoke from provisioning code or link directly to devices or services. XML templates are snippets of configuration, similar to the CDB init files, ແຕ່ມີອໍານາດຫຼາຍ.
ຂະບວນການເຮັດວຽກ
To illustrate the capabilities of custom templates, we have provided an example that uses variable substitution to create an XML template. We then walk you through importing the template in NSO and referencing it in the L2VPN service in the Crosswork Network Controller.
To use custom templates:

  1. ສ້າງເປັນampLe instance ກັບ​ການ​ຕັ້ງ​ຄ່າ​ອຸ​ປະ​ກອນ​ທີ່​ຕ້ອງ​ການ​ໃນ router ດັ່ງ​ຕໍ່​ໄປ​ນີ້​:
    policy-map TEST-POLICY
    class class-default
    police rate 200 mbps
    !
    !
    end-policy-ແຜນທີ່
  2. Log in to NSO CLI and sync from that device.
    admin@ncs# ອຸປະກອນອຸປະກອນ PE99-55A1 sync-from
  3. In NSO CLI, get the running config for the policy map. Display the configuration in an XML format.CISCO Custom Templates - Fig
  4. ສຳເນົາ file ສົ່ງອອກໄປຍັງຕົວແກ້ໄຂຂໍ້ຄວາມ ຫຼືລະຫັດ. ກໍານົດຕົວແປທີ່ສາມາດໄດ້ຮັບການທົດແທນຫຼືຕົວກໍານົດການຕາມຄວາມຕ້ອງການຂອງທ່ານໂດຍໃຊ້ curly ວົງເລັບ ແລະເຄື່ອງໝາຍເງິນໂດລາ, {$VARIABLE}. ເຈົ້າສາມາດຮັກສາຊື່ຕົວປ່ຽນເປັນຕົວພິມໃຫຍ່ເພື່ອເຮັດໃຫ້ມັນໂດດເດັ່ນຈາກອົງປະກອບ XML ອື່ນໆໃນ file. ທີ່ນີ້, ພວກເຮົາໄດ້ສ້າງສອງຕົວແປ, $POLICY_VAR ແລະ $RATE_MBS, ສໍາລັບແມ່ແບບຂອງພວກເຮົາ.CISCO Custom Templates - Fig 1
  5. Create a skeleton template package in NSO. This will help you generate the XML structure with the correct headers. Copy the <devices> code in the below example ກັບແມ່ແບບ skeleton ຂອງທ່ານ. ການຕັ້ງຄ່າຊື່ເຈົ້າພາບແມ່ນເປັນທາງເລືອກແລະບໍ່ຈໍາເປັນເປັນສ່ວນຫນຶ່ງຂອງ XML.
    CISCO Custom Templates - Icon ໝາຍເຫດ The custom-templates name must start with either ct- or CT- and should not include an underscore character.CISCO Custom Templates - Fig 2
  6. Copy the policy-map <config> code you created in step 4 from your text editor.CISCO Custom Templates - Fig 3
  7. Paste it in your skeleton template.CISCO Custom Templates - Fig 4CISCO Custom Templates - Fig 5
  8. Save and import your new XML template into NSO using NSO web UI ຫຼື CLI. ຂັ້ນ​ຕອນ​ນີ້​ອະ​ນຸ​ຍາດ​ໃຫ້​ທ່ານ​ສາ​ມາດ​ໂຫຼດ merge ແມ່​ແບບ​ກໍາ​ນົດ​ເອງ​ກັບ NSO ກ່ອນ​ທີ່​ຈະ​ນໍາ​ໃຊ້​ໃຫ້​ເຂົາ​ເຈົ້າ​.
    ກ. ຖ້າ​ຫາກ​ວ່າ​ການ​ນໍາ​ໃຊ້ NSO CLI​, ໂຫຼດ merge template ກັບ NSO ດັ່ງ​ຕໍ່​ໄປ​ນີ້​:
    admin@ncs% load merge user-device-template.xml
    [ok] admin@ncs%
    commit [ok] For details on applying custom templates, refer to Using Custom-Templates– CFP Services in the Cisco NSO Transport SDN Function Pack Bundle 7.0.0 User Guide.
    ຂ. ເມື່ອນໍາເຂົ້າຜ່ານ Web UI, ໃຊ້ຕົວເລືອກ Load/Save ແລະຄລິກ Paste ເພື່ອໂຫລດຂໍ້ມູນໂດຍການວາງມັນ. ການປ່ຽນແປງໃໝ່ຈະຕ້ອງຖືກນຳໃຊ້ໂດຍໃຊ້ Commit ເພື່ອນຳໃຊ້ການຕັ້ງຄ່າ.
  9. Validate the new template in NSO.CISCO Custom Templates - Fig 6
  10. Let’s add this template to the L2VPN service in the Crosswork Network Controller.
    a. Choose Services & Traffic Engineering> Provisioning (NSO)> L2VPN> L2VPN-Service
    ຂ. ກົດCISCO Custom Templates - Icon 1 to create a new service. The L2VPN-Service page is displayed.
    c. Enter a name for the VPN Identifier and click Continue.
    d. Under Custom-templates, click CISCO Custom Templates - Icon 1to apply your custom template. The Crosswork Network Controller will display your custom template for selection.CISCO Custom Templates - Appendixe. ເລືອກແມ່ແບບທີ່ກໍາຫນົດເອງຂອງທ່ານແລະນໍາໃຊ້ຕົວແປທີ່ຕ້ອງການ. ກົດ Commit ການ​ປ່ຽນ​ແປງ​. ໃຫ້ສັງເກດວ່າການກວດສອບຄວາມຖືກຕ້ອງຂອງ router ສະແດງຊື່ແຜນທີ່ນະໂຍບາຍແລະອັດຕາຕໍາຫຼວດຂອງ 250 Mbps.CISCO Custom Templates - Appendix 1
  11. Repeat the process for adding the policy to the interfaces. Ensure to add the policy at the device level, as the interface numbers may be different on each side of the L2VPN.CISCO Custom Templates - Appendix 2ສໍາລັບເພີ່ມເຕີມ examples of configuring custom templates, refer to Using Custom-Templates– CFP Services in the Cisco NSO Transport SDN Function Pack Bundle 7.1.0 User Guide.

ໂລໂກ້ CISCO

ເອກະສານ / ຊັບພະຍາກອນ

CISCO Custom Templates [pdf] ຄູ່ມືຜູ້ໃຊ້
Custom Templates, Custom, Templates

ເອກະສານອ້າງອີງ

ອອກຄໍາເຫັນ

ທີ່ຢູ່ອີເມວຂອງເຈົ້າຈະບໍ່ຖືກເຜີຍແຜ່. ຊ່ອງຂໍ້ມູນທີ່ຕ້ອງການຖືກໝາຍໄວ້ *