Line data Source code
1 : /* 2 : * Copyright (c) 2018 Juniper Networks, Inc. All rights reserved. 3 : * Copyright Contributors to the OpenSDN project 4 : */ 5 : 6 : #ifndef vnsw_agent_interface_os_params_h 7 : #define vnsw_agent_interface_os_params_h 8 : 9 : #include <string> 10 : #include <boost/optional.hpp> 11 : #include <boost/uuid/uuid.hpp> 12 : #include <net/mac_address.h> 13 : 14 : struct InterfaceOsParams { 15 : typedef boost::uuids::uuid IfGuid; 16 : 17 : InterfaceOsParams() {} 18 27132 : InterfaceOsParams(const std::string &name, size_t os_index, bool state) : 19 27132 : name_(name), os_index_(os_index), os_oper_state_(state) {} 20 : 21 : std::string name_; 22 : MacAddress mac_; 23 : size_t os_index_; 24 : bool os_oper_state_; 25 : boost::optional<IfGuid> os_guid_; 26 : }; 27 : 28 : #endif // vnsw_agent_interface_os_params_h