A class to represent the output of the ‘ip’ command.
Uses the ‘ip’ command to assemble the self.interfaces dict.
}
}
Scans ‘text’ and returns the word immediately following ‘keyword’. Example:
>>>text = “1: lo inet 127.0.0.1/8 brd 127.255.255.255 scope host lo” >>>keyword_value(‘scope’, text) ‘host’