Skip to content

Instantly share code, notes, and snippets.

@aschmidt75
Created March 3, 2015 16:47
Show Gist options
  • Save aschmidt75/a0452a6f58cfdf4ccd18 to your computer and use it in GitHub Desktop.
Save aschmidt75/a0452a6f58cfdf4ccd18 to your computer and use it in GitHub Desktop.
sample serverspec snippet for testing openvswitch bridges
describe ovs_bridge 'port.47' do
it { should exist } # br-exists
it { should be_tagged } # br-to-vlan != 0
its(:tag) { should eq 47 } # br-to-vlan
its(:parent) { should eq 'trunk0' } # br-to-parent
it { should have_interfaces } # list-ifaces
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment