Coder Social home page Coder Social logo

kebaldwi / dnac-templates Goto Github PK

View Code? Open in Web Editor NEW
93.0 17.0 31.0 700.48 MB

This site is aimed at helping with the adoption of Cisco Catalyst Center for Network Automation. Examples of Templates used in Cisco Catalyst Center with Velocity or Jinja2 Scripting, Variables, and Composite Approaches

License: Other

PowerShell 35.39% Velocity Template Language 9.83% Jinja 2.74% Python 51.39% Shell 0.64%
dnac-templates onboarding-templates dayn-templates dna-center composite-templates programming velocity automation jinja2 jinja2-templates

dnac-templates's People

Contributors

chanhale avatar imanassypov avatar kebaldwi avatar ssukhavasi-code avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dnac-templates's Issues

Regular templates idempotency

Hi!
What about templates idempotency?
When I change ACL template after deploy on switch (delete string 50 in ACL 13) -> save -> commit -> provision target switch, task completed but string 50 in standard acl 13 staying in switch config.
What am I doing wrong?

Port assignments fail with composite template Platinum-PortAssign-Template.j2

Hi.

Platinum-PortAssign-Template.j2 fails while trying to enumerate ports per switch in a stack, DNAC 2.3.3.5 and 9200 switches.

A rewrite fixed it on my end, you might want to consider changing the code if you can reproduce the error.

From:
{% for Switch in range(StackMemberCount) -%}
{% set Model = StackPIDs[Switch] -%}
{% if '48' in Model -%}
{% set PortTotal = PortTotal.append(48) -%}
{% elif '24' in Model %}
{% set PortTotal = PortTotal.append(24) -%}
{% endif -%}
{% endfor -%}

To:
{% for Switch in range(StackMemberCount) -%}
{% set Model = StackPIDs[Switch] -%}
{% if '48' in Model -%}
{% set PortTotal[Switch]= PortTotal.append(48) -%}
{% elif '24' in Model %}
{% set PortTotal[Switch]= PortTotal.append(24) -%}
{% endif -%}
{% endfor -%}

Otherwise, outstanding work on both the guides and the code/templates. Highly appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.