Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new sandesh type named "dynamicuve". Defined sandesh of type "dynamicuve" in sandesh_dynamic_uve.sandesh All dynamic UVEs would be derived from this base class defined in sandesh_dynamic_uve.sandesh The newly added sandesh type "dynamicuve" is only for parsing/code generation. Dynamic UVEs are sent to collector with same type as sandesh UVE. Therefore, dynamic UVEs are processed in the same way as sandesh UVEs in the collector/analytics-api and hence there is no difference in the interpretation of dynamic UVEs from sandesh UVEs from the user stand point. Related change: Presently, _SANDESH_REQUEST_LIST, _SANDESH_UVE_LIST and _SANDESH_ALARM_LIST contain the class name as string. Modified these lists to contain class object instead of class name. pysandesh library would store the class object instead of the class name and corresponding module. Change-Id: I9f15ff6613e4f2a23334291f165e7bcdd4bf6c62 Closes-Bug: #1469966
- Loading branch information
Sundaresan Rajangam
committed
Oct 11, 2015
1 parent
2bf5e26
commit 829d640
Showing
14 changed files
with
365 additions
and
276 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. | ||
*/ | ||
|
||
/* | ||
* sandesh_dynamic_uve.sandesh | ||
* | ||
* Sandesh Dynamic UVE definition | ||
*/ | ||
|
||
|
||
struct DynamicElement { | ||
1: string attribute | ||
2: string value | ||
} | ||
|
||
struct DynamicObject { | ||
1: string name (key="") | ||
2: list<DynamicElement> elements | ||
3: optional bool deleted | ||
} | ||
|
||
dynamicuve sandesh DynamicObjectUVE { | ||
1: DynamicObject data | ||
} |
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
Oops, something went wrong.