Skip to content

Instantly share code, notes, and snippets.

@mkrogh
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkrogh/12a9ae6327125183afe5 to your computer and use it in GitHub Desktop.
Save mkrogh/12a9ae6327125183afe5 to your computer and use it in GitHub Desktop.

NORDUnet NI 2.0 router hardware model

// Create nodes
CREATE (router1:Physical:Router{name:'Router1', serial_number:'1'}),
       (midplane:Physical:Module{name:'Midplane', model_number:'CHAS-1'}),
       (fpmDisplay:Physical:Module{name:'FPM Display', model_number:'CRAFT-MX80-S'}),
       (pem0:Physical:Module{name:'PEM 0', model_number:'PWR-MX80'}),
       (fpc0:Physical:FPC:Module{name:'FPC 0', model_number:'MX80-FPC'}),
       (pic0:Physical:PIC:Module{name:'PIC 0', model_number:'PF-12XGE-SFPP'}),
       (port001:Physical:Port{name:'Port1', serial_number:'101'}),
       (port002:Physical:Port{name:'Port2', serial_number:'102'}),
       (unit1:Logical:Unit{name:'Unit1'}),
       (fpc1:Physical:FPC:Module{name:'FPC 1', model_number:'MX80-FPC'}),
       (pic1:Physical:PIC:Module{name:'PIC 0', model_number:'PF-12XGE-SFPP'}),
       (port101:Physical:Port{name:'Port1', serial_number:'103'}),

// Create relationships

       (router1)-[:Has]->(midplane),
       (router1)-[:Has]->(fpmDisplay),
       (router1)-[:Has]->(pem0),
       (router1)-[:Has]->(fpc0),
       (fpc0)-[:Has]->(pic0),
       (pic0)-[:Has]->(port001),
       (pic0)-[:Has]->(port002),
       (unit1)-[:Part_of]->(port001),
       (router1)-[:Has]->(fpc1),
       (fpc1)-[:Has]->(pic1),
       (pic1)-[:Has]->(port101)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment