Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: help with ipaddress package
Post: RE: help with ipaddress package

(Jul-13-2022, 02:01 AM)supuflounder Wrote: I have never seen the /24 notation; if, as suggested, it is the subnet mask, it is irrelevant and the simplest thing would be to remove it. It is a very, ...
jcrubaugh45 General Coding Help 5 1,461 Jul-13-2022, 02:19 PM
    Thread: help with ipaddress package
Post: RE: help with ipaddress package

(Jul-12-2022, 10:08 PM)Larz60+ Wrote: The /24 indicated the number of bits in the network mask. I am not sure, but expect that this should be stripped before calling ipaddress methods. but now that ...
jcrubaugh45 General Coding Help 5 1,461 Jul-12-2022, 10:27 PM
    Thread: help with ipaddress package
Post: RE: help with ipaddress package

(Jul-12-2022, 10:08 PM)Larz60+ Wrote: The /24 indicated the number of bits in the network mask. I am not sure, but expect that this should be stripped before calling ipaddress methods. I wouldnt thi...
jcrubaugh45 General Coding Help 5 1,461 Jul-12-2022, 10:26 PM
    Thread: help with ipaddress package
Post: help with ipaddress package

I have some code where its reading from an input txt file... in the file are both valid IP and invalid IP, as well as valid CIDR. Im trying to do some validation before adding these IP to my firewall ...
jcrubaugh45 General Coding Help 5 1,461 Jul-12-2022, 08:55 PM
    Thread: How to write the condition for deleting multiple lines?
Post: RE: How to write the condition for deleting multip...

(Jul-10-2022, 05:36 AM)Lky Wrote: Does anyone know how to delete lines in txt file according to user input without using any list or dictionary? For example content inside txt file: Question 1 Whic...
jcrubaugh45 General Coding Help 3 1,133 Jul-10-2022, 02:25 PM
    Thread: Add Tagged Objects to a Palo Alto Firewall device Group
Post: Add Tagged Objects to a Palo Alto Firewall device ...

I just thought I would share some code Ive written for interacting with Palo Alto firewalls which are managed by Panorama. import requests import pandevice import json import time import sys import ip...
jcrubaugh45 Code sharing 0 1,492 Jul-10-2022, 12:30 AM
    Thread: Delete multiple lines from txt file
Post: RE: Delete multiple lines from txt file

def remove_lines_list (file): ip_list = open(file).readlines() return [address.rstrip('\n') for address in ip_list]I use this function to take a list of IP addresses and remove all the trailin...
jcrubaugh45 General Coding Help 6 2,287 Jul-10-2022, 12:09 AM
  Question Thread: coding bootcamp question
Post: coding bootcamp question

I'm sorry if this doesn't belong here, but I'm feeling stuck in a rut. This might be long so bear with me... I began my python journey about a year and a half ago. This journey began after 20+years i...
jcrubaugh45 News and Discussions 0 857 Jul-09-2022, 11:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020