LCOV - code coverage report
Current view: top level - vnsw/agent/vrouter/ksync - vrf_assign_ksync.h (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 0 2 0.0 %
Date: 2026-08-03 02:19:58 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
       3             :  */
       4             : 
       5             : #ifndef vnsw_agent_vrf_assign_ksync_h
       6             : #define vnsw_agent_vrf_assign_ksync_h
       7             : 
       8             : #include <boost/asio.hpp>
       9             : #include <boost/bind/bind.hpp>
      10             : 
      11             : #include <db/db_entry.h>
      12             : #include <db/db_table.h>
      13             : #include <db/db_table_partition.h>
      14             : #include "vr_interface.h"
      15             : #include <ksync/ksync_entry.h>
      16             : #include <ksync/ksync_object.h>
      17             : #include <ksync/ksync_netlink.h>
      18             : #include "oper/vrf_assign.h"
      19             : 
      20             : using namespace boost::placeholders;
      21             : 
      22             : class VrfAssignKSyncObject;
      23             : 
      24             : class VrfAssignKSyncEntry : public KSyncNetlinkDBEntry {
      25             : public:
      26             :     VrfAssignKSyncEntry(VrfAssignKSyncObject* obj,
      27             :                         const VrfAssignKSyncEntry *entry, uint32_t index);
      28             :     VrfAssignKSyncEntry(VrfAssignKSyncObject* obj, const VrfAssign *rule);
      29             :     virtual ~VrfAssignKSyncEntry();
      30             : 
      31           0 :     uint16_t vlan_tag() const {return vlan_tag_;};
      32             :     InterfaceKSyncEntry *interface() const;
      33             :     NHKSyncEntry *nh() const;
      34             :     KSyncDBObject *GetObject() const;
      35             : 
      36             :     virtual bool IsLess(const KSyncEntry &rhs) const;
      37             :     virtual std::string ToString() const;
      38             :     virtual KSyncEntry *UnresolvedReference();
      39             :     virtual bool Sync(DBEntry *e);
      40             :     virtual int AddMsg(char *buf, int buf_len);
      41             :     virtual int ChangeMsg(char *buf, int buf_len);
      42             :     virtual int DeleteMsg(char *buf, int buf_len);
      43             : private:
      44             :     int Encode(sandesh_op::type op, char *buf, int buf_len);
      45             :     VrfAssignKSyncObject *ksync_obj_;
      46             :     KSyncEntryPtr interface_;
      47             :     uint16_t vlan_tag_;
      48             :     uint32_t vrf_id_;
      49             :     KSyncEntryPtr nh_;
      50             :     DISALLOW_COPY_AND_ASSIGN(VrfAssignKSyncEntry);
      51             : };
      52             : 
      53             : class VrfAssignKSyncObject : public KSyncDBObject {
      54             : public:
      55             :     VrfAssignKSyncObject(KSync *ksync);
      56             :     virtual ~VrfAssignKSyncObject();
      57             : 
      58           0 :     KSync *ksync() const { return ksync_; }
      59             : 
      60             :     void RegisterDBClients();
      61             :     virtual KSyncEntry *Alloc(const KSyncEntry *entry, uint32_t index);
      62             :     virtual KSyncEntry *DBToKSyncEntry(const DBEntry *e);
      63             : private:
      64             :     KSync *ksync_;
      65             :     DISALLOW_COPY_AND_ASSIGN(VrfAssignKSyncObject);
      66             : };
      67             : 
      68             : #endif // vnsw_agent_vrf_assign_ksync_h

Generated by: LCOV version 1.14