summaryrefslogtreecommitdiffstats
path: root/eos_downloader/data.py
blob: 74f2f8e9fa94636a5779c3369e35b05d7a7eeffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/python
# coding: utf-8 -*-

"""
EOS Downloader Information to use in
eos_downloader.object_downloader.ObjectDownloader._build_filename.

Data are built from content of Arista XML file
"""


# [platform][image][version]
DATA_MAPPING = {
    "CloudVision": {
        "ova": {
            "extension": ".ova",
            "prepend": "cvp",
            "folder_level": 0
        },
        "rpm": {
            "extension": "",
            "prepend": "cvp-rpm-installer",
            "folder_level": 0
        },
        "kvm": {
            "extension": "-kvm.tgz",
            "prepend": "cvp",
            "folder_level": 0
        },
        "upgrade": {
            "extension": ".tgz",
            "prepend": "cvp-upgrade",
            "folder_level": 0
        },
    },
    "EOS": {
        "64": {
            "extension": ".swi",
            "prepend": "EOS64",
            "folder_level": 0
        },
        "INT": {
            "extension": "-INT.swi",
            "prepend": "EOS",
            "folder_level": 1
        },
        "2GB-INT": {
            "extension": "-INT.swi",
            "prepend": "EOS-2GB",
            "folder_level": 1
        },
        "cEOS": {
            "extension": ".tar.xz",
            "prepend": "cEOS-lab",
            "folder_level": 0
        },
        "cEOS64": {
            "extension": ".tar.xz",
            "prepend": "cEOS64-lab",
            "folder_level": 0
        },
        "vEOS": {
            "extension": ".vmdk",
            "prepend": "vEOS",
            "folder_level": 0
        },
        "vEOS-lab": {
            "extension": ".vmdk",
            "prepend": "vEOS-lab",
            "folder_level": 0
        },
        "EOS-2GB": {
            "extension": ".swi",
            "prepend": "EOS-2GB",
            "folder_level": 0
        },
        "RN": {
            "extension": "-",
            "prepend": "RN",
            "folder_level": 0
        },
        "SOURCE": {
            "extension": "-source.tar",
            "prepend": "EOS",
            "folder_level": 0
        },
        "default": {
            "extension": ".swi",
            "prepend": "EOS",
            "folder_level": 0
        }
    }
}