Correct answer is C:
from jnpr.junos import Device
from jnpr.junos.utils.config import Config
from jnpr.junos.exception import *
from jinja2 import Template
import yaml
import sys
with open('vMX-1.yml', 'r') as fh:
data = yaml.load(fh.read())
with open('test.j2', 'r') as t_fh:
t_format = t_fh.read()
template = Template(t_format)
myConfig = template.render(data)
print(type(myConfig))
python3 script.py
<class 'str'>
upvoted 5 times
...
This section is not available anymore. Please use the main Exam Page.JN0-420 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
BiaxIde
Highly Voted 4 years, 8 months ago