Skip to content

Instantly share code, notes, and snippets.

@netmanchris
Created July 28, 2015 03:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save netmanchris/bfb02c14cecfe9aad0ed to your computer and use it in GitHub Desktop.
>>> print (yaml.dump(y, default_flow_style = False))
!!python/object/apply:collections.OrderedDict
dictitems:
device: !!python/object/apply:collections.OrderedDict
dictitems:
categoryId: '0'
contact: changed this too
devCategoryImgSrc: router
id: '116'
ip: 10.101.0.1
label: Cisco2811.haw.int
link: !!python/object/apply:collections.OrderedDict
dictitems:
'@href': http://10.3.10.220:8080/imcrs/plat/res/device/116
'@op': GET
'@rel': self
location: changed this too
mac: 00:1b:d4:47:1e:68
mask: 255.255.255.0
parentId: '1'
status: '1'
statusDesc: Normal
symbolDesc: null
symbolId: '1147'
symbolLevel: '2'
symbolName: Cisco2811.haw.int
symbolType: '3'
sysDescription: null
sysName: Cisco2811.haw.int
sysOid: 1.3.6.1.4.1.9.1.576
topoIconName: iconroute
typeName: Cisco 2811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment