diff options
Diffstat (limited to 'src/include/VppContractManager.hpp')
-rw-r--r-- | src/include/VppContractManager.hpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/include/VppContractManager.hpp b/src/include/VppContractManager.hpp new file mode 100644 index 0000000..9b9d002 --- /dev/null +++ b/src/include/VppContractManager.hpp @@ -0,0 +1,47 @@ +/* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */ +/* + * Copyright (c) 2018 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +#ifndef __VPP_CONTRACT_MANAGER_H__ +#define __VPP_CONTRACT_MANAGER_H__ + +#include <opflexagent/Agent.h> + +#include "VppIdGen.hpp" + +#include <vom/acl_l3_rule.hpp> + +namespace VPP +{ +class ContractManager +{ + public: + ContractManager(opflexagent::Agent &agent, IdGen &id_gen); + + void handle_update(const opflex::modb::URI &uri); + + private: + /** + * Referene to the uber-agent + */ + opflexagent::Agent &m_agent; + IdGen &m_id_gen; +}; + +extern void setParamUpdate(modelgbp::gbpe::L24Classifier &cls, + VOM::ACL::l3_rule &rule); + +}; // namespace VPP + +/* + * Local Variables: + * eval: (c-set-style "llvm.org") + * End: + */ + +#endif |