aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/write/switch-update
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-22 16:08:48 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-22 16:08:48 +0100
commita279d087b85ad537172dae627c2793884f1b9f73 (patch)
tree3fed5518e35182e60c62248c6ac77883d4dca15d /web/nms.gathering.org/api/write/switch-update
parent110b939413ebc7a1b4ef1dc5a5988477d9c594bd (diff)
parent72fb92979ca3dbbbeb55159ce3a9404b8ba49099 (diff)
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'web/nms.gathering.org/api/write/switch-update')
-rwxr-xr-xweb/nms.gathering.org/api/write/switch-update3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/nms.gathering.org/api/write/switch-update b/web/nms.gathering.org/api/write/switch-update
index 6507d2b..14c8773 100755
--- a/web/nms.gathering.org/api/write/switch-update
+++ b/web/nms.gathering.org/api/write/switch-update
@@ -22,7 +22,8 @@ my @dups;
my $sth = $nms::web::dbh->prepare("SELECT sysname FROM switches WHERE sysname=?");
-my @fields = ('ip', 'sysname', 'last_updated', 'locked', 'poll_frequency', 'community', 'lldp_chassis_id', 'secondary_ip', 'subnet4', 'subnet6', 'placement', 'distro', 'secondary_ip');
+
+my @fields = ( 'community', 'current_mac', 'distro_name', 'distro_phy_port', 'lldp_chassis_id', 'mgmt_v4_addr', 'mgmt_v4_gw', 'mgmt_v4_netsize', 'mgmt_v6_addr', 'mgmt_v6_gw', 'mgmt_v6_netsize', 'mgmt_vlan', 'placement', 'poll_frequency', 'subnet4', 'subnet6', 'switchtype', 'sysname', 'traffic_vlan');
sub convertplace
{