Class: Dcmgr::VNet::Isolators::BySecurityGroup
- Inherits:
-
Dcmgr::VNet::Isolator
- Object
- Dcmgr::VNet::Isolator
- Dcmgr::VNet::Isolators::BySecurityGroup
- Defined in:
- lib/dcmgr/vnet/isolators/by_securitygroup.rb
Overview
Isolates instances based on security groups Access to instances in another security group is blocked
Instance Method Summary collapse
Instance Method Details
#determine_friends(me, others) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/dcmgr/vnet/isolators/by_securitygroup.rb', line 10 def determine_friends(me,others) #TODO: make sure that me and others are vnic maps others.dup.delete_if { |other| # Delete if we are not in the same security group me[:security_groups].find {|my_group| other[:security_groups].member?(my_group) }.nil? } end |