Skip to content

Commit

Permalink
⭐️ arista provider (#1576)
Browse files Browse the repository at this point in the history
- adds arista to v9 
- improves the default values for resources

```
cnquery shell arista admin@192.168.178.154 --ask-pass
```

```coffeescript
cnquery> arista.eos { version systemConfig} 
arista.eos: {
  version: {
    architecture: "x86_64"
    bootupTimestamp: 1633245562.000000
    configMacAddress: "00:00:00:00:00:00"
    hardwareRevision: ""
    hwMacAddress: "00:00:00:00:00:00"
    internalBuildId: "37a9ea6d-2c81-487d-9c86-579348318c0a"
    internalVersion: "4.25.1F-20005270.4251F"
    isIntlVersion: false
    memFree: 880184.000000
    memTotal: 2012348.000000
    mfgName: ""
    modelName: "vEOS"
    serialNumber: ""
    systemMacAddress: "00:0c:29:ed:72:0e"
    uptime: 275227.470000
    version: "4.25.1F"
  }
  systemConfig: {
    hostname: "localhost"
    iprouting: "false"
  }
}
cnquery> arista.eos.ipInterfaces
arista.eos.ipInterfaces: [
  0: arista.eos.ipInterface name="defaults"
  1: arista.eos.ipInterface name="Management1"
]
cnquery> arista.eos.interfaces
arista.eos.interfaces: [
  0: arista.eos.interface name="Ethernet2"
  1: arista.eos.interface name="Management1"
  2: arista.eos.interface name="Ethernet1"
]
```
  • Loading branch information
chris-rock authored Aug 27, 2023
1 parent e49ad5e commit f7a2278
Show file tree
Hide file tree
Showing 33 changed files with 3,324 additions and 4,168 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ providers/lr:
go build -o lr ./providers-sdk/v1/lr/cli/main.go

.PHONY: providers/build
providers/build: providers/build/core providers/build/network providers/build/os providers/build/ipmi providers/build/oci providers/build/slack providers/build/github providers/build/gitlab providers/build/terraform providers/build/vsphere providers/build/opcua providers/build/okta providers/build/google-workspace
providers/build: providers/build/core providers/build/network providers/build/os providers/build/ipmi providers/build/oci providers/build/slack providers/build/github providers/build/gitlab providers/build/terraform providers/build/vsphere providers/build/opcua providers/build/okta providers/build/google-workspace providers/build/arista

providers/build/core: providers/lr
@$(call buildProvider, providers/core)
Expand Down Expand Up @@ -174,6 +174,9 @@ providers/build/okta: providers/lr
providers/build/google-workspace: providers/lr
@$(call buildProvider, providers/google-workspace)

providers/build/arista: providers/lr
@$(call buildProvider, providers/arista)

providers/install:
# @$(call installProvider, providers/core)
@$(call installProvider, providers/network)
Expand All @@ -188,6 +191,7 @@ providers/install:
@$(call installProvider, providers/opcua)
@$(call installProvider, providers/okta)
@$(call installProvider, providers/google-workspace)
@$(call installProvider, providers/arista)

providers/bundle:
@$(call bundleProvider, providers/network)
Expand All @@ -202,6 +206,7 @@ providers/bundle:
@$(call bundleProvider, providers/opcua)
@$(call bundleProvider, providers/okta)
@$(call bundleProvider, providers/google-workspace)
@$(call bundleProvider, providers/arista)

providers/test:
@$(call testProvider, providers/core)
Expand All @@ -217,6 +222,7 @@ providers/test:
@$(call testGpModProvider, providers/opcua)
@$(call testGpModProvider, providers/okta)
@$(call testGpModProvider, providers/google-workspace)
@$(call testGpModProvider, providers/arista)

lr/test:
go test ./resources/lr/...
Expand Down
84 changes: 0 additions & 84 deletions _motor/providers/arista/provider.go

This file was deleted.

12 changes: 0 additions & 12 deletions _resources/packs/arista/arista.go

This file was deleted.

Loading

0 comments on commit f7a2278

Please sign in to comment.