Logo CISCOModèl pèsonalize CISCO

Gid itilizatè

Apendis: Modèl pèsonalize

This section explains the following topics:

  • Custom Templates Configuration, on page 1

Konfigirasyon Modèl Pèsonalize

Objektif
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, men pi puisan.
Workflow
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. Kreye kòmampegzanp lan avèk konfigirasyon aparèy ou vle a sou routeur la jan sa a:
    policy-map TEST-POLICY
    class class-default
    police rate 200 mbps
    !
    !
    fen-politik-kat
  2. Log in to NSO CLI and sync from that device.
    admin@ncs# aparèy aparèy PE99-55A1 senkronizasyon-soti nan
  3. In NSO CLI, get the running config for the policy map. Display the configuration in an XML format.CISCO Custom Templates - Fig
  4. Kopi a file sòti nan yon editè tèks oswa kòd. Espesifye varyab ki ka ranplase oswa parametrize selon bezwen ou yo lè l sèvi avèk curlparantèz ak yon siy dola, {$VARIABLE}. Ou ka prefere kenbe non varyab la an majiskil pou fè l pi byen diferan de lòt eleman XML yo nan fileLa a, nou te kreye de varyab, $POLICY_VAR ak $RATE_MBS, pou modèl nou an.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 nan modèl skelèt ou a. Konfigirasyon non lame a se opsyonèl epi li pa obligatwa kòm yon pati nan XML.
    CISCO Custom Templates - Icon Remak 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 oubyen CLI. Etap sa a pèmèt ou chaje modèl pèsonalize yo pou rantre yo nan NSO anvan ou aplike yo.
    a. Si w ap itilize NSO CLI, chaje fizyon modèl la nan NSO jan sa a:
    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.
    b. Lè w ap enpòte atravè Web Nan koòdone itilizatè a, sèvi ak opsyon Chaje/Anrejistre a epi klike sou Kole pou chaje done yo lè w kole yo. Nouvo chanjman yo dwe aplike tou lè w sèvi ak Commit pou aplike konfigirasyon an.
  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
    b. KlikeCISCO 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. Chwazi modèl pèsonalize ou a epi aplike varyab ki nesesè yo. Klike sou Valide chanjman yo. Remake byen ke validasyon routeur la montre non map politik la ak vitès polis 250 Mbps la.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 2Pou plis ansyenamples 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.

Logo CISCO

Dokiman / Resous

Modèl pèsonalize CISCO [pdfGid Itilizatè
Modèl pèsonalize, Pèsonalize, Modèl

Referans

Kite yon kòmantè

Adrès imel ou p ap pibliye. Jaden obligatwa yo make *