So friends, let's walk through the answers. So the first question you were
asked was what types of
data formats are available when using this protocol? So you may remember at the
beginning of this
skill, I happen to mention that Resconv does support JSON, but it also has the
ability to give us
the same data back formatted utilizing XML and it's these two data formats that
Resconv is going to
use. So pretty much pick your preference, you have both available. My own
preference is to work
with JSON wherever I can. Now next question, how secure is the Resconv WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
with JSON wherever I can. Now next question, how secure is the Resconv
connection to the devices
where the answer is very secure? It has full encryption and that is because it
's going to be
transported over 80 DPS, which if you remember is over the default port of 443.
So no problems with
insecurity there. The next question is do we have any available tools to
simplify the process of
working with the large Yang and data models? So we know we can go to GitHub or
we can go and just
scroll through these large data models, but this is not exactly the easiest way WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
scroll through these large data models, but this is not exactly the easiest way
to ingest this data.
For example, one particular tool we could use is the one that we saw within
this particular skill
and this is to use Py Yang. For example, if we say Py Yang -f3 and then specify
the name of the Yang
model we want to actually be targeting, then essentially we can get the output
of the model
formatted in an i3 like structure whereby we can easily see or rather more
easily see, not quite
easily, definitely not, but more easily see the relationship between all of the WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
easily, definitely not, but more easily see the relationship between all of the
nodes within
the Yang model. So there are more than one tool to do this particular process,
but in my opinion,
Py Yang is one of the best of them and this is the one we used in this
particular skill.
Now, last one does Resconv allow for configuration changes to be made? Well,
the fri encounter to that
is yes it does, but more crucially if so, what would that process look like?
Well, for a start,
we're going to have to have some particular data. We're going to have to know
which URL we're going
to be targeting to specify the resource we want to modify. We also want to
ensure that we've got a
content type header, specify the type of payload we're going to be sending. So WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
content type header, specify the type of payload we're going to be sending. So
if we're going to be
sending JSON like data, we want to specify this in the content type header.
Whereas, if for example,
we were sending over an XML based payload, we would also want to specify this
in the content type.
Very crucially low, we would have to take a look at the HTTP methods we were
using, for example,
to make a configuration change. We would not use a get request. We would be
using things like a
post request or maybe a put request. And very, very importantly, we would have
to ensure that the WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
configuration change we were trying to make at either config we are sending
over to the device
is actually modeled according to the correct young structure. Now, as we saw,
we had a little bit
of a cheat code shortcut to get this structure. We can configure the thing we
want on the device
itself first and then use a get request to retrieve that information and then
use as a template for
our future payloads. So that is us for our validation challenge on using rest
conn to manage and validate
our configuration changes. I hope it's been informative for you and I'd like to
thank you for WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
thank you for