2 * Copyright (c) 2017 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 #include "vom/interface_ip6_nd.hpp"
18 #include <vapi/vpe.api.vapi.hpp>
23 ip6nd_ra_config::config_cmd::issue(connection& con)
25 msg_t req(con.ctx(), std::ref(*this));
27 auto& payload = req.get_request().get_payload();
28 payload.sw_if_index = m_itf.value();
29 m_cls.to_vpp(payload);
32 VAPI_CALL(req.execute());
39 ip6nd_ra_config::unconfig_cmd::issue(connection& con)
41 msg_t req(con.ctx(), std::ref(*this));
43 auto& payload = req.get_request().get_payload();
44 payload.sw_if_index = m_itf.value();
45 m_cls.to_vpp(payload);
48 VAPI_CALL(req.execute());
51 m_hw_item.set(rc_t::NOOP);
58 ip6nd_ra_prefix::config_cmd::issue(connection& con)
60 msg_t req(con.ctx(), std::ref(*this));
62 auto& payload = req.get_request().get_payload();
63 payload.sw_if_index = m_itf.value();
64 m_cls.to_vpp(payload);
67 VAPI_CALL(req.execute());
74 ip6nd_ra_prefix::unconfig_cmd::issue(connection& con)
76 msg_t req(con.ctx(), std::ref(*this));
78 auto& payload = req.get_request().get_payload();
79 payload.sw_if_index = m_itf.value();
80 m_cls.to_vpp(payload);
83 VAPI_CALL(req.execute());
86 m_hw_item.set(rc_t::NOOP);
93 * fd.io coding-style-patch-verification: ON
96 * eval: (c-set-style "mozilla")