Class: Specinfra::Command::Linux::Base::Bridge

Inherits:
Base::Bridge show all
Defined in:
lib/specinfra/command/linux/base/bridge.rb

Class Method Summary collapse

Methods inherited from Base

create, escape

Class Method Details

.check_exists(name) ⇒ Object


3
4
5
# File 'lib/specinfra/command/linux/base/bridge.rb', line 3

def check_exists(name)
  "ip link show #{name}"
end

.check_has_interface(name, interface) ⇒ Object


7
8
9
# File 'lib/specinfra/command/linux/base/bridge.rb', line 7

def check_has_interface(name, interface)
  "brctl show #{name} | grep -o #{interface}"
end