perfsonar-dev - perfsonar: r4803 - trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1
Subject: perfsonar development work
List archive
perfsonar: r4803 - trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1
Chronological Thread
- From:
- To:
- Subject: perfsonar: r4803 - trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1
- Date: Tue, 16 Dec 2008 14:04:10 -0500
Author: michael.bischoff
Date: 2008-12-16 14:04:09 -0500 (Tue, 16 Dec 2008)
New Revision: 4803
Modified:
trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1/TopologyElements.java
Log:
implemented "node"
Modified:
trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1/TopologyElements.java
===================================================================
---
trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1/TopologyElements.java
2008-12-16 16:25:48 UTC (rev 4802)
+++
trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1/TopologyElements.java
2008-12-16 19:04:09 UTC (rev 4803)
@@ -72,7 +72,14 @@
throw new UnsupportedOperationException("Not
implemented");
}
case NODE: {
- throw new UnsupportedOperationException("Not
implemented");
+ if(value.split("\\.", 5).length == 4) {
+ return "<nmtb:address
xmlns:nmtb=\"http://ogf.org/schema/network/topology/base/20070828/\"
type=\"ipv4\">"
+ +value+
+ "</nmtb:address>";
+ }
+ return "<nmtb:address
xmlns:nmtb=\"http://ogf.org/schema/network/topology/base/20070828/\"
type=\"ipv6\">"
+ +value+
+ "</nmtb:address>";
}
case PORT: {
throw new UnsupportedOperationException("Not
implemented");
- perfsonar: r4803 - trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1, svnlog, 12/16/2008
Archive powered by MHonArc 2.6.16.