10 #include <boost/function.hpp>
17 #include <vnc_cfg_types.h>
40 if (property_id < 0) {
51 LOG(ERROR,
"ID-PERM not set for object <" << key->
id_name <<
"> Table <" <<
52 table->
name() <<
">. Ignoring it");
58 return VirtualMachine::ID_PERMS;
60 return VirtualNetwork::ID_PERMS;
62 return VirtualMachineInterface::ID_PERMS;
64 return AccessControlList::ID_PERMS;
66 return ServiceInstance::ID_PERMS;
68 return ServiceTemplate::ID_PERMS;
70 return SecurityGroup::ID_PERMS;
72 return LogicalInterface::ID_PERMS;
74 return PhysicalRouter::ID_PERMS;
76 return ServiceHealthCheck::ID_PERMS;
78 return autogen::QosConfig::ID_PERMS;
80 return autogen::QosQueue::ID_PERMS;
82 return autogen::ForwardingClass::ID_PERMS;
84 return autogen::BridgeDomain::ID_PERMS;
86 return autogen::SecurityLoggingObject::ID_PERMS;
88 return autogen::PortTuple::ID_PERMS;
90 return autogen::ApplicationPolicySet::ID_PERMS;
92 return autogen::FirewallPolicy::ID_PERMS;
94 return autogen::FirewallRule::ID_PERMS;
96 return autogen::Tag::ID_PERMS;
98 return autogen::MulticastPolicy::ID_PERMS;
134 if (req_id->
IsPropertySet(VirtualMachineInterface::MAC_ADDRESSES) ==
139 const VirtualMachineInterface *vmi =
140 dynamic_cast<const VirtualMachineInterface *
>(req_id);
142 (vmi->mac_addresses().size() == 0)) {
IFMapAgentTable * cfg_forwarding_class_table() const
IFMapAgentTable * cfg_physical_device_table() const
IFMapAgentTable * cfg_service_instance_table() const
IFMapAgentTable * cfg_logical_port_table() const
IFMapAgentTable * cfg_qos_queue_table() const
IFMapAgentTable * cfg_tag_table() const
IFMapAgentTable * cfg_security_group_table() const
IFMapAgentTable * cfg_vn_table() const
IFMapAgentTable * cfg_acl_table() const
IFMapAgentTable * cfg_qos_table() const
IFMapAgentTable * cfg_health_check_table() const
IFMapAgentTable * cfg_firewall_policy_table() const
IFMapAgentTable * cfg_slo_table() const
IFMapAgentTable * cfg_service_template_table() const
IFMapAgentTable * cfg_firewall_rule_table() const
IFMapAgentTable * cfg_vm_interface_table() const
IFMapAgentTable * cfg_bridge_domain_table() const
IFMapAgentTable * cfg_port_tuple_table() const
IFMapAgentTable * cfg_multicast_policy_table() const
IFMapAgentTable * cfg_policy_set_table() const
IFMapAgentTable * cfg_vm_table() const
bool CheckProperty(DBTable *table, IFMapNode *node, DBRequest *req)
int GetIdPermsPropertyId(DBTable *table) const
bool CheckIdPermsProperty(DBTable *table, const IFMapIdentifier *req_id, DBRequest *req, int property_id)
bool CheckVmInterfaceProperty(DBTable *table, const IFMapIdentifier *req_id, DBRequest *req)
CfgFilter(AgentConfig *cfg)
const std::string & name() const
void RegisterPreFilter(PreFilterFn fn)
bool IsPropertySet(int id) const
std::string ToString() const
static const MacAddress & ZeroMac()
#define LOG(_Level, _Msg)
std::unique_ptr< DBRequestKey > key
std::unique_ptr< DBRequestData > data
std::unique_ptr< IFMapObject > content