def deploy_no_export_bgp_config(duthost): """ Deploy bgp no export config on the DUT Args: duthost: DUT host object Returns: Pathname of the bgp no export config on the DUT """ bgp_no_export_template_src_path = os.path.join(TEMPLATE_DIR, BGP_NO_EXPORT_TEMPLATE) bgp_no_export_template_path = os.path.join(DUT_TMP_DIR, BGP_NO_EXPORT_TEMPLATE) define_config(duthost, bgp_no_export_template_src_path, bgp_no_export_template_path) return bgp_no_export_template_path
def deploy_plain_bgp_config(duthost): """ Deploy bgp plain config on the DUT Args: duthost: DUT host object Returns: Pathname of the bgp plain config on the DUT """ bgp_plain_template_src_path = os.path.join(TEMPLATE_DIR, BGP_PLAIN_TEMPLATE) bgp_plain_template_path = os.path.join(DUT_TMP_DIR, BGP_PLAIN_TEMPLATE) define_config(duthost, bgp_plain_template_src_path, bgp_plain_template_path) return bgp_plain_template_path