Created
March 3, 2015 16:47
-
-
Save aschmidt75/a0452a6f58cfdf4ccd18 to your computer and use it in GitHub Desktop.
sample serverspec snippet for testing openvswitch bridges
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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