-
Notifications
You must be signed in to change notification settings - Fork 7
Added test input data files and modified MEF package in the test directory #8
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
Open
krishna1803
wants to merge
1
commit into
MEF-GIT:master
Choose a base branch
from
krishna1803:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,11 @@ | ||
| /bin/ | ||
| *fxs | ||
| *jar | ||
| /src/java/build | ||
| /load-dir/ | ||
| /private-jar/ | ||
| /shared-jar/ | ||
| .classpath | ||
| .DS_Store | ||
| .project | ||
| /src/java/*.log |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file added
BIN
+8.13 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/MefInterfaceStatus.class
Binary file not shown.
Binary file added
BIN
+4.11 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/mefRFS.class
Binary file not shown.
Binary file added
BIN
+10.3 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/namespaces/IANAMAUMIB.class
Binary file not shown.
Binary file added
BIN
+1.06 KB
...xample/packages/mef/src/java/build/classes/com/example/mef/namespaces/IANAifTypeMIB.class
Binary file not shown.
Binary file added
BIN
+1.31 KB
...xample/packages/mef/src/java/build/classes/com/example/mef/namespaces/IEEE8021TCMIB.class
Binary file not shown.
Binary file added
BIN
+1011 Bytes
.../example/packages/mef/src/java/build/classes/com/example/mef/namespaces/ianaAfnSafi.class
Binary file not shown.
Binary file added
BIN
+22.2 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/namespaces/ianaIfType.class
Binary file not shown.
Binary file added
BIN
+1018 Bytes
...xample/packages/mef/src/java/build/classes/com/example/mef/namespaces/ianaTimezones.class
Binary file not shown.
Binary file added
BIN
+3.77 KB
...ample/packages/mef/src/java/build/classes/com/example/mef/namespaces/ietfInterfaces.class
Binary file not shown.
Binary file added
BIN
+2.8 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/namespaces/ietfIp.class
Binary file not shown.
Binary file added
BIN
+1.79 KB
.../example/packages/mef/src/java/build/classes/com/example/mef/namespaces/ietfNetwork.class
Binary file not shown.
Binary file added
BIN
+2.3 KB
.../packages/mef/src/java/build/classes/com/example/mef/namespaces/ietfNetworkTopology.class
Binary file not shown.
Binary file added
BIN
+5.22 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/namespaces/ietfSystem.class
Binary file not shown.
Binary file added
BIN
+2.48 KB
...le/packages/mef/src/java/build/classes/com/example/mef/namespaces/ietfSystemTlsAuth.class
Binary file not shown.
Binary file added
BIN
+1.61 KB
...e/packages/mef/src/java/build/classes/com/example/mef/namespaces/ietfX509CertToName.class
Binary file not shown.
Binary file added
BIN
+9.61 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/namespaces/mef.class
Binary file not shown.
Binary file added
BIN
+1.25 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/namespaces/mefDevice.class
Binary file not shown.
Binary file added
BIN
+11 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/namespaces/mefGlobal.class
Binary file not shown.
Binary file added
BIN
+5.4 KB
.../packages/mef/src/java/build/classes/com/example/mef/namespaces/mefLegatoInterfaces.class
Binary file not shown.
Binary file added
BIN
+8.53 KB
...le/packages/mef/src/java/build/classes/com/example/mef/namespaces/mefLegatoServices.class
Binary file not shown.
Binary file added
BIN
+2.51 KB
.../example/packages/mef/src/java/build/classes/com/example/mef/namespaces/mefTopology.class
Binary file not shown.
Binary file added
BIN
+5.58 KB
test/example/packages/mef/src/java/build/classes/com/example/mef/namespaces/mefTypes.class
Binary file not shown.
Empty file modified
0
test/example/packages/mef/src/java/src/com/example/mef/MefInterfaceStatus.java
100644 → 100755
Empty file.
Empty file modified
0
test/example/packages/mef/src/java/src/com/example/mef/mefRFS.java
100644 → 100755
Empty file.
Empty file modified
0
test/example/packages/mef/src/java/src/com/example/mef/namespaces/.gitignore
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
308 changes: 308 additions & 0 deletions
308
test/example/packages/mef/src/yang/ietf-network-topology.yang
This file contains hidden or 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,308 @@ | ||
| module ietf-network-topology { | ||
| yang-version 1.1; | ||
| namespace "urn:ietf:params:xml:ns:yang:ietf-network-topology"; | ||
| prefix nt; | ||
|
|
||
| import ietf-inet-types { | ||
| prefix inet; | ||
| reference | ||
| "RFC 6991"; | ||
| } | ||
| import ietf-network { | ||
| prefix nw; | ||
| reference | ||
| "draft-ietf-i2rs-yang-network-topo-20 | ||
| NOTE TO RFC EDITOR: | ||
| (1) Please replace above reference to | ||
| draft-ietf-i2rs-yang-network-topo-20 with RFC | ||
| number when published (i.e. RFC xxxx). | ||
| (2) Please replace the date in the revision statement with the | ||
| date of publication when published."; | ||
| } | ||
|
|
||
| organization | ||
| "IETF I2RS (Interface to the Routing System) Working Group"; | ||
|
|
||
| contact | ||
| "WG Web: <http://tools.ietf.org/wg/i2rs/> | ||
| WG List: <mailto:i2rs@ietf.org> | ||
|
|
||
| Editor: Alexander Clemm | ||
| <mailto:ludwig@clemm.org> | ||
|
|
||
| Editor: Jan Medved | ||
| <mailto:jmedved@cisco.com> | ||
|
|
||
| Editor: Robert Varga | ||
| <mailto:robert.varga@pantheon.tech> | ||
|
|
||
| Editor: Nitin Bahadur | ||
| <mailto:nitin_bahadur@yahoo.com> | ||
|
|
||
| Editor: Hariharan Ananthakrishnan | ||
| <mailto:hari@packetdesign.com> | ||
|
|
||
| Editor: Xufeng Liu | ||
| <mailto:Xufeng_Liu@jabil.com>"; | ||
|
|
||
| description | ||
| "This module defines a common base model for network topology, | ||
| augmenting the base network data model with links to connect | ||
| nodes, as well as termination points to terminate links on nodes. | ||
|
|
||
| Copyright (c) 2017 IETF Trust and the persons identified as | ||
| authors of the code. All rights reserved. | ||
|
|
||
| Redistribution and use in source and binary forms, with or | ||
| without modification, is permitted pursuant to, and subject | ||
| to the license terms contained in, the Simplified BSD License | ||
| set forth in Section 4.c of the IETF Trust's Legal Provisions | ||
| Relating to IETF Documents | ||
| (http://trustee.ietf.org/license-info). | ||
|
|
||
| This version of this YANG module is part of | ||
| draft-ietf-i2rs-yang-network-topo-20; | ||
| see the RFC itself for full legal notices. | ||
|
|
||
| NOTE TO RFC EDITOR: Please replace above reference to | ||
| draft-ietf-i2rs-yang-network-topo-20 with RFC | ||
| number when published (i.e. RFC xxxx)."; | ||
|
|
||
| revision 2017-12-18 { | ||
| description | ||
| "Initial revision. | ||
| NOTE TO RFC EDITOR: Please replace the following reference | ||
| to draft-ietf-i2rs-yang-network-topo-20 with | ||
| RFC number when published (i.e. RFC xxxx)."; | ||
| reference | ||
| "draft-ietf-i2rs-yang-network-topo-20"; | ||
| } | ||
|
|
||
| typedef link-id { | ||
| type inet:uri; | ||
| description | ||
| "An identifier for a link in a topology. | ||
| The precise structure of the link-id | ||
| will be up to the implementation. | ||
| The identifier SHOULD be chosen such that the same link in a | ||
| real network topology will always be identified through the | ||
| same identifier, even if the data model is instantiated in | ||
| separate datastores. An implementation MAY choose to capture | ||
| semantics in the identifier, for example to indicate the type | ||
| of link and/or the type of topology that the link is a part | ||
| of."; | ||
| } | ||
|
|
||
| typedef tp-id { | ||
| type inet:uri; | ||
| description | ||
| "An identifier for termination points (TPs) on a node. | ||
| The precise structure of the tp-id | ||
| will be up to the implementation. | ||
| The identifier SHOULD be chosen such that the same termination | ||
| point in a real network topology will always be identified | ||
| through the same identifier, even if the data model is | ||
| instantiated in separate datastores. An implementation MAY | ||
| choose to capture semantics in the identifier, for example to | ||
| indicate the type of termination point and/or the type of node | ||
| that contains the termination point."; | ||
| } | ||
|
|
||
| grouping link-ref { | ||
| description | ||
| "This grouping can be used to reference a link in a specific | ||
| network. While it is not used in this module, it is defined | ||
| here for the convenience of augmenting modules."; | ||
| leaf link-ref { | ||
| type leafref { | ||
| path "/nw:networks/nw:network[nw:network-id=current()/../"+ | ||
| "network-ref]/nt:link/nt:link-id"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "A type for an absolute reference a link instance. | ||
| (This type should not be used for relative references. | ||
| In such a case, a relative path should be used instead.)"; | ||
| } | ||
| uses nw:network-ref; | ||
| } | ||
|
|
||
| grouping tp-ref { | ||
| description | ||
| "This grouping can be used to references a termination point | ||
| in a specific node. While it is not used in this module, it | ||
| is defined here for the convenience of augmenting modules."; | ||
| leaf tp-ref { | ||
| type leafref { | ||
| path "/nw:networks/nw:network[nw:network-id=current()/../"+ | ||
| "network-ref]/nw:node[nw:node-id=current()/../"+ | ||
| "node-ref]/nt:termination-point/nt:tp-id"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "A type for an absolute reference to a termination point. | ||
| (This type should not be used for relative references. | ||
| In such a case, a relative path should be used instead.)"; | ||
| } | ||
| uses nw:node-ref; | ||
| } | ||
|
|
||
| augment "/nw:networks/nw:network" { | ||
| description | ||
| "Add links to the network data model."; | ||
| list link { | ||
| key "link-id"; | ||
| description | ||
| "A network link connects a local (source) node and | ||
| a remote (destination) node via a set of | ||
| the respective node's termination points. | ||
| It is possible to have several links between the same | ||
| source and destination nodes. Likewise, a link could | ||
| potentially be re-homed between termination points. | ||
| Therefore, in order to ensure that we would always know | ||
| to distinguish between links, every link is identified by | ||
| a dedicated link identifier. Note that a link models a | ||
| point-to-point link, not a multipoint link."; | ||
| leaf link-id { | ||
| type link-id; | ||
| description | ||
| "The identifier of a link in the topology. | ||
| A link is specific to a topology to which it belongs."; | ||
| } | ||
| container source { | ||
| description | ||
| "This container holds the logical source of a particular | ||
| link."; | ||
| leaf source-node { | ||
| type leafref { | ||
| path "../../../nw:node/nw:node-id"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "Source node identifier, must be in same topology."; | ||
| } | ||
| leaf source-tp { | ||
| type leafref { | ||
| path "../../../nw:node[nw:node-id=current()/../"+ | ||
| "source-node]/termination-point/tp-id"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "Termination point within source node that terminates | ||
| the link."; | ||
| } | ||
| } | ||
| container destination { | ||
| description | ||
| "This container holds the logical destination of a | ||
| particular link."; | ||
| leaf dest-node { | ||
| type leafref { | ||
| path "../../../nw:node/nw:node-id"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "Destination node identifier, must be in the same | ||
| network."; | ||
| } | ||
| leaf dest-tp { | ||
| type leafref { | ||
| path "../../../nw:node[nw:node-id=current()/../"+ | ||
| "dest-node]/termination-point/tp-id"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "Termination point within destination node that | ||
| terminates the link."; | ||
| } | ||
| } | ||
| list supporting-link { | ||
| key "network-ref link-ref"; | ||
| description | ||
| "Identifies the link, or links, that this link | ||
| is dependent on."; | ||
| leaf network-ref { | ||
| type leafref { | ||
| path "../../../nw:supporting-network/nw:network-ref"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "This leaf identifies in which underlay topology | ||
| the supporting link is present."; | ||
| } | ||
| leaf link-ref { | ||
| type leafref { | ||
| path "/nw:networks/nw:network[nw:network-id=current()/"+ | ||
| "../network-ref]/link/link-id"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "This leaf identifies a link which is a part | ||
| of this link's underlay. Reference loops in which | ||
| a link identifies itself as its underlay, either | ||
| directly or transitively, are not allowed."; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| augment "/nw:networks/nw:network/nw:node" { | ||
| description | ||
| "Augment termination points which terminate links. | ||
| Termination points can ultimately be mapped to interfaces."; | ||
| list termination-point { | ||
| key "tp-id"; | ||
| description | ||
| "A termination point can terminate a link. | ||
| Depending on the type of topology, a termination point | ||
| could, for example, refer to a port or an interface."; | ||
| leaf tp-id { | ||
| type tp-id; | ||
| description | ||
| "Termination point identifier."; | ||
| } | ||
| list supporting-termination-point { | ||
| key "network-ref node-ref tp-ref"; | ||
| description | ||
| "This list identifies any termination points that | ||
| the termination point is dependent on, or maps onto. | ||
| Those termination points will themselves be contained | ||
| in a supporting node. | ||
| This dependency information can be inferred from | ||
| the dependencies between links. For this reason, | ||
| this item is not separately configurable. Hence no | ||
| corresponding constraint needs to be articulated. | ||
| The corresponding information is simply provided by the | ||
| implementing system."; | ||
| leaf network-ref { | ||
| type leafref { | ||
| path "../../../nw:supporting-node/nw:network-ref"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "This leaf identifies in which topology the | ||
| supporting termination point is present."; | ||
| } | ||
| leaf node-ref { | ||
| type leafref { | ||
| path "../../../nw:supporting-node/nw:node-ref"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "This leaf identifies in which node the supporting | ||
| termination point is present."; | ||
| } | ||
| leaf tp-ref { | ||
| type leafref { | ||
| path "/nw:networks/nw:network[nw:network-id=current()/"+ | ||
| "../network-ref]/nw:node[nw:node-id=current()/../"+ | ||
| "node-ref]/termination-point/tp-id"; | ||
| require-instance false; | ||
| } | ||
| description | ||
| "Reference to the underlay node, must be in a | ||
| different topology"; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this model being added to this repository? At best it should be downloaded on demand, and failing that manually downloaded before starting the test.