<div dir="ltr"><div>Hi Otávio</div><div><br></div><div>python-ndn <a href="https://github.com/named-data/python-ndn/blob/aa6f29742cbbe1f06c59e64dafaee893144f2889/src/ndn/app_support/nfd_mgmt.py">nfd_mgmt.py</a> has:</div><div><ul><li>TLV models for face and route</li><li>functions for making a command and parsing a response</li></ul><div>These can satisfy create and destroy operations for faces and routes, but you have to follow the rules defined by the protocol.</div><div>For list operation, TLV models are there, but there's no functions for parsing the response.</div></div><div><br></div><div>You can access the Docker Engine from the script instead of CLI, by using a Docker client library such as <a href="https://github.com/apocas/dockerode">dockerode</a>.</div><div><br></div><div>Yours, Junxiao</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 3, 2023 at 4:00 PM Otávio Augusto <<a href="mailto:otavio.augusto.snc@gmail.com">otavio.augusto.snc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif;font-size:large">Hello, Junxiao. Thanks a lot for the quick response.<br><br>More specifically, I need to list, create, and destroy operations for faces and routes at runtime. My use case requires these operations autonomously and based on some network states, which is why using the command line (nfdc) does not satisfy me.<br><br>I believe that NFD Management Protocol is a viable solution to my problem, perhaps with a greater workload than I would like. If I understand correctly, I have to use ndn-cxx together with the rules defined by the protocol to perform the operations I need. For example, to request the creation of a face, I could use as described in <a href="https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Create-a-face" target="_blank">https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Create-a-face</a></div><div style="font-family:tahoma,sans-serif;font-size:large"><br>The operations I need seem to be "basic", so I suppose there is a high chance of python-ndn implementing them. However, at first, I couldn't find any of these operations that I mentioned in the examples or the python-ndn code. I need more time to confirm. If not, I can request it as a new resource, as mentioned.<br>The solution described via container does not seem to have the features I need, because I would still need to execute it manually on the command line.<br></div><div style="font-family:tahoma,sans-serif;font-size:large"><br></div><div style="font-family:tahoma,sans-serif;font-size:large">Yours, Otavio<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
</blockquote></div>
</blockquote></div></div>
</blockquote></div></div>