Skip to content

Commit

Permalink
fix some spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
infrastation committed Oct 9, 2020
1 parent e2fef36 commit bcd4b4c
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions autoupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function lookup() {

global $object_id; //$object_id is set after a successful object lookup
global $object_name; //used to lookup master object
global $master_object_id; //$master_object_id is set after a successfull master object lookup (ie, C6100 chassis)
global $master_object_id; //$master_object_id is set after a successful master object lookup (ie, C6100 chassis)
global $master_object_name; //used for master object update where the name ties the object to the master object (ie, r5288 is tied to the master object name "r5285 r5286 r5287 r5288")
global $unique_value;
global $attribute_unique_id;
Expand Down Expand Up @@ -337,10 +337,10 @@ function update_master_object($master_object_id) {
if (authenticate()==0)
exit("incorrect username and/or password");

if ($object_id) //if lookup() set $object_id, there was a successfull object lookup
if ($object_id) //if lookup() set $object_id, there was a successful object lookup
update_object($object_id);

if ($master_object_id) //if lookup() set $master_object_id, there was a successfull master object lookup
if ($master_object_id) //if lookup() set $master_object_id, there was a successful master object lookup
update_master_object($master_object_id);

mysql_close();
8 changes: 4 additions & 4 deletions csvimport/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
Value 6, Port array: This is an optional field where you can create ports for the objects, separated by a comma. When you use this , you also need to add the Port type array
An individual port field can be a range of ports. Eg. 'eth[0-9]' creates ten ports ranging from eth0 to eth9.
Value 7, Port type array: This is an array which maps to the previous port array. This allows you to specify the interface type of the ports. It takes the form 'a-b'. Where a is the inner interface type, and b the outer interface type. Both a and b are numeric values.
New inner / outer interface pair types can be linked using the configuration -> Enabled port types page. When the 'a-' value is ommited, the inner port type defaults to 'hardwire'.
New inner / outer interface pair types can be linked using the configuration -> Enabled port types page. When the 'a-' value is omitted, the inner port type defaults to 'hardwire'.
Examples:
OBJECT;SERVER;myServer;www.server.com;SRV001;IPMI,eth[0-2];1-24,3-24
Expand Down Expand Up @@ -111,7 +111,7 @@
Value 1, VLAN
Value 2, VLAN domain: Specifies the name of the VLAN domain where the VLAN is to be added. If the domain does not exist, it will be created.
Value 3, VLAN name: Specifies the name of the to be created VLAN.
Value 4, Propagation: Sets the Racktables propagation feature for the VLAN, options are ondemand or compulsory. When ommitted the value defaults to compulsory.
Value 4, Propagation: Sets the Racktables propagation feature for the VLAN, options are ondemand or compulsory. When omitted the value defaults to compulsory.
Value 5, Attached IP: This is an optional list of existing IPv4/IPv6 networks which can be assigned to the VLAN. The ranges should not have netmasks, and each range is separated by a comma.
Examples:
Expand Down Expand Up @@ -538,7 +538,7 @@ function addRackImport($csvdata,$row_number)
showError("Line $row_number: Location Child " . $location_child . " already exists as another Objecttype, Import FAILED.");
return FALSE;
}
if ($db_location_child['parent_entity_id'] != $location_id) { // The child Location id doesnt not match with the parent location ID
if ($db_location_child['parent_entity_id'] != $location_id) { // The child Location id does not match with the parent location ID
showError("Line $row_number: Location Child " . $location_child . " mismatch with parent location_id, Import FAILED.");
return FALSE;
}
Expand Down Expand Up @@ -570,7 +570,7 @@ function addRackImport($csvdata,$row_number)
showError("Line $row_number: Row " . $rackrow. $db_rackrow['objtype_id'] . " already exists as another Objecttype, Import FAILED.");
return FALSE;
}
// The Row doesnt not match with the parent or child location ID
// The Row does not match with the parent or child location ID
if (($db_rackrow['parent_entity_id'] != $location_id) & ($db_rackrow['parent_entity_id'] != $location_child_id))
{
showError("Line $row_number: Row " . $rackrow . " mismatch with parent location_id, Import FAILED.". $db_rackrow['parent_entity_id']. " , " . $location_id . " , " . $location_child_id);
Expand Down
2 changes: 1 addition & 1 deletion extensions/plugins/custom-report.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ function getResult ( $post ) {
/**
* validateColums Function
*
* If user doesn't select any colum to display this function preselect the name colum
* If user doesn't select any column to display this function preselect the name column
* to display the results
*
* @param array $_POST
Expand Down
2 changes: 1 addition & 1 deletion extensions/plugins/reportExtensionLib.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// Custom Racktables Report v.0.3.3
// Libary file
// Library file

// 2016-02-04 - Mogilowski Sebastian <[email protected]>

Expand Down
4 changes: 2 additions & 2 deletions facter/facter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* - added VM auto adding to Parent
*
* 2015-02-10 modified by Gjermund Jensvoll <[email protected]>
* - RackTables >= 0.20.8 compatability (Fixing error "Argument 'port_type_id' of value NULL is invalid (format error)")
* - RackTables >= 0.20.8 compatibility (Fixing error "Argument 'port_type_id' of value NULL is invalid (format error)")
*
*/

Expand Down Expand Up @@ -292,7 +292,7 @@ function Update()
// We generally don't monitor sit interfaces.
// We don't do this for lo interfaces, too
// 2011-08-31 <[email protected]>
// * Only Document real interfaces, dont do bridges, bonds, vlan-interfaces
// * Only Document real interfaces, don't do bridges, bonds, vlan-interfaces
// when they have no IP defined.
if ( preg_match('/(_|^(docker|lo|sit|vnet|virbr|veth|peth))/',$nics[$i]) != 0 ) {
// do nothing
Expand Down
2 changes: 1 addition & 1 deletion gmaps/maps.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
var side_bar_html = "";
// arrays to hold copies of the markers used by the side_bar
// because the function closure trick doesnt work there
// because the function closure trick doesn't work there
var gmarkers = [];
// A function to create the marker and set up the event window
Expand Down
2 changes: 1 addition & 1 deletion grains/grains.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ function GrainsUpdate() {
// We generally don't monitor sit interfaces.
// We don't do this for lo interfaces, too
// 2011-08-31 <[email protected]>
// * Only Document real interfaces, dont do bridges, bonds, vlan-interfaces
// * Only Document real interfaces, don't do bridges, bonds, vlan-interfaces
// when they have no IP defined.
if ( preg_match('(_|^(bond|lo|sit|vnet|virbr|veth|peth))',$nics[$i]) != 0 ) {
// do nothing
Expand Down
14 changes: 7 additions & 7 deletions local_portgenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
If there already is a definition for a specific hardware type the ports that will be generated is shown. With one click those ports are
generated. You can also chose to update the definition (or create one if the object type or hardware type does not already have one.
A definition consists of one or more semicolon seperated port definitions. Each definition has 4 or optionally 5 parts which are seperated by a |
A definition consists of one or more semicolon separated port definitions. Each definition has 4 or optionally 5 parts which are separated by a |
The 5 parts are:
Start number : at which number should the range start. If there is only 1 port this can be set at anything
Count : the number of ports of this type (this is where you can use %n for the value of the attribute number of ports)
Expand Down Expand Up @@ -285,7 +285,7 @@ function localverify_PortGenerator($object) {
//
// $portOrders array will be filled with individual port generation schemes
// <start port #>|<port count, use %n for number of ports>|<port name, use %u for number>|<port type id>[|<port label, use %u for number>]
// The configuration contains a semicolon seperated list of the schemes
// The configuration contains a semicolon separated list of the schemes
//
// An example of this would be:
// 1|2|pwr%u|16;1|%n|eth%u|24|%u
Expand Down Expand Up @@ -334,7 +334,7 @@ function localverify_PortGenerator($object) {
$errorText = "Config part {$orderCnt} refers to <i>HW Number of Ports</i> but that is not defined or 0.";
}
} else {
$errorText = "Config part {$orderCnt} does not have 4 parts seperated by a |";
$errorText = "Config part {$orderCnt} does not have 4 parts separated by a |";
}
}
if (!isset($errorText)) {
Expand Down Expand Up @@ -405,12 +405,12 @@ function localfunc_PortGenerator()
print "<b>EXPLANATION (for AC-in ports)</b><br><br> <b>1</b> = starting number,
<b>2</b> = number of generated ports,
<b>AC%u</b> = will begin with <b>starting number</b> and create up to the <b>number of generated ports</b>,
<b>16</b> = the value displayed on the chart below <b>in bold</b> (Notice: Default innerinterface ID is 1 /hardwired/, so the realy value is <b>1-16</b>)<br><br>"; //explains example
<b>16</b> = the value displayed on the chart below <b>in bold</b> (Notice: Default innerinterface ID is 1 /hardwired/, so the real value is <b>1-16</b>)<br><br>"; //explains example
print "<b>PLEASE NOTE</b><br><br> If you do not add the port that is selected <b>(dictionary value)</b> to the default list in the <b>Ports</b> Tab,
you will get a <b>foriegn key violation</b> error.
you will get a <b>foreign key violation</b> error.
You must go to the <b>Configuration</b> area on the main page, go to <b>Enable port types</b>
and hit the <b>Edit</b> tab to place the selected port in either <b>GBIC</b>, <b>hardwired</b>, or any other configuration
on the page so that the error is not recieved.<br><br><br>"; //Very important to have a sucessful implementation of port generator
on the page so that the error is not received.<br><br><br>"; //Very important to have a successful implementation of port generator
//
// The form that can update the configuration
// On top of the table of ports avialabe instead of beneath it
Expand Down Expand Up @@ -446,7 +446,7 @@ function localfunc_PortGenerator()
} else {
$isfirst = false;
}
print "<td><b>{$row4[0]}</b><br>";//seperated values to make them easier to read
print "<td><b>{$row4[0]}</b><br>";//separated values to make them easier to read
print "{$row4[1]}\n</td>";
$i++;
}
Expand Down
4 changes: 2 additions & 2 deletions local_portlinker.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
//
// This extension for RackTables is used to mass connect ports (usefull for connecting back ends of patch panels)
// This extension for RackTables is used to mass connect ports (useful for connecting back ends of patch panels)
//
// Version 2.0
//
Expand Down Expand Up @@ -64,7 +64,7 @@
N2-37 S1-42
S1-42 N1-37 N2-37
Notice that the label for S1-42 has 2 names seperated by a space. This means that the ports of S1-42 will be split evenly. Because there are
Notice that the label for S1-42 has 2 names separated by a space. This means that the ports of S1-42 will be split evenly. Because there are
2 destinations, the number of ports will be divided by 2. Half the number of ports (12) will go to one and the other will go to other. In this
example, the FIRST half of ports will go to N1-37 and the SECOND half of ports will go to N2-37
For the network racks all ports will go to S1-42 so no need for anything else in the label.
Expand Down
2 changes: 1 addition & 1 deletion python-graph-topology/graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

function renderGraphTopo()
{
//variables intialization:
//variables initialization:
$topo = $router_mode = $format = "";
$algo = $rankdir = $lines = $aggr = $lag = "";
//$nodesep = $ranksep = "";
Expand Down
2 changes: 1 addition & 1 deletion reports/reports/custom-report.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ function getResult ( $post ) {
/**
* validateColums Function
*
* If user doesn't select any colum to display this function preselect the name colum
* If user doesn't select any column to display this function preselect the name column
* to display the results
*
* @param array $_POST
Expand Down
2 changes: 1 addition & 1 deletion reports/reports/reportExtensionLib.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// Custom Racktables Report v.0.3.3
// Libary file
// Library file

// 2016-02-04 - Mogilowski Sebastian <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion rt-server-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Script support following infromation
* Virtual server recognition (Xen 4.x)
* Link Virtual server with hypervisor as container in Racktables
* Racktables logging - when change ip addresses or virtual link with hypervisor
* Interface Connection (LLDPD needed for this feature. System automaticly link server interfaces with switch ports in RackTables)
* Interface Connection (LLDPD needed for this feature. System automatically link server interfaces with switch ports in RackTables)

TODO

Expand Down
6 changes: 3 additions & 3 deletions snmpgeneric.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
* a foreign key constraint fails
*/
// '1' => 440, /* other => unknown 440 */
'1' => 1469, /* other => virutal port 1469 */
'1' => 1469, /* other => virtual port 1469 */
'6' => 24, /* ethernetCsmacd => 1000BASE-T 24 */
'24' => 1469, /* softwareLoopback => virtual port 1469 */
'33' => 1469, /* rs232 => RS-232 (DB-9) 681 */
Expand Down Expand Up @@ -1222,9 +1222,9 @@ function snmpgeneric_list($object_id) {
return;
}

/* SNMP connect successfull */
/* SNMP connect successful */

showSuccess("SNMP ".$snmpconfig['version']." connect to ${snmpconfig['host']} successfull");
showSuccess("SNMP ".$snmpconfig['version']." connect to ${snmpconfig['host']} successful");

echo '<form name=CreatePorts method=post action='.$_SERVER['REQUEST_URI'].'&module=redirect&op=create>';

Expand Down
2 changes: 1 addition & 1 deletion snmplive.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ function sl_getsnmp(&$object, $debug = false)
return False;
}

/* SNMP prerequisites successfull */
/* SNMP prerequisites successful */

$s = new sl_ifxsnmp($snmpconfig[2], $ipv4, $snmpconfig[3], $snmpconfig, $breed);

Expand Down
2 changes: 1 addition & 1 deletion yaml_import/ask-4rt+yaml.pl
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ sub getIfConfig

# save this to yaml
# $yaml->[0]->{parameters}->{interfaces} is a list
# other network parameters are {interfaces} dependant
# other network parameters are {interfaces} dependent
foreach my $i (0 .. $#ifname)
{
$ifTlist = "$ifTlist"."${ifname[$i]},";
Expand Down

0 comments on commit bcd4b4c

Please sign in to comment.