On summary note, I planned to display the ethernet interfaces from multiple machines (drones) and user can choose on which interface the data has to be sent and on which interface the data has to be received.On Wednesday, May 31, 2023 at 4:32:03 PM UTC+5:30 V Vijayan wrote:Hi Srivats,I use the below command to get the list of interfaces available in the drone hardware.o_ports = self.drone.getPortConfig(self.drone.getPortIdList())
for o_port in o_ports.port:
print('%d.%s (%s)' % (o_port.port_id.id, o_port.name, o_port.description))I would like to1) identify the interface type say it is ethernet or loopback
if ('lo' in port.name or 'loopback' in port.description.lower()): tx_port_number = port.port_id.id rx_port_number = port.port_id.id
2) state of the hardware like link up or link down
This interfaces list needs to be displayed to user choose the sending and receiving interface. So, cant display all the interface of drone like loopback,
--
Get Ostinato News and Updates on Twitter - Follow @ostinato (http://twitter.com/ostinato)
---
You received this message because you are subscribed to the Google Groups "ostinato" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ostinato+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ostinato/bb020424-2ec1-44a7-b960-1f0cda1d6025n%40googlegroups.com.