Actions.NetworkActions.Diagnostics package

Submodules

Actions.NetworkActions.Diagnostics.diagnostics_actions module

Copyright 2017, Fujitsu Network Communications, Inc. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class Actions.NetworkActions.Diagnostics.diagnostics_actions.DiagActions[source]

Bases: object

Diagnostics keyword class

ping_from_remotehost(system_name, session_name=None, dest_system=None, ip_type='ip', count='5')[source]

This keyword will use connection session available in source system (provided in system name) and will ping from source system to destination system

Datafile usuage:
 

Tags or attributes to be used in input datafile for the system or subsystem.If both tag and attribute is provided the attribute will be used. 1. prompt = prompt of the source system 2. ip = ipv4 address or defaulted to lcn ip 3. ipv6 = ipv6 address or defaulted to lcn ipv6 4. dns = dns name 5. lmp_ip = ipv4 address of lmp port of dut 6. lmp_ipv6 = ipv6 address of lmp port of dut note: one of <ip>,<ipv6>,<dns>,<lmp_ip>,<lmp_ipv6> tags specified in

ip_type argument is sufficient to be present in inputdatafile

Arguments:
  1. system_name(string) = name of the Linux machine on which to execute
  2. session_name(string) = name of the session
  3. dest_system(string) = names of the destination system
  4. ip_type(string) = iptype of the dest system through which it needs to be connected.
    needs to be one of (ip/ipv4/dns/lmp_ip/lmp_ipv6).It has to be present in the input data file.
  5. count(string) = count argument to be supplied to the ping
Returns:
  1. bool (True/False)
traceroute_from_remotehost(system_name, session_name=None, dest_system=None, ip_type='ip')[source]

This keyword will use connection session available in source system (provided in system name) and will execute traceroute from source system to destination system

Datafile usuage:
 

Tags or attributes to be used in input datafile for the system or subsystem.If both tag and attribute is provided the attribute will be used. 1. prompt = prompt of the source system 2. ip = ipv4 address or defaulted to lcn ip 3. ipv6 = ipv6 address or defaulted to lcn ipv6 4. dns = dns name 5. lmp_ip = ipv4 address of lmp port of dut 6. lmp_ipv6 = ipv6 address of lmp port of dut note: one of <ip>,<ipv6>,<dns>,<lmp_ip>,<lmp_ipv6> tags specified in

ip_type argument is sufficient to be present in inputdatafile

Arguments:
  1. system_name(string) = name of the Linux machine on which to execute
  2. session_name(string) = name of the session
  3. dest_system(string) = names of the destination system
  4. ip_type(string) = iptype of the dest system through which it needs to be connected.
    needs to be one of (ip/ipv4/dns/lmp_ip/lmp_ipv6).It has to be present in the input data file.
Returns:
  1. bool (True/False)

Module contents

Copyright 2017, Fujitsu Network Communications, Inc. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.