diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-09-27 09:08:57 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-09-27 09:08:57 +0300 |
commit | 1e6b2bf6001275bdd2ab0691f335bbb7966bf619 (patch) | |
tree | cd601fa51b2645f9a21ed1cbad5c76da13e01cc3 /src/utl_yaml.h | |
parent | 9ff1f808edcc9289d297b3a6cf34b1e5590ecf85 (diff) |
/etc/trex_cfg.yaml allow MAC as string "12:34:56:78:9a:bc" etc.
dpdk_setup_ports: fix create config in case of VM & passthrough
Diffstat (limited to 'src/utl_yaml.h')
-rwxr-xr-x | src/utl_yaml.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utl_yaml.h b/src/utl_yaml.h index 59104b21..ed7d66d6 100755 --- a/src/utl_yaml.h +++ b/src/utl_yaml.h @@ -23,6 +23,7 @@ limitations under the License. #include <stdint.h> +#include <vector> #include <yaml-cpp/yaml.h> @@ -39,6 +40,8 @@ bool utl_yaml_read_uint16(const YAML::Node& node, const std::string &name, uint16_t & val); +bool mac2vect(const std::string &mac_str, std::vector<uint8_t> &mac); + /* a thin wrapper to customize errors */ class YAMLParserWrapper { public: |