Open farp80 opened 3 years ago
Hi @farp80
Could you format your code in a readable way and perhaps provide details such as your operating system and the outputs of the "cmd" that you are talking about?
ifcfg.txt Hi. This is what I did:
Attached is the file (formatted) with the ifcfg's response.
I think you can verify my doubts if you run it in a Windows environment.
Thanks.
I edited the original post. The formatting was off because the whole output was wrapped in a single backtick.
@jonboiser : thanks. I just clicked the insert code icon.
@farp80 for someone to work on the issue, they will likely need the output of when you run the ipconfig /all
command. Could you contribute that?
Could this be because there is no pattern for 'Subnet Mask' in the get_patterns() method in the Windows parser?
@classmethod
def get_patterns(cls):
return [
r"^(?P<device>\w.+):",
r"^ Physical Address. . . . . . . . . : (?P<ether>[ABCDEFabcdef\d-]+)",
r"^ IPv4 Address. . . . . . . . . . . : (?P<inet4>[^\s\(]+)",
r"^ IPv6 Address. . . . . . . . . . . : (?P<inet6>[ABCDEFabcdef\d\:\%]+)",
r"^\s+Default Gateway . . . . . . . . . : (?P<default_gateway>[^\s\(]+)",
]
I am trying to get IP/subnet using the code in this repo, but I am getting NOne as result in the Netmask, even though I can confirm the subnet mask through cmd. this is the response: