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bWF0Y2hfdHlw
ZTogRVhBQ1QNCg0KICB9DQoNCiAgbWF0Y2hfZmllbGRzIHsNCg0KICAgIGlkOiA0DQoNCiAgICBu
YW1lOiAidmxhbl90YWdfWzFdLiR2YWxpZHsyfXF1b3Q7DQoNCiAgICBiaXR3aWR0aDogMQ0KDQog
ICAgbWF0Y2hfdHlwZTogRVhBQ1QNCg0KICB9DQoNCiAgbWF0Y2hfZmllbGRzIHsNCg0KICAgIGlk
OiA1DQoNCiAgICBuYW1lOiAidmxhbl90YWdfWzFdLnZpZCINCg0KICAgIGJpdHdpZHRoOiAxMg0K
DQogICAgbWF0Y2hfdHlwZTogRVhBQ1QNCg0KICB9DQoNCiAgYWN0aW9uX3JlZnMgew0KDQogICAg
aWQ6IDE2ODI0NjI3DQoNCiAgfQ0KDQogIGFjdGlvbl9yZWZzIHsNCg0KICAgIGlkOiAxNjc5MjA4
MA0KDQogIH0NCg0KICBhY3Rpb25fcmVmcyB7DQoNCiAgICBpZDogMTY4MDA1NjcNCg0KICAgIGFu
bm90YXRpb25zOiAiQGRlZmF1bHRvbmx5KCkiDQoNCiAgfQ0KDQogIGltcGxlbWVudGF0aW9uX2lk
OiAyODUyNjQ0MzINCg0KICBzaXplOiAzMjc2OA0KDQp9

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20171017/1ad2c1d6/attachment-0002.html>


More information about the P4-dev mailing list