-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebased core tests #286
Merged
Merged
Rebased core tests #286
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------- 1. libydk will be library component that will contain the all of the model agnostic code. The public headers that will be exposed is ydk/ydk.hpp :- Declarations for Entity, Service, types, ServiceProvider etc ydk/netconf.hpp :- Declaration of the NetconfServiceProvider and other netconf releated public api ydk/core.hpp :- The path api 2. Private header are suffixed with _private. 3. All src is now under ydk/src 4. Samples under ydk/samples 5. Tests under ydk/tests
2. Get bgptest cases to test encode->decode for xml and json (Codec test cases)
* Introduce entity, value classes * Add hand-written entity classes for a few nodes of bgp model * Add unit tests for all new and existing non-core ydk classes * Added crud test which configures bgp as, afi-safi, neighbor to device
* Fixed const, removed get_ydk_path as it is no longer used (#8) * Temporarily committing hand-written APIs to get tests to work (#10) * Clean up * Added test_entity * added << and string override for Value * Add == override for Value * Added const == override to Value * Added == operator to EntityPath
* Added top entity lookup files, rebased on origin/ydk_core * Moved generated code to sdk/cpp/ydk/tests/models_gen * Clean up entity_lookup_printer
* Code generation changes, CRUD service update and add more coverage * Add bgp sample and cmake * Updated to use C++14 * Generate CMakeList.txt * Replaced GLOB Because "We do not recommend using GLOB to collect a list of source files from your source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate." * Update generate.py to create shared library using cmake * Add .libs directory
* Fixing memory allocation in provider * Handle empty data in read operation * Fix ietf bundle gen
* Netconf client throws exceptions in case of error. * Added config support to crud read operation
* update readme * update install.sh to create python3 env * update readme with note about python envs
* Fix Enum references in oc-if sample Sample for oc-if model was using old-style enum names (*_Enum). These changes make the names consistent with the current name style. * Make oc-if sample app executable
* Update model bundles for YDK 0.5.1 Updates models in cisco-ios-xr, ietf and openconfig bundles. The cisco-ios-xr bundle now includes XR 6.1.1 models. Bundle version is now aligned with XR release number. The openconfig bundle now uses github files exclusively. The ietf bundle now includes model for syslog types. The versions of the ietf and openconfig bundle is bumped to 0.1.1. * Fix IETF bundle version Bumping bundle version to 0.1.1. Bundle file was incorrectly using bundle version 0.1.0. * Add OC deviations for cisco-ios-xr bundle * Rename initial bundle files Initial bundle files now include version details in their name. This nomenclature facilitates the accumulation of bundle files over time, so a particular bundle version can be re-generated at any point. This nomenclature is also consistent with how profile files were named before the introduction of bundles. * Remove XR deviations for OC interfaces Deviations for OC interfaces break cisco-ios-xr bundle generation. Deviation file is being removed from the bundle definition and a issue filed (#259) for resolving the dependency appropriately in the next release.
* Added weak "internal use" indicator * Only print import identity statement used (#216) * fix if statement
* Move types to types.cpp * Move errors to errors.cpp * Fix identity * Temporarily remove bgp-oper, mpls-te-oper, ospf-oper, infra-policymgr-oper
* Add back the temporarily removed large models to cisco-ios-xr bundle profile * Generate/compile time down to ~36 mins on mac
* Migrated some static docs from core.hpp * Update static doc * tweak * Added "Edit on GitHub" link, used forked branch temporarily. * Added doc for crud service and netconf provider * Code review update, disable "edit on GitHub" link for generated docs
Apply Abhi's C++ patch for compilation and test cases in ubuntu environment.
- Updated .travis.yml, test scripts and some sanity test cases to enable execute same tests in osx and linux. - Reorganized sdk/cpp/ydk/tests/confd, modified original Makefile under this directory, and added three directories: augmentation, deviation, and ydktest, that contain Makefile for different ConfD environments. - Moved deviation YANG models from profiles/test/deviation to yang/deviation, a profile file profiles/test/deviation.json could be used to generate API for it.
…ests * CiscoDevNet/master: (25 commits) Clean up service/provider logging (#284) Fix XML pretty print in logs (#280) (#283) Better error message for type mismatch errors(#241) (#278) Update README.md (#276) Update README.rst (#275) NetconfService Issues (#248), (#247), (#235) (#274) Loggin fix (#269) Update samples/readme for 0.5.1 (#271) CRUD delete on list with id ref as key bug fix (#270) Added datastore option check (#252) (#268) Removed auto cap (#265) Update ydk.services.rst (#263) Update version to 0.5.1 (#262) Issue 216 (#261) Add final bundle adjustments for next major release (#258) Update travis (#260) Fix oc-if sample app (#246) Fix minor typos in README file updating install.sh to create python 3 env and readme (#242) Fix README typo ... # Conflicts: # .travis.yml # sdk/python/core/tests/test_sanity_delete.py # sdk/python/core/tests/test_sanity_deviation.py # sdk/python/core/ydk/providers/_provider_plugin.py # test/travis_ci.sh # ydkgen/api_model.py # ydkgen/printer/meta_data_util.py # ydkgen/printer/python/python_bindings_printer.py
This pull request was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated
.travis.yml
, test scripts and some sanity test cases toenable executing same tests in osx and linux.
Removed CI dependency on docker container.
Reorganized
sdk/cpp/ydk/tests/confd
, modified original Makefileunder this directory, and added three directories: augmentation,
deviation, and ydktest, that contain modified Makefile for different
ConfD environments.
Moved deviation YANG models from
profiles/test/deviation
toyang/deviation
, a profile fileprofiles/test/deviation.json
couldbe used to generate API for it.