ln.provider/www/ln.provider.pool.js

34 lines
911 B
JavaScript

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;
},
set: function(v){
this.allocationWidth = 128 - v;
},
},
},
},
},
navigation: {
ippool: {
label: "IP Pool",
path: '/ippool',
}
},
});