Unable to get device config_context
using the the gql_inventory plugin
#122
Labels
status: accepted
This issue has been accepted by the maintainers team for implementation
status: help wanted
This issue is tentatively accepted pending a volunteer committed to its implementation
ISSUE TYPE
SOFTWARE VERSIONS
pynautobot
1.0.4
Ansible:
2.9
Nautobot:
1.2.5
Collection:
v3.3.0
SUMMARY
I try to include config contexts in Ansible hosts using Nautobot dynamic inventory. I am using gql inventory plugin, but there is no way to include scalar values like
config_context
.Here is a sample query that works using the in-browser gql tool.
STEPS TO REPRODUCE
I have the following inventory config:
I run this command:
I also tried:
But none of these options work.
I think the problem is here in this template:
https://github.com/nautobot/nautobot-ansible/blob/develop/plugins/templates/graphql_additional_query.j2
It explicitly wants to have
key:value
pairs, which I cannot specify for config_context.EXPECTED RESULTS
I want to see config_context under the device output, similar to what I can see in the in-browser gql tool.
ACTUAL RESULTS
I get an error or a config context is not present.
The text was updated successfully, but these errors were encountered: