[ https://issues.apache.org/jira/browse/CLOUDSTACK-8837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bharat Kumar updated CLOUDSTACK-8837: ------------------------------------- Summary: Read from the file system to get the state of the interface instead of using subprocess command. (was: read from the file system to get the state of the interface instead of using subprocess command.) > Read from the file system to get the state of the interface instead of using > subprocess command. > ------------------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-8837 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8837 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Virtual Router > Affects Versions: 4.6.0 > Reporter: Bharat Kumar > Fix For: Future > > > Hi, > The subprocess method of python should be use only when there is no other > alternative. we can avoid using it to find state of the interface. > use cat /sys/class/net/eth0/operstate and python file I/O instead of ip link > show command to get the sate of the device or to list the devices that are > available. -- This message was sent by Atlassian JIRA (v6.3.4#6332)