Skip to content
Snippets Groups Projects
Commit a5813e8b authored by Alessandro Costantini's avatar Alessandro Costantini
Browse files

Facter added for network bridges

parent 26761d62
No related branches found
No related tags found
1 merge request!12Network extdouble
# brex1_eval.rb
# Evaluate the status of br-ex1 in the network node
Facter.add(:brex1_eval) do
setcode do
Facter::Util::Resolution.exec("/usr/bin/ovs-vsctl br-get-external-id br-ex1 | /usr/bin/awk -F= '{print $2}'")
end
end
# brex2_eval.rb
# Evaluate the status of br-ex1 in the network node
Facter.add(:brex2_eval) do
setcode do
Facter::Util::Resolution.exec("/usr/bin/ovs-vsctl br-get-external-id br-ex2 | /usr/bin/awk -F= '{print $2}'")
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment