kysdk.NetCard(3)

πŸ“¦ version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

✨ kysdk.NetCard ✨

okay bestie so this is kysdk.NetCard(3), a manual page from the Library Functions Manual, and it's literally the glow-up guide to your network card class πŸ’…


🌸 NAME 🌸

kysdk.NetCard β€” the Network card information class, and she does it all. She gets the network card list, checks if a specified network card is in UP state, gets the list of network cards currently in link up state, gets the physical MAC address of a specified network card, gets the first IPv4 address of a specified network card, gets all IPv4 addresses of a specified network card, gets the first IPv6 address of a specified network card, gets all IPv6 addresses of a specified network card, gets the wired/wireless type of a specified network card, and gets the vendor name and device model of a specified network card. like. she's booked and busy fr fr πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

She inherits kysdk.Base. family tree moment πŸ‘‘

✨ Public Member Functions ✨

def __init__ (self)
def getNetCardName (self)
    Get all network cards in the system
def getNetCardUp (self, netcard_name)
    Check if the specified network card is in UP state
def getNetCardUpcards (self)
    Get the list of network cards currently in link up state
def getNetCardPhymac (self, netcard_name)
    Get the physical MAC address of the specified network card
def getNetCardPrivateIPv4 (self, netcard_name)
    Get the first IPv4 address of the specified network card
def getNetCardIPv4 (self, netcard_name)
    Get all IPv4 addresses of the specified network card
def getNetCardPrivateIPv6 (self, netcard_name)
    Get the first IPv6 address of the specified network card
def getNetCardType (self, netcard_name)
    Get the wired/wireless type of the specified network card
def getNetCardProduct (self, netcard_name)
    Get the vendor name and device model of the specified network card
def getNetCardIPv6 (self, netcard_name)
    Get all IPv6 addresses of the specified network card

πŸŽ€ Additional Inherited Members πŸŽ€

(yes she's got extras from the family, they're just vibing below, no notes πŸ’œ)


πŸ’– Detailed Description πŸ’–

Network card information class used to get network card list, check if a specified network card is in UP state, get the list of network cards currently in link up state, get the physical MAC address of a specified network card, get the first IPv4 address of a specified network card, get all IPv4 addresses of a specified network card, get the first IPv6 address of a specified network card, get all IPv6 addresses of a specified network card, get the wired/wireless type of a specified network card, and get the vendor name and device model of a specified network card.

like. that's the whole assignment and she ate. no crumbs. 😭✨


πŸ‘‘ Member Function Documentation πŸ‘‘

🌈 def kysdk.NetCard.getNetCardIPv4 ( self, netcard_name)

Get all IPv4 addresses of the specified network card. all of them. the whole collection πŸ’…

Parameters

  • netcard_name β€” Network card name, such as eno1

Returns

  • List of IPv4 addresses

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardIPv6 ( self, netcard_name)

Get all IPv6 addresses of the specified network card. v6 girlies rise πŸ¦‹

Parameters

  • netcard_name β€” Network card name, such as eno1

Returns

  • List of IPv6 addresses

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardName ( self)

Get all network cards in the system. the full roster, the whole cast ⭐

Returns

  • List of network card names

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardPhymac ( self, netcard_name)

Get the physical MAC address of the specified network card. her literal hardware fingerprint, iconic πŸŽ€

Parameters

  • netcard_name β€” Network card name, such as eno1

Returns

  • Physical MAC address

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardPrivateIPv4 ( self, netcard_name)

Get the first IPv4 address of the specified network card. just the one. the main character of the address list πŸ‘‘

Parameters

  • netcard_name β€” Network card name, such as eno1

Returns

  • IPv4 address

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardPrivateIPv6 ( self, netcard_name)

Get the first IPv6 address of the specified network card. one (1) v6 address, and she's the chosen one ✨

Parameters

  • netcard_name β€” Network card name, such as eno1

Returns

  • IPv6 address

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardProduct ( self, netcard_name)

Get the vendor name and device model of the specified network card. like a lil birth certificate for your NIC 🍼

Parameters

  • netcard_name β€” Network card name, such as eno1

Returns

  • Vendor name and device model of the network card

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardType ( self, netcard_name)

Get the wired/wireless type of the specified network card. is she a cable girlie or a wifi girlie? we find out πŸ”₯

Parameters

  • netcard_name β€” Network card name, such as eno1

Returns

  • 0 for wired, 1 for wireless

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardUp ( self, netcard_name)

Check if the specified network card is in UP state. vibe check but for your interface 🫢

Parameters

  • netcard_name β€” Network card name, such as eno1

Returns

  • 1 if Up, 0 if Down

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

🌈 def kysdk.NetCard.getNetCardUpcards ( self)

Get the list of network cards currently in link up state. the ones that actually showed up to the party πŸŽ‰

Returns

  • List of network cards in link up state

References

  • kysdk.SessionBase.interface, and kysdk.Base.interface

πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for kysdk.py from the source code. (doxygen did the typing, we did the serving πŸ’…)


reminder bestie: every single flag, param, return value and reference above is verbatim from the original page β€” the sparkle is new, the facts are not 🫢

okay that's the whole page and honestly? slay. this was My Project, version dated Thu Sep 21 2023, and it lives in the manual as kysdk.NetCard(3). go get those addresses, bestie β€” no cap, fr fr πŸ’–βœ¨πŸ¦‹πŸŽ€πŸ’…

πŸ“¦ where this page comes from