9fafe08b65
Integrates the latest Open vSwitch with DPDK into the host management and configuration framework and configures the default system vswitch type to be ovs-dpdk. Change-Id: If7ef2975e4b90ce84d170051f332f778a867a873 Signed-off-by: Matt Peters <matt.peters@windriver.com>
20 lines
384 B
Python
20 lines
384 B
Python
#
|
|
# Copyright (c) 2018 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
import yaml
|
|
|
|
|
|
class quoted_str(str):
|
|
pass
|
|
|
|
|
|
# force strings to be single-quoted to avoid interpretation as numeric values
|
|
def quoted_presenter(dumper, data):
|
|
return dumper.represent_scalar(u'tag:yaml.org,2002:str', data, style="'")
|
|
|
|
|
|
yaml.add_representer(quoted_str, quoted_presenter)
|