Note that there are some explanatory texts on larger screens.

plurals
  1. USDavid Green
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COOk, another question... in the 'foreach' in the ParseTokens method, how do I access the attributes in the token? When it finds an InterfaceToken, I want to be able to access the Slot and Port numbers but I can't figure out how to do do it. I tried just token.SlotNum but the compiler didn't know what that was. Next I tried token.base.SlotNum, the compiler said 'base' was a reserved keyword. I can see in the debuger looking at the locals the token tree there is a base, in the base there is a SlotNum and a PortNum. I just can't access them.
      singulars
    2. COI already have the VSAN implemented as an object. I also have the interface implemented as an object. The VSAN contains a list of the interfaces (ports). This bit is just the code that pulls what I need out of the file to fill the list. That being said, thanks for this work. I can see where you are going with it and I will see if I can implement it in my existing code. It will also serve as a model moving forward, as there are other sections of the input file with a similar format - data grouped by a keyword.
      singulars
    3. COYes it is all one string. The input file is a a collection of 'show' commands. The initial pass through the file reads the lines between each 'show' command and creates a string, then loads that string into an array of strings. Each string is the output for a given 'show' command. In this case, the string starts with 'show vsan membership' and this is the output of that. I know I could search the string for the 'vsan' pattern then start loading a list with the matches and handle it that way, but I'd rather have the regex do it if possible.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload