mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - VPC - gateways - populate Static Routes tab.
This commit is contained in:
parent
62cf3bd8da
commit
9212d16080
|
|
@ -562,14 +562,17 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
dataProvider: function(args) {
|
||||
setTimeout(function() {
|
||||
args.response.success({
|
||||
data: [
|
||||
{ cidr: '10.2.2.0/24' }
|
||||
]
|
||||
});
|
||||
}, 500);
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL('listStaticRoutes'),
|
||||
data: {
|
||||
gatewayid: args.context.vpcGateways[0].id
|
||||
},
|
||||
success: function(json) {
|
||||
var items = json.liststaticroutesresponse.staticroute;
|
||||
args.response.success({ data: items });
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue