Example #1
0
 /**
  * Perform manual remove of veth pair device on host side if needed
  *
  * @return boolean
  */
 public function vethCleanup()
 {
     $veth = $this->getVeth();
     if (!$veth) {
         return false;
     }
     $out = $this->controller->launchExecutable('ip', "link show {$veth}");
     if (false === strpos($out, 'does not exist')) {
         $this->controller->launchExecutable('ip', 'link del ' . $veth);
         return true;
     }
     return false;
 }