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());
34 m_hw_item.set(wait());
41 ip6nd_ra_config::unconfig_cmd::issue(connection& con)
43 msg_t req(con.ctx(), std::ref(*this));
45 auto& payload = req.get_request().get_payload();
46 payload.sw_if_index = m_itf.value();
47 m_cls.to_vpp(payload);
50 VAPI_CALL(req.execute());
53 m_hw_item.set(rc_t::NOOP);
60 ip6nd_ra_prefix::config_cmd::issue(connection& con)
62 msg_t req(con.ctx(), std::ref(*this));
64 auto& payload = req.get_request().get_payload();
65 payload.sw_if_index = m_itf.value();
66 m_cls.to_vpp(payload);
69 VAPI_CALL(req.execute());
71 m_hw_item.set(wait());
78 ip6nd_ra_prefix::unconfig_cmd::issue(connection& con)
80 msg_t req(con.ctx(), std::ref(*this));
82 auto& payload = req.get_request().get_payload();
83 payload.sw_if_index = m_itf.value();
84 m_cls.to_vpp(payload);
87 VAPI_CALL(req.execute());
90 m_hw_item.set(rc_t::NOOP);
97 * fd.io coding-style-patch-verification: ON
100 * eval: (c-set-style "mozilla")