Changing the URLs that is currently used to be more consistent and an added hierarchy : controller/nb, controller/web
Change-Id: Icd4f2f2ffcdfcd6d0439a8df4d556e3e5b56fb20
Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
<services>
- <rest defaultRestSubcontext="/one/nb/v2/flow"/>
+ <rest defaultRestSubcontext="/controller/nb/v2/flow"/>
</services>
<modules>
</Import-Package>
<Export-Package>
</Export-Package>
- <Web-ContextPath>/one/nb/v2/flow</Web-ContextPath>
+ <Web-ContextPath>/controller/nb/v2/flow</Web-ContextPath>
</instructions>
</configuration>
</plugin>
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
<services>
- <rest defaultRestSubcontext="/one/nb/v2/host"/>
+ <rest defaultRestSubcontext="/controller/nb/v2/host"/>
</services>
<modules>
org.slf4j,
!org.codehaus.enunciate.jaxrs
</Import-Package>
- <Web-ContextPath>/one/nb/v2/host</Web-ContextPath>
+ <Web-ContextPath>/controller/nb/v2/host</Web-ContextPath>
</instructions>
</configuration>
</plugin>
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
<services>
- <rest defaultRestSubcontext="/one/nb/v2/staticroute"/>
+ <rest defaultRestSubcontext="/controller/nb/v2/staticroute"/>
</services>
<modules>
</Import-Package>
<Export-Package>
</Export-Package>
- <Web-ContextPath>/one/nb/v2/staticroute</Web-ContextPath>
+ <Web-ContextPath>/controller/nb/v2/staticroute</Web-ContextPath>
</instructions>
</configuration>
</plugin>
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
<services>
- <rest defaultRestSubcontext="/one/nb/v2/statistics"/>
+ <rest defaultRestSubcontext="/controller/nb/v2/statistics"/>
</services>
<modules>
</Import-Package>
<Export-Package>
</Export-Package>
- <Web-ContextPath>/one/nb/v2/statistics</Web-ContextPath>
+ <Web-ContextPath>/controller/nb/v2/statistics</Web-ContextPath>
</instructions>
</configuration>
</plugin>
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
<services>
- <rest defaultRestSubcontext="/one/nb/v2/subnet"/>
+ <rest defaultRestSubcontext="/controller/nb/v2/subnet"/>
</services>
<modules>
</Import-Package>
<Export-Package>
</Export-Package>
- <Web-ContextPath>/one/nb/v2/subnet</Web-ContextPath>
+ <Web-ContextPath>/controller/nb/v2/subnet</Web-ContextPath>
</instructions>
</configuration>
</plugin>
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
<services>
- <rest defaultRestSubcontext="/one/nb/v2/switch"/>
+ <rest defaultRestSubcontext="/controller/nb/v2/switch"/>
</services>
<modules>
org.slf4j,
!org.codehaus.enunciate.jaxrs
</Import-Package>
- <Web-ContextPath>/one/nb/v2/switch</Web-ContextPath>
+ <Web-ContextPath>/controller/nb/v2/switch</Web-ContextPath>
</instructions>
</configuration>
</plugin>
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
<services>
- <rest defaultRestSubcontext="/one/nb/v2/topology"/>
+ <rest defaultRestSubcontext="/controller/nb/v2/topology"/>
</services>
<modules>
org.springframework.security.web.authentication.www,
!org.codehaus.enunciate.jaxrs
</Import-Package>
- <Web-ContextPath>/one/nb/v2/topology</Web-ContextPath>
+ <Web-ContextPath>/controller/nb/v2/topology</Web-ContextPath>
</instructions>
</configuration>
</plugin>
*
*/
public enum GlobalConstants {
- DEFAULT("default"), CONTAINERMANAGER("containermanager"), CONTAINERNAME(
- "name"), STATICVLAN("staticvlan"), CLUSTERINGSERVICES("clusteringservices"), ONECONTROLLER(
- "onecontroller"), STARTUPHOME("configuration/startup/");
+ DEFAULT("default"),
+ CONTAINERMANAGER("containermanager"),
+ CONTAINERNAME("name"),
+ STATICVLAN("staticvlan"),
+ CLUSTERINGSERVICES("clusteringservices"),
+ STARTUPHOME("configuration/startup/");
private GlobalConstants(String name) {
this.name = name;
org.springframework.security.web.authentication.logout,
org.springframework.dao
</Import-Package>
- <Web-ContextPath>/one/devices</Web-ContextPath>
+ <Web-ContextPath>/controller/web/devices</Web-ContextPath>
</instructions>
</configuration>
</plugin>
<http pattern="/js/**" security="none" />
<http pattern="/images/**" security="none" />
<http pattern="/favicon.ico" security="none" />
- <http pattern="/one/css/**" security="none" />
- <http pattern="/one/js/**" security="none" />
- <http pattern="/one/images/**" security="none" />
+ <http pattern="/controller/web/css/**" security="none" />
+ <http pattern="/controller/web/js/**" security="none" />
+ <http pattern="/controller/web/images/**" security="none" />
<http auto-config="false" authentication-manager-ref="authenticationManager"
/**Devices Modules */
one.f.switchmanager = {
- rootUrl: "one/devices",
+ rootUrl: "controller/web/devices",
createTable: function(columnNames, body) {
var tableAttributes = ["table-striped", "table-bordered", "table-condensed"];
var $table = one.lib.dashlet.table.table(tableAttributes);
org.springframework.security.web.authentication.logout,
org.springframework.dao\r
</Import-Package>
- <Web-ContextPath>/one/flows</Web-ContextPath>
+ <Web-ContextPath>/controller/web/flows</Web-ContextPath>
</instructions>
</configuration>
</plugin>
<http pattern="/js/**" security="none" />
<http pattern="/images/**" security="none" />
<http pattern="/favicon.ico" security="none" />
- <http pattern="/one/css/**" security="none" />
- <http pattern="/one/js/**" security="none" />
- <http pattern="/one/images/**" security="none" />
+ <http pattern="/controller/web/css/**" security="none" />
+ <http pattern="/controller/web/js/**" security="none" />
+ <http pattern="/controller/web/images/**" security="none" />
<http auto-config="false" authentication-manager-ref="authenticationManager"
};
one.f.address = {
- root : "/one/flows",
+ root : "/controller/web/flows",
flows : {
main : "/main",
flows : "/node-flows",
<http pattern="/js/**" security="none" />
<http pattern="/images/**" security="none" />
<http pattern="/favicon.ico" security="none" />
- <http pattern="/one/css/**" security="none" />
- <http pattern="/one/js/**" security="none" />
- <http pattern="/one/images/**" security="none" />
+ <http pattern="/controller/web/css/**" security="none" />
+ <http pattern="/controller/web/js/**" security="none" />
+ <http pattern="/controller/web/images/**" security="none" />
<http auto-config="false" authentication-manager-ref="authenticationManager"
var data = {};
data['x'] = ps.x;
data['y'] = ps.y;
- $.post('/one/topology/node/' + did, data);
+ $.post('/controller/web/topology/node/' + did, data);
},
onClick: function(node, eventInfo, e) {
return false;
one.topology.update = function() {
$('#topology').empty();
- $.getJSON(one.global.remoteAddress+"one/topology/visual.json", function(data) {
+ $.getJSON(one.global.remoteAddress+"controller/web/topology/visual.json", function(data) {
one.topology.init(data);
});
}
/** INIT */
-$.getJSON(one.global.remoteAddress+"one/topology/visual.json", function(data) {
+$.getJSON(one.global.remoteAddress+"controller/web/topology/visual.json", function(data) {
one.topology.init(data);
});
\ No newline at end of file
one.main.constants = {
address : {
menu : "/web.json",
- prefix : "/one",
+ prefix : "/controller/web",
save : "/save"
}
}
org.springframework.security.web.authentication.logout,
org.springframework.dao
</Import-Package>
- <Web-ContextPath>/one/topology</Web-ContextPath>
+ <Web-ContextPath>/controller/web/topology</Web-ContextPath>
</instructions>
</configuration>
</plugin>
<http pattern="/js/**" security="none" />
<http pattern="/images/**" security="none" />
<http pattern="/favicon.ico" security="none" />
- <http pattern="/one/css/**" security="none" />
- <http pattern="/one/js/**" security="none" />
- <http pattern="/one/images/**" security="none" />
+ <http pattern="/controller/web/css/**" security="none" />
+ <http pattern="/controller/web/js/**" security="none" />
+ <http pattern="/controller/web/images/**" security="none" />
<http auto-config="false" authentication-manager-ref="authenticationManager"
org.springframework.security.web.authentication.logout,
org.springframework.dao
</Import-Package>
- <Web-ContextPath>/one/troubleshoot</Web-ContextPath>
+ <Web-ContextPath>/controller/web/troubleshoot</Web-ContextPath>
</instructions>
</configuration>
</plugin>
<http pattern="/js/**" security="none" />
<http pattern="/images/**" security="none" />
<http pattern="/favicon.ico" security="none" />
- <http pattern="/one/css/**" security="none" />
- <http pattern="/one/js/**" security="none" />
- <http pattern="/one/images/**" security="none" />
+ <http pattern="/controller/web/css/**" security="none" />
+ <http pattern="/controller/web/js/**" security="none" />
+ <http pattern="/controller/web/images/**" security="none" />
<http auto-config="false" authentication-manager-ref="authenticationManager"
/**Troubleshoot modules*/
one.f.troubleshooting = {
- rootUrl: "/one/troubleshoot",
+ rootUrl: "/controller/web/troubleshoot",
rightBottomDashlet: {
get: function() {
var $rightBottomDashlet = $("#right-bottom").find(".dashlet");