Skip to content

Commit

Permalink
feat: add panorama networking
Browse files Browse the repository at this point in the history
  • Loading branch information
trois-six committed Jun 21, 2021
1 parent d7dbae3 commit 905563d
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 163 deletions.
16 changes: 14 additions & 2 deletions providers/panos/helpers.go
Expand Up @@ -206,15 +206,27 @@ type Import struct {
}

type Network struct {
XMLName xml.Name `xml:"network"`
Interface Interface `xml:"interface"`
XMLName xml.Name `xml:"network"`
Interface Interface `xml:"interface"`
VirtualRouter VirtualRouter `xml:"virtual-router"`
Vlan Vlan `xml:"vlan"`
}

type Interface struct {
XMLName xml.Name `xml:"interface"`
Members []string `xml:"member"`
}

type VirtualRouter struct {
XMLName xml.Name `xml:"virtual-router"`
Members []string `xml:"member"`
}

type Vlan struct {
XMLName xml.Name `xml:"vlan"`
Members []string `xml:"member"`
}

func contains(s []string, e string) bool {
for _, v := range s {
if v == e {
Expand Down

0 comments on commit 905563d

Please sign in to comment.