<div dir="ltr"><div dir="ltr"><div class="gmail_default" 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">https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Create-a-face</a></div><div class="gmail_default" 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 class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large">Yours, Otavio<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 3 de out. de 2023 às 10:44, Junxiao Shi <<a href="mailto:shijunxiao@arizona.edu">shijunxiao@arizona.edu</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Otavio<div><br></div><div>The underlying protocol of 'nfdc' command is the NFD Management Protocol:</div><div><a href="https://redmine.named-data.net/projects/nfd/wiki/Management" target="_blank">https://redmine.named-data.net/projects/nfd/wiki/Management</a><br></div><div><br></div><div>If you are looking for a library solution,</div><div><ul><li>ndn-cxx is the library powering nfdc command, so that it has all the features.</li><li>python-ndn and NDNts each have a partial implementation. Additional features can be requested via the respective issue tracker.</li></ul></div><div><br></div><div>You can also simply run 'nfdc' in another container, to interact with the NFD container:</div><div><font face="monospace">docker pull howardz21/nfd-docker<br>docker volume create nfd<br>docker run -d --rm --name nfd --cap-add NET_ADMIN --mount type=volume,source=nfd,target=/run/nfd howardz21/nfd-docker nfd<br>docker run --rm --mount type=volume,source=nfd,target=/var/run/nfd,readonly=true howardz21/nfd-docker nfdc face list<br></font></div><div><br></div><div>Yours, Junxiao</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 3, 2023 at 8:54 AM Otávio Augusto via Ndn-interest <<a href="mailto:ndn-interest@lists.cs.ucla.edu" target="_blank">ndn-interest@lists.cs.ucla.edu</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="auto">Hello everybody.<div dir="auto"><br></div><div dir="auto">I have an NFD (v. 0.6.1) running in a container and I would like a solution that allows me to perform runtime procedures similar to nfdc (like create/destroy routes, faces...), but not through a terminal. I believe that the ideal option for my case would be an NFD client that connects to the NFD process in operation and can send these commands for the NFD to execute them.</div><div dir="auto"><br></div><div dir="auto">In my research, I found the python-ndn project (<a href="https://github.com/named-data/python-ndn" rel="noreferrer" target="_blank">https://github.com/named-data/python-ndn</a>), as far as I understand, it doesn't support the operations I need.</div><div dir="auto"><br></div><div dir="auto">So, is there any solution in this regard? If it doesn't exist, the best way I see to solve this problem is to create an application that executes the nfdc command as in the terminal and returns the result (like the "os" library in Python), but this seems like something with many potential problems.</div></div>
_______________________________________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
</blockquote></div>
</blockquote></div></div>