def load_remote_groups(self): """ Load security groups and their rules from EC2 Save and return SecurityGroups object :rtype : object """ self.remote = SecurityGroups(vpc=self.vpc, only_groups=self.only_groups) self.remote.load_remote_groups() return self.remote
def load_local_groups(self, config, mode): """ Load local groups from config file Save and return SecurityGroups object :param config: configuration file path :rtype : object """ self.local = SecurityGroups(vpc=self.vpc, only_groups=self.only_groups) self.local.load_local_groups(config, mode) return self.local
def load_local_groups(self, config): """ Load local groups from config file Save and return SecurityGroups object :param config: configuration file path :rtype : object """ self.local = SecurityGroups() self.local.load_local_groups(config) return self.local