Skip to content

Network, Size and VPN#1

Open
majst01 wants to merge 35 commits into
mainfrom
network-services
Open

Network, Size and VPN#1
majst01 wants to merge 35 commits into
mainfrom
network-services

Conversation

@majst01

@majst01 majst01 commented May 14, 2025

Copy link
Copy Markdown
Contributor

Description

None

@github-project-automation github-project-automation Bot moved this to Review in Development Jun 5, 2025
@Gerrit91 Gerrit91 removed the status in Development Jun 13, 2025
@majst01 majst01 marked this pull request as ready for review July 7, 2025 11:53
@majst01 majst01 mentioned this pull request Jul 8, 2025
2 tasks
@majst01 majst01 changed the title First work on network Network, Size and VPN Feb 10, 2026
@majst01 majst01 changed the title Network, Size and VPN Network, Size, VPN and Task Feb 10, 2026
Comment thread cmd/admin/v2/machine.go
},
// State: &0,
},
Partition: nil, // again partition?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Partition: nil, // again partition?
// admins are allowed to list machines in all partitions
Partition: nil,

Comment thread cmd/admin/v2/machine.go Outdated
Image: pointer.PointerOrNil(viper.GetString("image")),
FilesystemLayout: pointer.PointerOrNil(viper.GetString("file-system-layout-id")),
Hostname: pointer.PointerOrNil(viper.GetString("hostname")),
// AllocationType: &0,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// AllocationType: &0,
// AllocationType: &0, TODO: implement

Comment thread cmd/admin/v2/machine.go Outdated
Nic: &apiv2.MachineNicQuery{},
Disk: &apiv2.MachineDiskQuery{
Names: viper.GetStringSlice("disk-names"),
// Sizes:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Sizes:
// Sizes: TODO: implement

Comment thread cmd/admin/v2/machine.go Outdated
Memory: pointer.PointerOrNil(viper.GetUint64("memory")),
CpuCores: pointer.PointerOrNil(viper.GetUint32("cpu-cores")),
},
// State: &0,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// State: &0,
// State: &0, TODO: implement

Comment thread cmd/admin/v2/network.go
Labels: tag.NewTagMap(viper.GetStringSlice("labels")),
},
Type: nwType,
// NatType: (*apiv2.NATType)(nwType),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// NatType: (*apiv2.NATType)(nwType),
// NatType: (*apiv2.NATType)(nwType), TODO: implement

Comment thread cmd/admin/v2/network.go
DestinationPrefixes: r.DestinationPrefixes,
DefaultChildPrefixLength: r.DefaultChildPrefixLength,
MinChildPrefixLength: r.MinChildPrefixLength,
// NatType: &0,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// NatType: &0,
// NatType: &0, TODO: implement

Comment thread cmd/admin/v2/network.go
Comment on lines +297 to +300
var vrf *uint32
if viper.IsSet("vrf") {
vrf = new(viper.GetUint32("vrf"))
}

@iljarotar iljarotar Feb 19, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var vrf *uint32
if viper.IsSet("vrf") {
vrf = new(viper.GetUint32("vrf"))
}

Comment thread cmd/admin/v2/network.go
DefaultChildPrefixLength: defaultCPL,
MinChildPrefixLength: minCPL,
NatType: &natType,
Vrf: vrf,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Vrf: vrf,
Vrf: pointer.PointerOrNil(viper.GetUint32("vrf")),

Comment thread cmd/admin/v2/size.go
}

return resp.Size, nil
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

Comment thread cmd/admin/v2/size.go
func (c *size) List() ([]*apiv2.Size, error) {
panic("unimplemented")

}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

@majst01 majst01 requested a review from a team as a code owner March 21, 2026 09:55
@Gerrit91 Gerrit91 mentioned this pull request May 20, 2026
@Gerrit91 Gerrit91 changed the title Network, Size, VPN and Task Network, Size and VPN May 20, 2026
@Gerrit91 Gerrit91 force-pushed the network-services branch from 823c4b4 to 020cfba Compare May 20, 2026 15:37
@Gerrit91 Gerrit91 mentioned this pull request Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants