/usr/lib/python3/dist-packages/glances/outputs/static/js/services/plugins/glances_ip.js is in glances 2.7.1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | glancesApp.service('GlancesPluginIp', function() {
var _pluginName = "ip";
this.address = null;
this.gateway = null;
this.mask = null;
this.maskCidr = null;
this.publicAddress = null;
this.setData = function(data, views) {
data = data[_pluginName];
this.address = data.address;
this.gateway = data.gateway;
this.mask = data.mask;
this.maskCidr = data.mask_cidr;
this.publicAddress = data.public_address
};
});
|