File: PhysicalNic.pyi

package info (click to toggle)
python-pyvmomi 9.0.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,372 kB
  • sloc: python: 18,622; xml: 77; makefile: 4
file content (113 lines) | stat: -rw-r--r-- 3,657 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Copyright (c) 2006-2025 Broadcom. All Rights Reserved.
# Broadcom Confidential. The term "Broadcom" refers to Broadcom Inc.
# and/or its subsidiaries.

# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******

from typing import ClassVar
from typing import Optional

from pyVmomi.VmomiSupport import Enum

from pyVmomi.vmodl import DynamicData
from pyVmomi.vmodl import KeyAnyValue

from pyVmomi.vim.host import FcoeConfig
from pyVmomi.vim.host import IpConfig
from pyVmomi.vim.host import RdmaDevice

class PhysicalNic(DynamicData):
   class Specification(DynamicData):
      ip: Optional[IpConfig] = None
      linkSpeed: Optional[LinkSpeedDuplex] = None
      enableEnhancedNetworkingStack: Optional[bool] = None
      ensInterruptEnabled: Optional[bool] = None

   class Config(DynamicData):
      device: str
      spec: Specification

   class LinkSpeedDuplex(DynamicData):
      speedMb: int
      duplex: bool

   class NetworkHint(DynamicData):
      class HintElement(DynamicData):
         vlanId: Optional[int] = None

      class IpNetwork(NetworkHint.HintElement):
         ipSubnet: str

      class NamedNetwork(NetworkHint.HintElement):
         network: str

      device: str
      subnet: list[IpNetwork] = []
      network: list[NamedNetwork] = []
      connectedSwitchPort: Optional[CdpInfo] = None
      lldpInfo: Optional[LldpInfo] = None

   class CdpDeviceCapability(DynamicData):
      router: bool
      transparentBridge: bool
      sourceRouteBridge: bool
      networkSwitch: bool
      host: bool
      igmpEnabled: bool
      repeater: bool

   class CdpInfo(DynamicData):
      cdpVersion: Optional[int] = None
      timeout: Optional[int] = None
      ttl: Optional[int] = None
      samples: Optional[int] = None
      devId: Optional[str] = None
      address: Optional[str] = None
      portId: Optional[str] = None
      deviceCapability: Optional[CdpDeviceCapability] = None
      softwareVersion: Optional[str] = None
      hardwarePlatform: Optional[str] = None
      ipPrefix: Optional[str] = None
      ipPrefixLen: Optional[int] = None
      vlan: Optional[int] = None
      fullDuplex: Optional[bool] = None
      mtu: Optional[int] = None
      systemName: Optional[str] = None
      systemOID: Optional[str] = None
      mgmtAddr: Optional[str] = None
      location: Optional[str] = None

   class LldpInfo(DynamicData):
      chassisId: str
      portId: str
      timeToLive: int
      parameter: list[KeyAnyValue] = []

   class VmDirectPathGen2SupportedMode(Enum):
      upt: ClassVar['VmDirectPathGen2SupportedMode'] = 'upt'

   class ResourcePoolSchedulerDisallowedReason(Enum):
      userOptOut: ClassVar['ResourcePoolSchedulerDisallowedReason'] = 'userOptOut'
      hardwareUnsupported: ClassVar['ResourcePoolSchedulerDisallowedReason'] = 'hardwareUnsupported'

   key: Optional[str] = None
   device: str
   pci: str
   driver: Optional[str] = None
   driverVersion: Optional[str] = None
   firmwareVersion: Optional[str] = None
   linkSpeed: Optional[LinkSpeedDuplex] = None
   validLinkSpecification: list[LinkSpeedDuplex] = []
   spec: Specification
   wakeOnLanSupported: bool
   mac: str
   fcoeConfiguration: Optional[FcoeConfig] = None
   vmDirectPathGen2Supported: Optional[bool] = None
   vmDirectPathGen2SupportedMode: Optional[str] = None
   resourcePoolSchedulerAllowed: Optional[bool] = None
   resourcePoolSchedulerDisallowedReason: list[str] = []
   autoNegotiateSupported: Optional[bool] = None
   enhancedNetworkingStackSupported: Optional[bool] = None
   ensInterruptSupported: Optional[bool] = None
   rdmaDevice: Optional[RdmaDevice] = None
   dpuId: Optional[str] = None