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

Generated by: LCOV version 1.14