-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
NetBox version
What version of NetBox are you currently running?
v4.0.11
Describe the bug
A clear and concise description of what the bug is.
plugin is not adding the substitute to template, it just adds the jinja2 variable name like {{ cisco_exclude_banner }}
To Reproduce
Steps to reproduce the behavior:
- Go to 'Config Diff Plugin'
- Click on 'Platform Settings'
- Click on 'Add'
- Click 'Platform' choose IOS (if you don't have platform go back to Device and create Platform)
- For Driver type in cisco_iosxe
- For Command 'show running-config'
- Now Click on 'Create' to save Platform Settings
- Next under Config Management Click on 'Substitutes'
- Click 'Add'
- Choose Platform settings create earlier (ex: IOS XE cisco_iosxe)
- Name something like 'cisco_exclude_banner'
- Regexp 'banner login [\S\s]+^C'
- Click 'Create' to save Substitute
- Now Click on 'Provisioning' and then 'Config Templates'
- Create Template type Name ex: test
- Template Code enter the Substitute as jinja2 variable like {% raw %}{{ cisco_exclude_banner }}{% endraw %}
- Click on Devices and Edit and Choose the Config template for device (Device must be Active status and have Primary IP and Platform IOS)
- Now go back to Config Diff Plugin and Click 'Configuration Requests'
- Click 'Add' Find the device and Click 'Create' to Save
- Now click on 'Collect diffs'
- No Error
Expected behavior
A clear and concise description of what you expected to happen.
the matched config was not added into rendered output instead just the variable gets added {{ cisco_exclude_banner }}
Screenshots
If applicable, add screenshots to help explain your problem.








Additional context
Add any other context about the problem here.
sample_text_config.txt
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working