<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>