9 #include <boost/function.hpp>
16 #include <vnc_cfg_types.h>
27 using namespace autogen;
39 if (property_id < 0) {
50 LOG(ERROR,
"ID-PERM not set for object <" << key->
id_name <<
"> Table <" <<
51 table->
name() <<
">. Ignoring it");
57 return VirtualMachine::ID_PERMS;
59 return VirtualNetwork::ID_PERMS;
61 return VirtualMachineInterface::ID_PERMS;
63 return AccessControlList::ID_PERMS;
65 return ServiceInstance::ID_PERMS;
67 return ServiceTemplate::ID_PERMS;
69 return SecurityGroup::ID_PERMS;
71 return LogicalInterface::ID_PERMS;
73 return PhysicalRouter::ID_PERMS;
75 return ServiceHealthCheck::ID_PERMS;
77 return autogen::QosConfig::ID_PERMS;
79 return autogen::QosQueue::ID_PERMS;
81 return autogen::ForwardingClass::ID_PERMS;
83 return autogen::BridgeDomain::ID_PERMS;
85 return autogen::SecurityLoggingObject::ID_PERMS;
87 return autogen::PortTuple::ID_PERMS;
89 return autogen::ApplicationPolicySet::ID_PERMS;
91 return autogen::FirewallPolicy::ID_PERMS;
93 return autogen::FirewallRule::ID_PERMS;
95 return autogen::Tag::ID_PERMS;
97 return autogen::MulticastPolicy::ID_PERMS;
133 if (req_id->
IsPropertySet(VirtualMachineInterface::MAC_ADDRESSES) ==
138 const VirtualMachineInterface *vmi =
139 dynamic_cast<const VirtualMachineInterface *
>(req_id);
141 (vmi->mac_addresses().size() == 0)) {
IFMapAgentTable * cfg_port_tuple_table() const
IFMapAgentTable * cfg_forwarding_class_table() const
static const MacAddress & ZeroMac()
bool IsPropertySet(int id) const
std::unique_ptr< DBRequestData > data
IFMapAgentTable * cfg_service_template_table() const
int GetIdPermsPropertyId(DBTable *table) const
std::string ToString() const
IFMapAgentTable * cfg_physical_device_table() const
IFMapAgentTable * cfg_vm_interface_table() const
std::unique_ptr< DBRequestKey > key
IFMapAgentTable * cfg_tag_table() const
IFMapAgentTable * cfg_multicast_policy_table() const
bool CheckVmInterfaceProperty(DBTable *table, const IFMapIdentifier *req_id, DBRequest *req)
const std::string & name() const
bool CheckProperty(DBTable *table, IFMapNode *node, DBRequest *req)
IFMapAgentTable * cfg_firewall_rule_table() const
IFMapAgentTable * cfg_qos_queue_table() const
IFMapAgentTable * cfg_policy_set_table() const
IFMapAgentTable * cfg_health_check_table() const
IFMapAgentTable * cfg_logical_port_table() const
IFMapAgentTable * cfg_firewall_policy_table() const
IFMapAgentTable * cfg_qos_table() const
bool CheckIdPermsProperty(DBTable *table, const IFMapIdentifier *req_id, DBRequest *req, int property_id)
IFMapAgentTable * cfg_acl_table() const
std::unique_ptr< IFMapObject > content
CfgFilter(AgentConfig *cfg)
IFMapAgentTable * cfg_bridge_domain_table() const
#define LOG(_Level, _Msg)
IFMapAgentTable * cfg_vn_table() const
IFMapAgentTable * cfg_slo_table() const
void RegisterPreFilter(PreFilterFn fn)
IFMapAgentTable * cfg_vm_table() const
IFMapAgentTable * cfg_service_instance_table() const
IFMapAgentTable * cfg_security_group_table() const