2020-01-07 08:53:53 +01:00
|
|
|
|
LNVue.$_.addModule({
|
|
|
|
|
routes: {
|
|
|
|
|
'/ippool': {
|
|
|
|
|
url: '/ln.provider.pool.html',
|
|
|
|
|
data: function(){
|
|
|
|
|
return {
|
|
|
|
|
allocationWidth: 64,
|
|
|
|
|
targetCIDR: "",
|
|
|
|
|
independentAllocation: false,
|
|
|
|
|
allocationType: 0,
|
|
|
|
|
allocationUsage: "",
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
IPAllocations: ()=>LNP.IPAllocations,
|
|
|
|
|
subnetWidth: {
|
|
|
|
|
get: function(){
|
|
|
|
|
return 128 - this.allocationWidth;
|
2019-10-04 16:36:17 +02:00
|
|
|
|
},
|
2020-01-07 08:53:53 +01:00
|
|
|
|
set: function(v){
|
|
|
|
|
this.allocationWidth = 128 - v;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
navigation: {
|
|
|
|
|
ippool: {
|
|
|
|
|
label: "IP Pool",
|
|
|
|
|
path: '/ippool',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|