aboutsummaryrefslogtreecommitdiffstats
path: root/docs/cpta/ndrpdr_trending/nat44-ed-tcp-tput-2n-clx-xxv710.rst
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-02-08 11:25:10 +0000
committerTibor Frank <tifrank@cisco.com>2022-02-08 11:27:01 +0000
commit0b7af28a6809670b2eac6847ffe7d6b5112fd0a7 (patch)
tree5defe24b17ae2932aae9645d6649ed3691ff4db0 /docs/cpta/ndrpdr_trending/nat44-ed-tcp-tput-2n-clx-xxv710.rst
parent75e8500ff946bb9b8639ba9df64abd23d30c32b1 (diff)
Add source to specrls2110
Change-Id: I8a12de4c77218a2189dedde4a9ef39857aa3befc Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'docs/cpta/ndrpdr_trending/nat44-ed-tcp-tput-2n-clx-xxv710.rst')
0 files changed, 0 insertions, 0 deletions
ghlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (c) 2017 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __VOM_LLDP_GLOBAL_CMDS_H__
#define __VOM_LLDP_GLOBAL_CMDS_H__

#include "vom/dump_cmd.hpp"
#include "vom/lldp_global.hpp"
#include "vom/rpc_cmd.hpp"

#include <vapi/lldp.api.vapi.hpp>

namespace VOM {
namespace lldp_global_cmds {

/**
* A command class that binds the LLDP global to the interface
*/
class config_cmd : public rpc_cmd<HW::item<bool>, rc_t, vapi::Lldp_config>
{
public:
  /**
   * Constructor
   */
  config_cmd(HW::item<bool>& item,
             const std::string& system_name,
             uint32_t tx_hold,
             uint32_t tx_interval);

  /**
   * Issue the command to VPP/HW
   */
  rc_t issue(connection& con);
  /**
   * convert to string format for debug purposes
   */
  std::string to_string() const;

  /**
   * Comparison operator - only used for UT
   */
  bool operator==(const config_cmd& i) const;

private:
  /**
   * The system name
   */
  const std::string m_system_name;

  /**
   * TX timer configs
   */
  uint32_t m_tx_hold;
  uint32_t m_tx_interval;
};

}; // namespace lldp_global_cmds
}; // namespace VOM

/*
 * fd.io coding-style-patch-verification: ON
 *
 * Local Variables:
 * eval: (c-set-style "mozilla")
 * End:
 */

#endif