Skip to content

Instantly share code, notes, and snippets.

@bluecmd
Last active November 21, 2016 12:17
Show Gist options
  • Select an option

  • Save bluecmd/7986f49d97f4571d83663683b4f724de to your computer and use it in GitHub Desktop.

Select an option

Save bluecmd/7986f49d97f4571d83663683b4f724de to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: bgpPeer
metadata:
peerIP: 172.29.16.2
scope: global
spec:
asNumber: 64512
(from https://github.com/projectcalico/calico-containers/blob/bffb66da164375777e062aa0fb387cdfe7cb1106/test-data/bgppeer-global.yaml)
sudo docker exec 59e08e8f4abe wget -q -O - http://x.y.z:6666/v2/keys/calico/bgp/v1/global | python -m json.tool; echo
{
"action": "get",
"node": {
"createdIndex": 19,
"dir": true,
"key": "/calico/bgp/v1/global",
"modifiedIndex": 19,
"nodes": [
{
"createdIndex": 19,
"dir": true,
"key": "/calico/bgp/v1/global/custom_filters",
"modifiedIndex": 19
},
{
"createdIndex": 21,
"key": "/calico/bgp/v1/global/as_num",
"modifiedIndex": 21,
"value": "64511"
},
{
"createdIndex": 23,
"key": "/calico/bgp/v1/global/node_mesh",
"modifiedIndex": 23,
"value": "{\"enabled\": true}"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment