37 using namespace boost::uuids;
40 InitIgnoreAddressMap();
50 const std::string &name,
55 vm_(NULL, this), vn_(NULL), primary_ip_addr_(0), subnet_bcast_addr_(0),
56 primary_ip6_addr_(), vm_mac_(
MacAddress::kZeroMac), policy_enabled_(false),
57 mirror_entry_(NULL), mirror_direction_(MIRROR_RX_TX), cfg_name_(
""),
58 fabric_port_(true), need_linklocal_ip_(false), drop_new_flows_(false),
59 dhcp_enable_(true), dhcp_enable_v6_(false), do_dhcp_relay_(false), proxy_arp_mode_(PROXY_ARP_NONE),
60 vm_name_(), vm_project_uuid_(nil_uuid()), vxlan_id_(0), bridging_(false),
61 layer3_forwarding_(true), flood_unknown_unicast_(false),
62 mac_set_(false), ecmp_(false), ecmp6_(false), disable_policy_(false),
63 tx_vlan_id_(kInvalidVlanId), rx_vlan_id_(kInvalidVlanId), parent_(NULL, this),
64 local_preference_(0), oper_dhcp_options_(),
65 cfg_igmp_enable_(false), igmp_enabled_(false),
66 mac_ip_learning_enable_(false), max_flows_(0),
74 sg_list_(), tag_list_(), floating_ip_list_(), alias_ip_list_(), service_vlan_list_(),
75 static_route_list_(), allowed_address_pair_list_(),
76 instance_ipv4_list_(true), instance_ipv6_list_(false), fat_flow_list_(),
77 vrf_assign_rule_list_(), vm_ip_service_addr_(0),
81 configurer_(0), subnet_(0), subnet_plen_(0), ethernet_tag_(0),
82 logical_interface_(nil_uuid()), nova_ip_addr_(0), nova_ip6_addr_(),
83 dhcp_addr_(0), metadata_ip_map_(), hc_instance_set_(),
84 ecmp_load_balance_(), service_health_check_ip_(), is_vn_qos_config_(false),
85 learning_enabled_(false), etree_leaf_(false), layer2_control_word_(false),
86 slo_list_(), forwarding_vrf_(NULL), vhostuser_mode_(vHostUserClient),
89 service_intf_type_(
""),
101 const std::string &name,
103 const std::string &vm_name,
105 uint16_t tx_vlan_id, uint16_t rx_vlan_id,
108 uint8_t vhostuser_mode,
bool os_oper_state,
111 logical_router_uuid),
112 vm_(NULL, this), vn_(NULL), primary_ip_addr_(addr), subnet_bcast_addr_(0),
113 primary_ip6_addr_(a6), vm_mac_(mac), policy_enabled_(false),
114 mirror_entry_(NULL), mirror_direction_(MIRROR_RX_TX), cfg_name_(
""),
115 fabric_port_(true), need_linklocal_ip_(false), drop_new_flows_(false),
116 dhcp_enable_(true), dhcp_enable_v6_(false), do_dhcp_relay_(false), proxy_arp_mode_(PROXY_ARP_NONE),
117 vm_name_(vm_name), vm_project_uuid_(vm_project_uuid), vxlan_id_(0),
118 bridging_(false), layer3_forwarding_(true),
119 flood_unknown_unicast_(false), mac_set_(false),
120 ecmp_(false), ecmp6_(false), disable_policy_(false),
121 tx_vlan_id_(tx_vlan_id), rx_vlan_id_(rx_vlan_id), parent_(parent, this),
122 local_preference_(0), oper_dhcp_options_(),
123 cfg_igmp_enable_(false), igmp_enabled_(false),
124 mac_ip_learning_enable_(false), max_flows_(0),
132 sg_list_(), tag_list_(),
133 floating_ip_list_(), alias_ip_list_(), service_vlan_list_(),
134 static_route_list_(), allowed_address_pair_list_(),
135 instance_ipv4_list_(true), instance_ipv6_list_(false), fat_flow_list_(),
136 vrf_assign_rule_list_(), device_type_(device_type),
137 vmi_type_(vmi_type), hbs_intf_type_(
VmInterface::HBS_INTF_INVALID),
138 configurer_(0), subnet_(0),
139 subnet_plen_(0), ethernet_tag_(0), logical_interface_(nil_uuid()),
140 nova_ip_addr_(0), nova_ip6_addr_(), dhcp_addr_(0), metadata_ip_map_(),
141 hc_instance_set_(), service_health_check_ip_(), is_vn_qos_config_(false),
142 learning_enabled_(false), etree_leaf_(false), layer2_control_word_(false),
143 slo_list_(), forwarding_vrf_(NULL), vhostuser_mode_(vhostuser_mode),
146 service_intf_type_(
""),
179 if (
uuid_ == nil_uuid() && intf.
uuid_ == nil_uuid()) {
187 return "VM-PORT <" +
name() +
">";
203 if (
vrf_ &&
vrf_->GetName() !=
"") {
238 key->
id_type =
"virtual-machine-interface";
243 const std::string &vrf_name) {
261 return Resync(table, data);
278 bool force_update =
false;
285 ret = data->
OnResync(table,
this, &force_update);
286 std::string ri_name =
"";
290 size_t pos = fqdn_name.rfind(
":");
291 if (pos != std::string::npos)
295 ri_name = fqdn_name +
":" + fqdn_name.substr(pos, fqdn_name.length());
300 if (ri_name !=
"" && ri_name !=
vrf_name_) {
370 ApplyConfig(old_ipv4_active, old_l2_active, old_ipv6_active,
371 old_subnet, old_subnet_plen);
381 bool old_ipv6_active,
383 uint8_t old_subnet_plen) {
430 (old_subnet.is_unspecified() && old_subnet_plen == 0)) {
548 int new_vxlan_id =
vn_.get() ?
vn_->GetVxLanId() : 0;
563 return state->
Update(
agent,
this, l2_force_op, l3_force_op);
588 return (new_op > old_op) ? new_op : old_op;
592 Op l2_force_op,
Op l3_force_op)
const {
608 if (
AddL3(agent, vmi))
612 if (
AddL2(agent, vmi))
680 vmi->
vm_mac(), vmi, flood_dhcp);
698 (SecurityGroupEntrySet::iterator &it) {
699 it->set_del_pending(
true);
705 SecurityGroupEntrySet::iterator it = list_.begin();
706 while (it != list_.end()) {
707 SecurityGroupEntrySet::iterator prev = it++;
711 if (prev->del_pending()) {
737 bool VmInterface::SecurityGroupEntry::operator ==
739 return uuid_ == rhs.uuid_;
742 bool VmInterface::SecurityGroupEntry::operator()
744 return lhs.IsLess(&rhs);
764 if (sg_.get() != NULL)
785 std::string ignore_addr_value,
787 IpAddress in_src_prefix, uint8_t in_src_prefix_mask,
788 uint8_t in_src_aggregate_plen,
789 IpAddress in_dst_prefix, uint8_t in_dst_prefix_mask,
790 uint8_t in_dst_aggregate_plen) :
791 protocol(proto), port(p) {
805 const std::string &ignore_addr_str,
806 const std::string &in_src_prefix_str,
const int &in_src_prefix_mask,
807 const int &in_src_aggregate_plen,
808 const std::string &in_dst_prefix_str,
const int &in_dst_prefix_mask,
809 const int &in_dst_aggregate_plen) {
812 uint8_t src_prefix_mask = 0, src_aggregate_plen = 0;
813 IpAddress dst_prefix, empty_prefix, empty_prefix_v6 = IpAddress::from_string(
"0::0");
814 uint8_t dst_prefix_mask = 0, dst_aggregate_plen = 0;
824 if ((protocol == IPPROTO_ICMP) || (protocol == IPPROTO_ICMPV6)) {
825 protocol = IPPROTO_ICMP;
829 if (in_src_prefix_str.length() > 0) {
831 src_prefix = IpAddress::from_string(in_src_prefix_str);
832 src_prefix_mask = in_src_prefix_mask;
833 src_aggregate_plen = in_src_aggregate_plen;
834 if (src_prefix.is_v4()) {
845 if (in_dst_prefix_str.length() > 0) {
846 dst_prefix = IpAddress::from_string(in_dst_prefix_str);
847 dst_prefix_mask = in_dst_prefix_mask;
848 dst_aggregate_plen = in_dst_aggregate_plen;
849 if (dst_prefix.is_v4()) {
858 if (dst_prefix.is_v4()) {
864 if (dst_prefix.is_v4()) {
873 src_prefix = empty_prefix;
875 src_aggregate_plen = 0;
878 src_prefix = empty_prefix;
880 src_aggregate_plen = 0;
883 src_prefix = empty_prefix_v6;
885 src_aggregate_plen = 0;
890 dst_prefix = empty_prefix;
892 dst_aggregate_plen = 0;
895 dst_prefix = empty_prefix;
897 dst_aggregate_plen = 0;
900 dst_prefix = empty_prefix_v6;
902 dst_aggregate_plen = 0;
908 src_prefix = empty_prefix_v6;
911 dst_prefix = empty_prefix_v6;
915 ignore_addr_str, prefix_aggregate, src_prefix, src_prefix_mask,
916 src_aggregate_plen, dst_prefix, dst_prefix_mask, dst_aggregate_plen);
921 LOG(ERROR,
"Protocol:" << (
int) protocol <<
" Port:" << port <<
" IgnoreAddr:" << ignore_address
922 <<
" PrefixAggr:" << prefix_aggregate <<
" SrcPrefix:" << src_prefix.to_string() <<
"/" << (
int) src_prefix_mask
923 <<
" SrcAggrPlen:" << (
int) src_aggregate_plen <<
" DstPrefix:" << dst_prefix.to_string() <<
"/" << (
int) dst_prefix_mask
924 <<
" DstAggrPlen:" << (
int) dst_aggregate_plen);
944 it->set_del_pending(
true);
949 FatFlowEntrySet::iterator it = list_.begin();
950 while (it != list_.end()) {
951 FatFlowEntrySet::iterator prev = it++;
952 if (prev->del_pending_) {
960 LOG(ERROR,
"Dumping FatFlowList:\n");
961 for (FatFlowEntrySet::iterator it = list_.begin(); it != list_.end(); it++) {
980 it->set_del_pending(
true);
986 BridgeDomainEntrySet::iterator it = list_.begin();
987 while (it != list_.end()) {
988 BridgeDomainEntrySet::iterator prev = it++;
989 if (prev->del_pending_ ==
false) {
995 if (prev->bridge_domain_->vrf() == NULL) {
996 prev->del_pending_ =
true;
1000 if (prev->del_pending_) {
1334 if (vmi->
vn() == NULL) {
1345 std::string vn_name;
1346 if (vmi->
vn() != NULL) {
1360 sg_id_list, tag_id_list);
1392 if (
vrf_ == NULL || vmi->
vn() == NULL)
1414 do_dhcp_relay_(false) {
1456 if (
vrf_ == NULL ||
ip_.is_unspecified())
1464 if (
vrf_ == NULL || vmi->
vn() == NULL ||
ip_.is_unspecified())
1499 if (
vrf_ == NULL || vmi->
vn() == NULL)
1539 it->set_del_pending(
true);
1545 InstanceIpSet::iterator it = list_.begin();
1547 while (it != list_.end()) {
1548 InstanceIpSet::iterator prev = it++;
1551 if (prev->del_pending() ==
false)
1552 prev->SetPrefixForAllocUnitIpam(vmi);
1554 if (prev->del_pending()) {
1564 is_primary_(false), is_service_ip_(false),
1565 is_service_health_check_ip_(false), is_local_(false),
1572 ip_(rhs.ip_), plen_(rhs.plen_),
ecmp_(rhs.
ecmp_),
1573 is_primary_(rhs.is_primary_), is_service_ip_(rhs.is_service_ip_),
1574 is_service_health_check_ip_(rhs.is_service_health_check_ip_),
1575 is_local_(rhs.is_local_), tracking_ip_(rhs.tracking_ip_),
1580 bool ecmp,
bool is_primary,
1582 bool is_service_health_check_ip,
1586 is_primary_(is_primary), is_service_ip_(is_service_ip),
1587 is_service_health_check_ip_(is_service_health_check_ip),
1588 is_local_(is_local), tracking_ip_(tracking_ip),
vrf_(NULL),
1601 return ip_ < rhs->
ip_;
1605 if (vmi->
vn() == NULL)
1610 uint8_t alloc_prefix = 0;
1611 if (alloc_unit > 0) {
1612 alloc_prefix = log2(alloc_unit);
1617 }
else if (ip_.is_v6()) {
1630 if (instance_ip->
ip_.is_v6()) {
1700 assert(ip_.is_unspecified() ==
false);
1701 std::string vn_name;
1709 is_force_policy(),
ecmp_,is_local_,
1745 LearntMacIpSet::iterator it = list_.find(*rhs);
1746 if (it != list_.end()) {
1747 it->set_del_pending(
true);
1754 LearntMacIpSet::iterator it = list_.begin();
1756 while (it != list_.end()) {
1757 LearntMacIpSet::iterator prev = it++;
1761 if (prev->del_pending()) {
1777 ip_(rhs.ip_), mac_(rhs.mac_),
1796 if (mac_ip->
ip_.is_v6()) {
1808 return ip_ < rhs->
ip_;
1813 if (del_pending() ==
true)
1846 l2_nh_policy_ =
static_cast<NextHop *
>
1852 l2_nh_no_policy_ =
static_cast<NextHop *
>
1857 l2_label_ = l2_nh_policy_->mpls_label()->label();
1859 l2_label_ = l2_nh_no_policy_->mpls_label()->label();
1878 l2_nh_policy_.reset();
1879 l2_nh_no_policy_.reset();
1912 l3_nh_policy_ =
static_cast<NextHop *
>
1918 l3_nh_no_policy_ =
static_cast<NextHop *
>
1924 l3_label_ = l3_nh_no_policy_->mpls_label()->label();
1926 std::string vn_name;
1960 l3_nh_policy_.reset();
1961 l3_nh_no_policy_.reset();
1984 FloatingIpSet::iterator prev = it++;
1985 if (prev->del_pending_ ==
false)
2006 if (prev->floating_ip_.is_v4()) {
2018 std::pair<FloatingIpSet::iterator, bool> ret = list_.insert(*rhs);
2042 it->set_del_pending(
true);
2049 FloatingIpSet::iterator it = list_.begin();
2050 while (it != list_.end()) {
2051 FloatingIpSet::iterator prev = it++;
2062 fixed_ip_(), direction_(DIRECTION_BOTH), port_map_enabled_(false),
2063 src_port_map_(), dst_port_map_(),
ethernet_tag_(0), port_nat_(false) {
2069 floating_ip_(rhs.floating_ip_),
vn_(rhs.
vn_),
vrf_(rhs.
vrf_, this),
2071 direction_(rhs.direction_), port_map_enabled_(rhs.port_map_enabled_),
2072 src_port_map_(rhs.src_port_map_), dst_port_map_(rhs.dst_port_map_),
2077 const std::string &
vrf,
2081 bool port_map_enabled,
2087 direction_(direction), port_map_enabled_(port_map_enabled),
2088 src_port_map_(src_port_map), dst_port_map_(dst_port_map),
ethernet_tag_(0),
2089 port_nat_(port_nat) {
2111 if (fixed_ip_.is_unspecified()) {
2112 if (floating_ip_.is_v4() ==
true) {
2122 return port_map_enabled_;
2126 return src_port_map_.size();
2134 uint16_t src_port)
const {
2136 if (it == src_port_map_.end())
2142 uint16_t dst_port)
const {
2144 if (it == dst_port_map_.end())
2160 if (
vn_.get() == NULL)
2163 if (
vrf_.get() == NULL)
2175 if (vmi->
vrf() == NULL || vmi->
vn() == NULL)
2183 if (
vrf_.get() == NULL ||
vn_.get() == NULL || port_nat_)
2186 fixed_ip_ = GetFixedIp(vmi);
2187 uint8_t plen = floating_ip_.is_v4() ?
2190 if (floating_ip_.is_v6())
2193 bool ecmp = floating_ip_.is_v4() ? vmi->
ecmp() : vmi->
ecmp6();
2194 vmi->
AddRoute(
vrf_.get()->GetName(), floating_ip_, plen,
vn_->GetName(),
2210 if (
vrf_.get() == NULL)
2212 uint8_t plen = floating_ip_.is_v4() ?
2235 if (vmi->
vrf() == NULL || vmi->
vn() == NULL)
2246 if (
vrf_.get() == NULL ||
vn_.get() == NULL || port_nat_)
2259 (
vrf_->GetEvpnRouteTable());
2261 std::string vn_name;
2275 if (
vrf_.get() == NULL)
2280 if (evpn_table == NULL) {
2285 vmi->
vm_mac(), vmi, floating_ip_,
2294 std::pair<AliasIpSet::iterator, bool> ret = list_.insert(*rhs);
2309 it->set_del_pending(
true);
2315 AliasIpSet::iterator it = list_.begin();
2316 while (it != list_.end()) {
2317 AliasIpSet::iterator prev = it++;
2328 AliasIpSet::iterator prev = it++;
2329 if (prev->del_pending_ ==
false)
2332 if (prev->alias_ip_.is_v4()) {
2398 if (
vn_.get() == NULL) {
2403 if (
vrf_.get() == NULL) {
2411 if (
vrf_.get() == NULL ||
vn_.get() == NULL)
2414 uint8_t plen = alias_ip_.is_v4() ?
2417 if (alias_ip_.is_v6())
2419 vmi->
AddRoute(
vrf_->GetName(), alias_ip_, plen,
vn_->GetName(),
false,
2429 uint8_t plen = alias_ip_.is_v4() ?
2451 it->set_del_pending(
true);
2457 StaticRouteSet::iterator it = list_.begin();
2458 while (it != list_.end()) {
2459 StaticRouteSet::iterator prev = it++;
2463 if (prev->del_pending_) {
2478 vrf_(rhs.
vrf_), addr_(rhs.addr_), plen_(rhs.plen_), gw_list_(rhs.gw_list_),
2479 communities_(rhs.communities_) {
2486 communities_(communities) {
2498 if (addr_ != rhs->
addr_)
2499 return addr_ < rhs->
addr_;
2501 if (plen_ != rhs->
plen_) {
2502 return plen_ < rhs->
plen_;
2505 return gw_list_.size() < rhs->
gw_list_.size();
2532 std::string vn_name;
2539 if (addr_.is_v4() && !gw_list_.empty() && gw_list_[0] !=
Ip4Address(0)) {
2548 vn_list.insert(vn_name);
2551 bool native_encap =
false;
2555 native_encap =
true;
2560 (
peer,
vrf_->GetName(), addr_.to_v4(), plen_,
2561 gw_list_, vn_list, vmi->
vrf_->table_label(),
2562 sg_id_list, tag_id_list, communities_, native_encap);
2566 if (addr_.is_v4()) {
2569 }
else if (addr_.is_v6()) {
2575 dependent_ip, communities_, vmi->
label(),
2613 (AllowedAddressPairSet::iterator &it) {
2614 it->set_del_pending(
true);
2620 AllowedAddressPairSet::iterator it = list_.begin();
2621 while (it != list_.end()) {
2622 AllowedAddressPairSet::iterator prev = it++;
2623 if (!prev->del_pending_)
2631 while (it != list_.end()) {
2632 AllowedAddressPairSet::iterator prev = it++;
2642 ecmp_config_changed_(false),
2650 addr_(rhs.addr_), plen_(rhs.plen_),
ecmp_(rhs.
ecmp_),
2652 ecmp_config_changed_(rhs.ecmp_config_changed_),
2654 policy_enabled_nh_(rhs.policy_enabled_nh_),
2655 policy_disabled_nh_(rhs.policy_disabled_nh_),
2660 uint32_t plen,
bool ecmp,
2663 mac_(
mac), ecmp_config_changed_(false),
2679 if (addr_ != rhs->
addr_)
2680 return addr_ < rhs->
addr_;
2682 if (plen_ != rhs->
plen_) {
2683 return plen_ < rhs->
plen_;
2686 return mac_ < rhs->
mac_;
2713 if (addr_.is_v4()) {
2720 }
else if (addr_.is_v6()) {
2738 if (addr_.is_v4()) {
2744 }
else if (addr_.is_v6()) {
2772 policy_enabled_nh_ = NULL;
2773 policy_disabled_nh_ = NULL;
2779 if (
vrf_ == NULL || vmi->
vn_ == NULL)
2801 policy_disabled_nh_ = nh;
2808 nexthop_table()->FindActiveEntry(&key1));
2811 policy_enabled_nh_ = nh;
2815 label_ = policy_enabled_nh_->mpls_label()->label();
2817 label_ = policy_disabled_nh_->mpls_label()->label();
2864 it->set_del_pending(
true);
2870 ServiceVlanSet::iterator it = list_.begin();
2871 while (it != list_.end()) {
2872 ServiceVlanSet::iterator prev = it++;
2873 if (prev->del_pending_ || prev->del_add_) {
2874 prev->Update(
agent, vmi);
2875 if (prev->del_pending_) {
2882 while (it != list_.end()) {
2883 ServiceVlanSet::iterator prev = it++;
2884 prev->Update(
agent, vmi);
2934 if (tag_.get() && tag_->tag_uuid() ==
uuid_) {
2939 typedef ::TagEntry GlobalTagEntry;
2941 FindActiveEntry(&tag_key));
2972 it->set_del_pending(
true);
2979 TagEntrySet::iterator it = list_.begin();
2980 while (it != list_.end()) {
2981 TagEntrySet::iterator prev = it++;
2985 if (prev->del_pending()) {
2999 addr6_(), old_addr6_(), smac_(), dmac_(),
vrf_(NULL, this),
3001 v6_rt_installed_(false), del_add_(false) {
3005 ListEntry(rhs.del_pending_), tag_(rhs.tag_),
3007 addr6_(rhs.addr6_), old_addr6_(rhs.old_addr6_),
3009 v4_rt_installed_(rhs.v4_rt_installed_),
3010 v6_rt_installed_(rhs.v6_rt_installed_), del_add_(false) {
3021 addr6_(addr6), old_addr6_(addr6),
3022 smac_(smac), dmac_(dmac),
vrf_(NULL, this),
3024 v6_rt_installed_(false), del_add_(false) {
3036 return tag_ < rhs->
tag_;
3045 if (v4_rt_installed_) {
3049 v4_rt_installed_ =
false;
3054 if (v6_rt_installed_) {
3058 v6_rt_installed_ =
false;
3062 if (del_pending_ ||
vrf_ !=
vrf || del_add_) {
3068 old_addr6_ = addr6_;
3069 bool old_del_add = del_add_;
3072 if (del_pending_ ||
vrf_ == NULL || old_del_add)
3079 AddCommon(
agent, vmi);
3093 if (addr_.is_unspecified() ==
false) {
3101 v4_rt_installed_ =
true;
3104 if (addr6_.is_unspecified() ==
false) {
3112 v6_rt_installed_ =
true;
3124 (
vrf_->GetBridgeRouteTable());
3152 (
vrf_->GetBridgeRouteTable());
3169 match_condition_(rhs.match_condition_) {
3173 (uint32_t
id,
const autogen::MatchConditionType &match_condition,
3174 const std::string &
vrf_name,
bool ignore_acl):
3176 match_condition_(match_condition) {
3204 it->set_del_pending(
true);
3211 VrfAssignRuleSet::iterator it = list_.begin();
3212 while (it != list_.end()) {
3213 VrfAssignRuleSet::iterator prev = it++;
3214 if (prev->del_pending_) {
3220 if (list_.size() == 0 || vmi->
IsActive() ==
false) {
3221 if (vrf_assign_acl_.get() != NULL) {
3222 vrf_assign_acl_ = NULL;
3225 req.
data.reset(NULL);
3235 for (it = list_.begin(); it != list_.end(); it++) {
3239 if (ace_spec.
Populate(&(it->match_condition_)) ==
false) {
3250 ace_spec.
action_l.push_back(vrf_translate_spec);
3258 req.
data.reset(
new AclData(agent1, NULL, acl_spec));
3265 assert(vrf_assign_acl_);
3282 it->set_del_pending(
true);
3289 VmiReceiveRouteSet::iterator it = list_.begin();
3290 while (it != list_.end()) {
3291 VmiReceiveRouteSet::iterator prev = it++;
3295 if (prev->del_pending_) {
3309 addr_(rhs.addr_), plen_(rhs.plen_), add_l2_(rhs.add_l2_) {
3325 if (addr_ != rhs->
addr_) {
3326 return addr_ < rhs->
addr_;
3329 if (plen_ != rhs->
plen_) {
3330 return plen_ < rhs->
plen_;
3333 return add_l2_ < rhs->
add_l2_;
3356 if (add_l2_ ==
false) {
3377 if (addr_.is_v6()) {
3378 table =
vrf_->GetInet6UnicastRouteTable();
3436 if (it->tag_ == NULL) {
3441 ::TagEntry::PolicySetList::const_iterator ps_it =
3442 it->tag_->policy_set_list().begin();
3443 for(; ps_it != it->tag_->policy_set_list().end(); ps_it++) {
3445 FirewallPolicyList::iterator fw_policy_it = tag_fp_list.begin();
3446 for (; fw_policy_it != tag_fp_list.end(); fw_policy_it++) {
3447 if (it->tag_->IsNeutronFwaasTag())
3448 new_fwaas_firewall_policy_list.push_back(*fw_policy_it);
3450 new_firewall_policy_list.push_back(*fw_policy_it);
3469 TagEntrySet::const_iterator it;
3471 if (it->del_pending_)
3473 if (it->tag_.get() == NULL)
3475 tag_id_list->push_back(it->tag_->tag_id());
3477 std::sort(tag_id_list->begin(), tag_id_list->end());
3501 assert(new_flow_count >= val);
3502 if ((new_flow_count + val) <
3507 if ((new_flow_count + val) >=
max_flows) {
boost::asio::ip::address_v6 Ip6Address
boost::asio::ip::address IpAddress
boost::asio::ip::address_v4 Ip4Address
#define FLOWS_LIMIT_UNLIMITED
std::vector< uint64_t > TagList
std::vector< int > SecurityGroupList
std::vector< Ip4Address > AddressList
std::set< std::string > VnListType
std::vector< std::string > CommunityList
bool Populate(const autogen::MatchConditionType *match_condition)
std::vector< ActionSpec > action_l
static const uint8_t kMaxV4PrefixLen
static Ip4Address GetIp4SubnetAddress(const Ip4Address &prefix, uint16_t plen)
static const uint8_t kMaxV6PrefixLen
static Ip6Address GetIp6SubnetAddress(const Ip6Address &prefix, uint16_t plen)
AgentDBEntry * FindActiveEntry(const DBEntry *key)
AgentDBEntry * Find(const DBEntry *key, bool ret_del)
virtual void Process(DBRequest &req)
IFMapNode * ifmap_node() const
InterfaceTable * interface_table() const
MetaDataIpAllocator * metadata_ip6_allocator() const
TagTable * tag_table() const
PortIpcHandler * port_ipc_handler() const
VrfTable * vrf_table() const
const Peer * mac_vm_binding_peer() const
const Peer * local_peer() const
AclTable * acl_table() const
uint32_t global_max_vmi_flows() const
static const int kDropNewFlowsRecoveryThreshold
const Peer * local_vm_peer() const
const std::string & fabric_vn_name() const
BridgeDomainTable * bridge_domain_table() const
static uint16_t ProtocolStringToInt(const std::string &str)
NextHopTable * nexthop_table() const
static const MacAddress & vrrp_mac()
SgTable * sg_table() const
const std::string & fabric_vrf_name() const
PolicySetTable * policy_set_table() const
MetaDataIpAllocator * metadata_ip_allocator() const
void AddMacVmBindingRoute(const Peer *peer, const std::string &vrf_name, const MacAddress &mac, const VmInterface *vm_intf, bool flood_dhcp)
BridgeRouteEntry * FindRoute(const MacAddress &mac)
static void AddBridgeReceiveRoute(const Peer *peer, const std::string &vrf_name, const MacAddress &mac, const std::string &vn_name, const std::string &interface, bool policy)
void DeleteMacVmBindingRoute(const Peer *peer, const std::string &vrf_name, const MacAddress &mac, const VmInterface *vm_intf)
static void Delete(const Peer *peer, const std::string &vrf_name, const MacAddress &mac, uint32_t ethernet_tag)
std::unique_ptr< DBRequestKey > KeyPtr
DBTableBase * get_table() const
bool Enqueue(DBRequest *req)
void AddReceiveRoute(const Peer *peer, const std::string &vrf_name, uint32_t label, const MacAddress &mac, const IpAddress &ip_addr, uint32_t ethernet_tag, const std::string &vn_name, const PathPreference &pref)
void DelLocalVmRoute(const Peer *peer, const std::string &vrf_name, const MacAddress &mac, const VmInterface *intf, const IpAddress &ip, uint32_t ethernet_tag)
virtual KeyPtr GetDBRequestKey() const
static void AddVHostRecvRoute(const Peer *peer, const string &vrf, const InterfaceKey &interface, const IpAddress &addr, uint8_t plen, const string &vn_name, bool policy, bool native_encap, bool ipam_host_route=true)
static void AddResolveRoute(const Peer *peer, const string &vrf_name, const Ip4Address &ip, const uint8_t plen, const InterfaceKey &intf_key, const uint32_t label, bool policy, const std::string &vn_name, const SecurityGroupList &sg_list, const TagList &tag_list)
static void Delete(const Peer *peer, const string &vrf_name, const IpAddress &addr, uint8_t plen)
static void AddGatewayRoute(const Peer *peer, const string &vrf_name, const Ip4Address &dst_addr, uint8_t plen, const AddressList &gw_list, const VnListType &vn_name, uint32_t label, const SecurityGroupList &sg_list, const TagList &tag_list, const CommunityList &communities, bool native_encap)
static void AddVlanNHRoute(const Peer *peer, const string &vm_vrf, const IpAddress &addr, uint8_t plen, const boost::uuids::uuid &intf_uuid, uint16_t tag, uint32_t label, const VnListType &dest_vn_list, const SecurityGroupList &sg_list_, const TagList &tag_list, const PathPreference &path_preference)
static void CreateL2VmInterfaceNH(const boost::uuids::uuid &intf_uuid, const MacAddress &dmac, const string &vrf_name, bool learning_enabled, bool etree_leaf, bool layer2_control_word, const std::string &intf_name)
static void DeleteL2InterfaceNH(const boost::uuids::uuid &intf_uuid, const MacAddress &mac, const std::string &intf_name)
void set_delete_on_zero_refcount(bool val)
static void CreateMulticastVmInterfaceNH(const boost::uuids::uuid &intf_uuid, const MacAddress &dmac, const string &vrf_name, const string &intf_name)
static void DeleteMulticastVmInterfaceNH(const boost::uuids::uuid &intf_uuid, const MacAddress &dmac, const std::string &intf_name)
static void CreateL3VmInterfaceNH(const boost::uuids::uuid &intf_uuid, const MacAddress &dmac, const string &vrf_name, bool learning_enabled, const std::string &intf_name)
static void DeleteL3InterfaceNH(const boost::uuids::uuid &intf_uuid, const MacAddress &mac, const std::string &intf_name)
VnEntry * FindVnRef(const boost::uuids::uuid &uuid) const
const UpdateFloatingIpFn & update_floatingip_cb() const
void incr_active_vmi_count()
void DeleteDhcpSnoopEntry(const std::string &ifname)
void decr_active_vmi_count()
VrfEntry * FindVrfRef(const std::string &name) const
NextHopConstRef flow_key_nh_
const MacAddress & mac() const
bool is_hc_active() const
const std::string & name() const
bool metadata_ip_active() const
uint32_t l2_label() const
const boost::uuids::uuid & GetUuid() const
const uint32_t id() const
std::string ToString() const
static const MacAddress kZeroMac
static const uint32_t kInvalidLabel
const MplsLabel * mpls_label() const
PolicySet * global_policy_set() const
FirewallPolicyList & fw_policy_list()
PortSubscribeTable * port_subscribe_table() const
IFMapNode * UuidToIFNode(const boost::uuids::uuid &u) const
static void Create(NextHopTable *table, const Interface *intf, bool policy)
static void Create(const boost::uuids::uuid &intf_uuid, uint16_t vlan_tag, const std::string &vrf_name, const MacAddress &smac, const MacAddress &dmac)
FirewallPolicyList fw_policy_list_
FirewallPolicyList fwaas_fw_policy_list_
bool layer3_forwarding() const
void SetServiceVlanPathPreference(PathPreference *pref, const IpAddress &service_ip) const
bool UpdateState(const VmInterfaceState *attr, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
VrfAssignRuleList vrf_assign_rule_list_
bool policy_enabled() const
VmInterface::VmiType vmi_type() const
HealthCheckInstanceSet hc_instance_set_
void DeleteL2InterfaceRoute(const VrfEntry *vrf, uint32_t ethernet_tag, const IpAddress &ip, const MacAddress &mac) const
ServiceVlanList service_vlan_list_
bool Resync(const InterfaceTable *table, const VmInterfaceData *data)
VmiReceiveRouteList receive_route_list_
virtual bool CmpInterface(const DBEntry &rhs) const
bool OnChange(VmInterfaceData *data)
const uint8_t subnet_plen() const
const NextHop * l2_interface_nh_policy() const
const Ip4Address & vm_ip_service_addr() const
bool drop_new_flows() const
LearntMacIpList learnt_mac_ip_list_
BridgeDomainList bridge_domain_list_
uint32_t max_flows() const
uint32_t ethernet_tag() const
bool IsMaxMacIpLearnt() const
static const char * kServiceInterface
std::unique_ptr< MetaDataIpState > metadata_ip6_state_
AllowedAddressPairList allowed_address_pair_list_
void UpdateMetaDataIpInfo()
MetaDataIpMap metadata_ip_map_
bool IsIpv6Active() const
Ip4Address dhcp_addr() const
void AddL2InterfaceRoute(const IpAddress &ip, const MacAddress &mac, const IpAddress &dependent_ip) const
bool need_linklocal_ip() const
bool learning_enabled() const
IpAddress GetServiceIp(const IpAddress &ip) const
friend struct VmInterfaceNewFlowDropData
uint32_t label_op() const
void SetConfigurer(VmInterface::Configurer type)
std::unique_ptr< LocalVmPortPeer > peer_
std::unique_ptr< ResolveRouteState > resolve_route_state_
void DeleteRoute(const std::string &vrf_name, const IpAddress &ip, uint32_t plen)
bool IsMetaDataIPActive() const
bool IsMetaDataL2Active() const
void CleanupAliasIpList()
bool IsConfigurerSet(VmInterface::Configurer type)
void CopyTagIdList(TagList *tag_id_list) const
FatFlowPrefixAggregateType
SecurityGroupEntryList sg_list_
Ip6Address mdata_ip6_addr() const
const NextHop * l2_interface_nh_no_policy() const
bool ResetVrfDelete(const InterfaceTable *table, const std::string &vrf_name)
bool DeleteState(VmInterfaceState *attr)
std::atomic< int > flow_count_
static const char * kInterfaceStatic
void CleanupFloatingIpList()
void ResetConfigurer(VmInterface::Configurer type)
std::unique_ptr< VmiRouteState > interface_route_state_
std::string ToString() const
std::unique_ptr< NextHopState > nexthop_state_
AliasIpList alias_ip_list_
const MacAddress & GetVifMac(const Agent *) const
std::map< std::string, FatFlowIgnoreAddressType > IgnoreAddressMap
void SetInterfacesDropNewFlows(bool drop_new_flows) const
Ip4Address vm_ip_service_addr_
bool do_dhcp_relay() const
FloatingIpList floating_ip_list_
InstanceIpList instance_ipv4_list_
const MacAddress & vm_mac() const
VmInterface(const boost::uuids::uuid &uuid, const std::string &name, bool os_oper_state, const boost::uuids::uuid &logical_router_uuid)
bool UpdatePolicySet(const Agent *agent)
VmInterface::DeviceType device_type() const
const VnEntry * vn() const
bool dhcp_enable_config() const
std::unique_ptr< MacVmBindingState > mac_vm_binding_state_
void UpdateInterfaceHealthCheckService()
const Ip4Address & primary_ip_addr() const
StaticRouteList static_route_list_
const Ip4Address & subnet() const
void CopySgIdList(SecurityGroupList *sg_id_list) const
void SendTrace(const AgentDBTable *table, Trace event) const
void AddRoute(const std::string &vrf_name, const IpAddress &ip, uint32_t plen, const std::string &vn_name, bool force_policy, bool ecmp, bool is_local, bool proxy_arp, const IpAddress &service_ip, const IpAddress &dependent_ip, const CommunityList &communties, uint32_t label, const string &intf_route_type, bool is_learnt_route=false)
void ApplyConfig(bool old_ipv4_active, bool old_l2_active, bool old_ipv6_active, const Ip4Address &old_subnet, const uint8_t old_subnet_plen)
std::unique_ptr< VrfTableLabelState > vrf_table_label_state_
bool layer2_control_word() const
VrfEntry * forwarding_vrf() const
static const char * kInterface
KeyPtr GetDBRequestKey() const
std::unique_ptr< MetaDataIpState > metadata_ip_state_
void SetPathPreference(PathPreference *pref, bool ecmp, const IpAddress &dependent_ip) const
Ip4Address mdata_ip_addr() const
const NextHop * l3_interface_nh_no_policy() const
const Ip6Address & primary_ip6_addr() const
bool PolicyEnabled() const
FatFlowList fat_flow_list_
static const uint32_t kMaxMacIpLimit
InstanceIpList instance_ipv6_list_
bool IsIpv4Active() const
void update_flow_count(int val) const
static IgnoreAddressMap fatflow_ignore_addr_map_
const Peer * peer() const
VmInterface::DeviceType device_type_
const std::string & vrf_name() const
const string & GetName() const
const VnIpam * GetIpam(const IpAddress &ip) const
uint32_t GetAllocUnitFromIpam(const IpAddress &ip) const
static void DeleteVlan(const boost::uuids::uuid &intf_uuid, uint16_t vlan_tag)
static void CreateVlan(const boost::uuids::uuid &intf_uuid, const std::string &vrf_name, uint16_t vlan_tag)
const string & GetName() const
uint32_t table_label() const
AgentRouteTable * GetBridgeRouteTable() const
void CreateTableLabel(bool learning_enabled, bool l2, bool flod_unknown_unicast, bool layer2_control_word)
AgentRouteTable * GetRouteTable(uint8_t table_type) const
#define LOG(_Level, _Msg)
#define LOCAL_VM_PORT_PEER_NAME
std::vector< AclEntrySpec > acl_entry_specs_
VrfTranslateActionSpec vrf_translate
TrafficAction::TrafficActionType ta_type
TrafficAction::Action simple_action
std::unique_ptr< DBRequestKey > key
std::unique_ptr< DBRequestData > data
void Copy(const Agent *agent, const VmInterface *vmi) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
virtual ~MacVmBindingState()
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
NextHopRef l3_mcast_nh_no_policy_
VmInterfaceState::Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
NextHopRef l3_nh_no_policy_
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
NextHopRef l2_nh_no_policy_
bool DeleteL2(const Agent *agent, VmInterface *vmi) const
bool AddL2(const Agent *agent, VmInterface *vmi) const
virtual ~ResolveRouteState()
bool DeleteL2(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
VmInterfaceState::Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
void Copy(const Agent *agent, const VmInterface *vmi) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
bool AddL2(const Agent *agent, VmInterface *vmi) const
virtual bool OnDelete(const InterfaceTable *table, VmInterface *entry) const
virtual bool OnResync(const InterfaceTable *table, VmInterface *vmi, bool *force_update) const =0
InterfaceKey * Clone() const
virtual bool Update(const Agent *agent, VmInterface *vmi, Op l2_force_op, Op l3_force_op) const
virtual bool AddL2(const Agent *agent, VmInterface *vmi) const
virtual void Copy(const Agent *agent, const VmInterface *vmi) const
virtual bool AddL3(const Agent *agent, VmInterface *vmi) const
virtual Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
virtual bool DeleteL2(const Agent *agent, VmInterface *vmi) const
virtual bool DeleteL3(const Agent *agent, VmInterface *vmi) const
virtual Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
static Op RecomputeOp(Op old_op, Op new_op)
void Update(const AliasIp *lhs, const AliasIp *rhs)
void Insert(const AliasIp *rhs)
void Remove(AliasIpSet::iterator &it)
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
bool IsLess(const AliasIp *rhs) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
bool operator()(const AliasIp &lhs, const AliasIp &rhs) const
void Copy(const Agent *agent, const VmInterface *vmi) const
void Update(const AllowedAddressPair *lhs, const AllowedAddressPair *rhs)
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Remove(AllowedAddressPairSet::iterator &it)
void Insert(const AllowedAddressPair *rhs)
bool AddL2(const Agent *agent, VmInterface *vmi) const
bool ecmp_config_changed_
void Copy(const Agent *agent, const VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
bool DeleteL2(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
virtual ~AllowedAddressPair()
bool IsLess(const AllowedAddressPair *rhs) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
bool operator()(const AllowedAddressPair &lhs, const AllowedAddressPair &rhs) const
void Update(const BridgeDomain *lhs, const BridgeDomain *rhs)
void Remove(BridgeDomainEntrySet::iterator &it)
void Insert(const BridgeDomain *rhs)
BridgeDomainEntrySet list_
static FatFlowEntry MakeFatFlowEntry(const std::string &protocol, const int &port, const std::string &ignore_addr_str, const std::string &src_prefix_str, const int &src_prefix_mask, const int &src_aggregate_plen, const std::string &dst_prefix_str, const int &dst_prefix_mask, const int &dst_aggregate_plen)
uint8_t src_aggregate_plen
FatFlowPrefixAggregateType prefix_aggregate
uint8_t dst_aggregate_plen
FatFlowIgnoreAddressType ignore_address
bool UpdateList(const Agent *agent, VmInterface *vmi)
void Remove(FatFlowEntrySet::iterator &it)
void Insert(const FatFlowEntry *rhs)
void Update(const FatFlowEntry *lhs, const FatFlowEntry *rhs)
void Insert(const FloatingIp *rhs)
void Remove(FloatingIpSet::iterator &it)
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Update(const FloatingIp *lhs, const FloatingIp *rhs)
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
int32_t GetDstPortMap(uint8_t protocol, uint16_t dst_port) const
uint32_t PortMappingSize() const
bool DeleteL2(const Agent *agent, VmInterface *vmi) const
bool IsLess(const FloatingIp *rhs) const
bool AddL2(const Agent *agent, VmInterface *vmi) const
std::map< PortMapKey, uint16_t, PortMapKey > PortMap
int32_t GetSrcPortMap(uint8_t protocol, uint16_t src_port) const
void Copy(const Agent *agent, const VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
const IpAddress GetFixedIp(const VmInterface *) const
bool operator()(const FloatingIp &lhs, const FloatingIp &rhs) const
PortMap::iterator PortMapIterator
bool AddL3(const Agent *agent, VmInterface *vmi) const
bool port_map_enabled() const
VmInterfaceState::Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
virtual bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Insert(const InstanceIp *rhs)
void Remove(InstanceIpSet::iterator &it)
void Update(const InstanceIp *lhs, const InstanceIp *rhs)
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
void SetPrefixForAllocUnitIpam(VmInterface *intrface) const
bool is_service_health_check_ip_
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
void Copy(const Agent *agent, const VmInterface *vmi) const
VmInterfaceState::Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
bool IsLess(const InstanceIp *rhs) const
bool DeleteL2(const Agent *agent, VmInterface *vmi) const
bool operator()(const InstanceIp &lhs, const InstanceIp &rhs) const
bool AddL2(const Agent *agent, VmInterface *vmi) const
void Update(const LearntMacIp *lhs, const LearntMacIp *rhs)
virtual bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Insert(const LearntMacIp *rhs)
void Remove(const LearntMacIp *rhs)
void Copy(const Agent *agent, const VmInterface *vmi) const
bool AddL2(const Agent *agent, VmInterface *vmi) const
bool operator()(const LearntMacIp &lhs, const LearntMacIp &rhs) const
bool IsLess(const LearntMacIp *rhs) const
bool DeleteL2(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
void set_del_pending(bool val) const
VmInterfaceState::Op GetOp(VmInterfaceState::Op op) const
SecurityGroupEntrySet list_
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Insert(const SecurityGroupEntry *rhs)
void Update(const SecurityGroupEntry *lhs, const SecurityGroupEntry *rhs)
void Remove(SecurityGroupEntrySet::iterator &it)
bool AddL3(const Agent *agent, VmInterface *vmi) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
virtual ~SecurityGroupEntry()
bool IsLess(const SecurityGroupEntry *rhs) const
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Remove(ServiceVlanSet::iterator &it)
void Insert(const ServiceVlan *rhs)
void Update(const ServiceVlan *lhs, const ServiceVlan *rhs)
bool operator()(const ServiceVlan &lhs, const ServiceVlan &rhs) const
void DeleteCommon(const VmInterface *vmi) const
bool IsLess(const ServiceVlan *rhs) const
void AddCommon(const Agent *agent, const VmInterface *vmi) const
void Update(const Agent *agent, VmInterface *vmi) const
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Update(const StaticRoute *lhs, const StaticRoute *rhs)
void Insert(const StaticRoute *rhs)
void Remove(StaticRouteSet::iterator &it)
bool AddL3(const Agent *agent, VmInterface *vmi) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
bool IsLess(const StaticRoute *rhs) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
bool operator()(const StaticRoute &lhs, const StaticRoute &rhs) const
void Copy(const Agent *agent, const VmInterface *vmi) const
CommunityList communities_
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Insert(const TagEntry *rhs)
void Update(const TagEntry *lhs, const TagEntry *rhs)
void Remove(TagEntrySet::iterator &it)
bool operator()(const TagEntry &lhs, const TagEntry &rhs) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
bool IsLess(const TagEntry *rhs) const
bool operator==(const TagEntry &rhs) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
void Remove(VmiReceiveRouteSet::iterator &it)
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
void Insert(const VmiReceiveRoute *rhs)
void Update(const VmiReceiveRoute *lhs, const VmiReceiveRoute *rhs)
void Copy(const Agent *agent, const VmInterface *vmi) const
bool AddL2(const Agent *agent, VmInterface *vmi) const
bool IsLess(const VmiReceiveRoute *rhs) const
bool DeleteL2(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
bool operator()(const VmiReceiveRoute &lhs, const VmiReceiveRoute &rhs) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
void Insert(const VrfAssignRule *rhs)
void Remove(VrfAssignRuleSet::iterator &it)
void Update(const VrfAssignRule *lhs, const VrfAssignRule *rhs)
bool UpdateList(const Agent *agent, VmInterface *vmi, VmInterfaceState::Op l2_force_op, VmInterfaceState::Op l3_force_op)
bool IsLess(const VrfAssignRule *rhs) const
bool operator()(const VrfAssignRule &lhs, const VrfAssignRule &rhs) const
autogen::MatchConditionType match_condition_
bool AddL3(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL2(const Agent *agent, const VmInterface *vmi) const
bool DeleteL3(const Agent *agent, VmInterface *vmi) const
bool AddL2(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
bool DeleteL2(const Agent *agent, VmInterface *vmi) const
void Copy(const Agent *agent, const VmInterface *vmi) const
bool AddL3(const Agent *agent, VmInterface *vmi) const
VmInterfaceState::Op GetOpL3(const Agent *agent, const VmInterface *vmi) const
virtual ~VrfTableLabelState()
void set_ignore_acl(bool ignore_acl)
void set_vrf_name(const std::string &vrf_name)
static bool GetIpActiveState(const IpAddress &ip, const VmInterface *vmi)
static bool GetInstanceIpActiveState(const VmInterface::InstanceIp *instance_ip, const VmInterface *vmi)
static bool GetMacIpActiveState(const VmInterface::LearntMacIp *mac_ip, const VmInterface *vmi)
std::vector< AclDBEntryConstRef > FirewallPolicyList